phy: bcm-ns-usb3: always wait for idle after writing to the PHY reg
authorRafał Miłecki <rafal@milecki.pl>
Thu, 8 Jun 2017 20:04:24 +0000 (22:04 +0200)
committerKishon Vijay Abraham I <kishon@ti.com>
Fri, 16 Jun 2017 07:52:25 +0000 (13:22 +0530)
commit412512c4f924cb508895237722b36f673f5e113c
tree929a39196265ad7bdf7e7ad0374ed3ad5c3c360a
parent80886f7c698fd64366a6eced011ec82f4daf968b
phy: bcm-ns-usb3: always wait for idle after writing to the PHY reg

Move MDIO specific code to the writing helper function. This makes init
code a bit more generic and doesn't require it to track what happens
after every write.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/phy/broadcom/phy-bcm-ns-usb3.c