[U-Boot] [U-Boot,v2] net: macb: fix mapping of registers

Ramon Fried ramon.fried at gmail.com
Thu Dec 27 10:08:18 UTC 2018


On Thu, Dec 27, 2018 at 4:35 AM Tom Rini <trini at konsulko.com> wrote:
>
> On Tue, Dec 18, 2018 at 10:49:03PM +0200, Ramon Fried wrote:
>
> > Some architectures (MIPS) needs mapping to access IOMEM.
> > Fix that.
> >
> > Fixes: f1dcc19b213d ("net: macb: Convert to driver model")
> >
> > Signed-off-by: Ramon Fried <ramon.fried at gmail.com>
> > Reviewed-by: Daniel Schwierzeck <daniel.schwierzeck at gmail.com>
> > ---
> > v2: switched to use dev_reamp_addr() to reduce boilerplate code.
> >     (as suggested by Daniel Schwierzeck)
>
> On many platforms:
>        arm:  w+   sama5d36ek_cmp_nandflash
> +(sama5d36ek_cmp_nandflash)   pdata->iobase = dev_remap_addr(dev);
> +(sama5d36ek_cmp_nandflash)                 ^
> w+(sama5d36ek_cmp_nandflash) drivers/net/macb.c: In function 'macb_eth_ofdata_to_platdata':
> w+(sama5d36ek_cmp_nandflash) drivers/net/macb.c:1154:16: warning: assignment makes integer from pointer without a cast [-Wint-conversion]
>
> --
> Tom
Thanks Tom,
I'll look into it.


More information about the U-Boot mailing list