sh_eth: rename PSR bits
In all the SoC manuals (except R-Car gen2) the PHY status register's name is abbreviated to PSR with the only valid bit 0 named LMON. Follow the suit and rename the corresponding *enum* tag/entry. Signed-off-by: Sergey Shtylyov <s.shtylyov@omprussia.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
bc9d992ca4
commit
4585b72d97
@ -1749,7 +1749,7 @@ static void sh_eth_emac_interrupt(struct net_device *ndev)
|
|||||||
link_stat = sh_eth_read(ndev, PSR);
|
link_stat = sh_eth_read(ndev, PSR);
|
||||||
if (mdp->ether_link_active_low)
|
if (mdp->ether_link_active_low)
|
||||||
link_stat = ~link_stat;
|
link_stat = ~link_stat;
|
||||||
if (!(link_stat & PHY_ST_LINK)) {
|
if (!(link_stat & PSR_LMON)) {
|
||||||
sh_eth_rcv_snd_disable(ndev);
|
sh_eth_rcv_snd_disable(ndev);
|
||||||
} else {
|
} else {
|
||||||
/* Link Up */
|
/* Link Up */
|
||||||
|
@ -208,7 +208,7 @@ enum PIR_BIT {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* PSR */
|
/* PSR */
|
||||||
enum PHY_STATUS_BIT { PHY_ST_LINK = 0x01, };
|
enum PSR_BIT { PSR_LMON = 0x01, };
|
||||||
|
|
||||||
/* EESR */
|
/* EESR */
|
||||||
enum EESR_BIT {
|
enum EESR_BIT {
|
||||||
|
Loading…
Reference in New Issue
Block a user