Re: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting

2023-02-10 Thread Tom Rini
On Fri, Feb 03, 2023 at 10:09:03PM +0300, Sergei Antonov wrote: > Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in > struct ftmac100_data. It allows to remove casting in a number of places. > > Since priv->iobase is phys_addr_t, use phys_to_virt() to make > a pointer from it. >

Re: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting

2023-02-08 Thread Rick Chen
> From: U-Boot On Behalf Of Sergei Antonov > Sent: Saturday, February 04, 2023 3:09 AM > To: u-boot@lists.denx.de; rfried@gmail.com; joe.hershber...@ni.com > Cc: Sergei Antonov > Subject: [PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting > > Rep

[PATCH v3 2/3] net: ftmac100: simplify priv->iobase casting

2023-02-03 Thread Sergei Antonov
Replace 'phys_addr_t iobase' with 'struct ftmac100 *ftmac100' in struct ftmac100_data. It allows to remove casting in a number of places. Since priv->iobase is phys_addr_t, use phys_to_virt() to make a pointer from it. Signed-off-by: Sergei Antonov --- v2 -> v3: Fix the following warning by