poke-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fix offset granularity


From: Jose E. Marchesi
Subject: Re: Fix offset granularity
Date: Mon, 12 Oct 2020 14:02:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

> The following patch is to make ios_flush handle the difference in
> offset granularity between IO spaces and IO devices.
>
> 2020-10-11  Egeyar Bagcioglu  <egeyar@gmail.com>
>
>         * libpoke/ios.c (ios_flush): Divide the offset by 8 before
> passing it
>         to io->dev_if->flush which accepts offsets in the granularity
> of bytes.
>
> Regards,
> Ege
>
> diff --git a/libpoke/ios.c b/libpoke/ios.c
> index 0b7d8369..3471336e 100644
> --- a/libpoke/ios.c
> +++ b/libpoke/ios.c
> @@ -1521,5 +1521,5 @@ ios_size (ios io)
>  int
>  ios_flush (ios io, ios_off offset)
>  {
> -  return io->dev_if->flush (io->dev, offset);
> +  return io->dev_if->flush (io->dev, offset / 8);
>  }

Ooops, good catch :)
OK for master.
Thanks!



reply via email to

[Prev in Thread] Current Thread [Next in Thread]