]> git.baikalelectronics.ru Git - kernel.git/commit
staging: et131x: Introduce et1310_in_phy_coma() call
authorMark Einon <mark.einon@gmail.com>
Sat, 1 Oct 2011 10:14:11 +0000 (11:14 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:43:12 +0000 (10:43 -0700)
commit0973d3df86d7d63a186dd6db5df3a4d20b372c26
tree7b770e78b73a458c23ff3679b2c4903e0377d067
parent825790b33622d0c1d41b802be82aab8b2c2b3a92
staging: et131x: Introduce et1310_in_phy_coma() call

In several places in the code, the pm_csr register is read and the PHY_SW_COMA bit checked.

Move this check into its own small function to make the code more readable.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et1310_mac.c
drivers/staging/et131x/et1310_pm.c
drivers/staging/et131x/et131x.h
drivers/staging/et131x/et131x_initpci.c
drivers/staging/et131x/et131x_isr.c