Re: [PATCH 2/2] realtek: add RTL821X_CHIP_ID

2024-05-07 Thread Jonas Gorski
On Tue, 7 May 2024 at 12:16, Bjørn Mork wrote: > > Stijn Tintel writes: > > > On 27/04/2024 11:16, Bjørn Mork wrote: > >> st...@linux-ipv6.be writes: > >> > >>> phy_write_paged(phydev, 31, 27, 0x0002); > >>> val = phy_read_paged(phydev, 31, 28); > >> .. > >>> phy_write_paged(phydev,

Re: [PATCH 2/2] realtek: add RTL821X_CHIP_ID

2024-05-07 Thread Bjørn Mork
Stijn Tintel writes: > On 27/04/2024 11:16, Bjørn Mork wrote: >> st...@linux-ipv6.be writes: >> >>> phy_write_paged(phydev, 31, 27, 0x0002); >>> val = phy_read_paged(phydev, 31, 28); >> .. >>> phy_write_paged(phydev, 0x1f, 0x1b, 0x0002); >>> val = phy_read_paged(phydev, 0x1f,

Re: [PATCH 2/2] realtek: add RTL821X_CHIP_ID

2024-05-07 Thread Stijn Tintel
On 27/04/2024 11:16, Bjørn Mork wrote: st...@linux-ipv6.be writes: phy_write_paged(phydev, 31, 27, 0x0002); val = phy_read_paged(phydev, 31, 28); .. phy_write_paged(phydev, 0x1f, 0x1b, 0x0002); val = phy_read_paged(phydev, 0x1f, 0x1c); While you're doing

Re: [PATCH 2/2] realtek: add RTL821X_CHIP_ID

2024-04-27 Thread Bjørn Mork
st...@linux-ipv6.be writes: > phy_write_paged(phydev, 31, 27, 0x0002); > val = phy_read_paged(phydev, 31, 28); .. > phy_write_paged(phydev, 0x1f, 0x1b, 0x0002); > val = phy_read_paged(phydev, 0x1f, 0x1c); While you're doing spring cleaning That piece of cut-n-paste

[PATCH 2/2] realtek: add RTL821X_CHIP_ID

2024-04-26 Thread stijn
According to the Realtek SDK code, the RTL8214FC, RTL8218B and RTL8218FB all have the same chip ID 0x6276. Let's add a constant for it, as we're using it in more than one location. Signed-off-by: Stijn Tintel --- .../linux/realtek/files-5.15/drivers/net/phy/rtl83xx-phy.c | 6 -- 1 file