]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: microchip: lan937x: clear the POR_READY_INT status bit
authorArun Ramadoss <arun.ramadoss@microchip.com>
Fri, 2 Sep 2022 10:32:09 +0000 (16:02 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Sep 2022 12:06:40 +0000 (13:06 +0100)
commit350204386289fddacdf5556b676d468ed1192c7d
tree96caf0a24d18b8defa38a754e98ab1384523bc0c
parenta8d9738dc456ab01d84ecf05c8e83fe302c973e6
net: dsa: microchip: lan937x: clear the POR_READY_INT status bit

In the lan937x_reset_switch(), it masks all the switch and port
registers. In the Global_Int_status register, POR ready bit is write 1
to clear bit and all other bits are read only. So, this patch clear the
por_ready_int status bit by writing 1.

Signed-off-by: Arun Ramadoss <arun.ramadoss@microchip.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/microchip/lan937x_main.c