]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: enable interrupts when PHY is attached already
authorHeiner Kallweit <hkallweit1@gmail.com>
Thu, 30 May 2019 13:09:15 +0000 (15:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 May 2019 22:02:33 +0000 (15:02 -0700)
commit07b0928918c694c845a387cc16256a8b63ced4fc
treef0f7c57a35c20688434181f7e5a02f8fc3aa0ba2
parent8e2ea3ea962535c64800e82e03e3e1b6cfd9c64f
net: phy: enable interrupts when PHY is attached already

This patch is a step towards allowing PHY drivers to handle more
interrupt sources than just link change. E.g. several PHY's have
built-in temperature monitoring and can raise an interrupt if a
temperature threshold is exceeded. We may be interested in such
interrupts also if the phylib state machine isn't started.
Therefore move enabling interrupts to phy_request_interrupt().

v2:
- patch added to series

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phy.c
drivers/net/phy/phy_device.c
include/linux/phy.h