diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2018-11-11 21:49:12 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-11-15 09:30:00 -0800 |
commit | ba2f55b06826fb51f15e3cb04b4457be5f66e0ef (patch) | |
tree | 7affa25cde1839f873613a3147c1e2abd7638976 /include/linux/kmemleak.h | |
parent | 6d5db6c37929cb0a84e64ba0590a74593e5ce3b8 (diff) | |
download | linux-stable-ba2f55b06826fb51f15e3cb04b4457be5f66e0ef.tar.gz linux-stable-ba2f55b06826fb51f15e3cb04b4457be5f66e0ef.tar.bz2 linux-stable-ba2f55b06826fb51f15e3cb04b4457be5f66e0ef.zip |
net: phy: icplus: add config_intr callback
Move IRQ configuration for IP101A/G from config_init to config_intr
callback. Reasons:
1. This allows phylib to disable interrupts if needed.
2. Icplus was the only driver supporting interrupts w/o defining a
config_intr callback. Now we can add a phylib plausibility check
disabling interrupt mode if one of the two irq-related callbacks
isn't defined.
I don't own hardware with this PHY, and the change is based on the
datasheet for IP101A LF (which is supposed to be register-compatible
with IP101A/G). Change is compile-tested only.
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/kmemleak.h')
0 files changed, 0 insertions, 0 deletions