[U-Boot] [PATCH v2 3/3] net: miiphybb: fix casting error

Joe Hershberger joe.hershberger at ni.com
Tue Dec 5 20:53:28 UTC 2017


On Fri, Nov 3, 2017 at 8:30 AM, Chris Brandt <chris.brandt at renesas.com> wrote:
> Since the return value is a signed int, if the leading MSB of rdreg is a 1,
> it will get signed extended and will return a negative value which is an
> error even though we read the correct value.
>
> Fixes: dfcc496ed7e2 ("net: mii: Changes not made by spatch")
> Signed-off-by: Chris Brandt <chris.brandt at renesas.com>

Acked-by: Joe Hershberger <joe.hershberger at ni.com>


More information about the U-Boot mailing list