mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 07:34:03 -04:00
net: phy: microchip_t1s: move LAN867X reset handling to a new function
Move LAN867X reset handling code to a new function called lan867x_check_reset_complete() which will be useful for the next patch which also uses the same code to handle the reset functionality. Signed-off-by: Parthiban Veerasooran <parthiban.veerasooran@microchip.com> Link: https://patch.msgid.link/20241010082205.221493-5-parthiban.veerasooran@microchip.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
7a0414fdcc
commit
117b70e4c6
@@ -266,7 +266,7 @@ static int lan865x_revb_config_init(struct phy_device *phydev)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lan867x_revb1_config_init(struct phy_device *phydev)
|
||||
static int lan867x_check_reset_complete(struct phy_device *phydev)
|
||||
{
|
||||
int err;
|
||||
|
||||
@@ -288,6 +288,17 @@ static int lan867x_revb1_config_init(struct phy_device *phydev)
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int lan867x_revb1_config_init(struct phy_device *phydev)
|
||||
{
|
||||
int err;
|
||||
|
||||
err = lan867x_check_reset_complete(phydev);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
/* Reference to AN1699
|
||||
* https://ww1.microchip.com/downloads/aemDocuments/documents/AIS/ProductDocuments/SupportingCollateral/AN-LAN8670-1-2-config-60001699.pdf
|
||||
* AN1699 says Read, Modify, Write, but the Write is not required if the
|
||||
|
||||
Reference in New Issue
Block a user