]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'remove-PHY_HAS_INTERRUPT'
authorDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:37:04 +0000 (09:37 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 11 Nov 2018 17:37:04 +0000 (09:37 -0800)
commit3ab800e61ab64a89aef30a19dded73a329d4970a
treedee28465b4a5bfe7089cb9d6a21910ba71fd54a3
parent360390eba74feacb7d4072556a58e2dc39aafa59
parent3b087d3b0123b88f63636fb3b22102d44035589e
Merge branch 'remove-PHY_HAS_INTERRUPT'

Heiner Kallweit says:

====================
net: phy: replace PHY_HAS_INTERRUPT with a check for config_intr and ack_interrupt

Flag PHY_HAS_INTERRUPT is used only here for this small check. I think
using interrupts isn't possible if a driver defines neither
config_intr nor ack_interrupts callback. So we can replace checking
flag PHY_HAS_INTERRUPT with checking for these callbacks.
This allows to remove this flag from all driver configs.

v2:
- add helper for check in patch 1
- remove PHY_HAS_INTERRUPT from all drivers, not only Realtek
- remove flag PHY_HAS_INTERRUPT completely

v3:
- rebase patch 2
====================

Signed-off-by: David S. Miller <davem@davemloft.net>