summaryrefslogtreecommitdiff
path: root/net/core/dev_api.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2025-04-23 14:43:27 +0300
committerMark Brown <broonie@kernel.org>2025-04-23 14:43:27 +0300
commit382d4ee4455234b498f201c00bfc120dc38b78c3 (patch)
tree004c6db23c33623dd9ff5adaafe2e191748a1cbf /net/core/dev_api.c
parent7762fdab23100514e5cb612331c96bd65126ada5 (diff)
parente8ac7336dd62f0443a675ed80b17f0f0e6846e20 (diff)
downloadlinux-382d4ee4455234b498f201c00bfc120dc38b78c3.tar.xz
regulator: max20086: Fixes chip id and enable gpio
Merge series from João Paulo Gonçalves <jpaulo.silvagoncalves@gmail.com>: I'm working on integrating a system with a MAX20086 and noticed these small issues in the driver: the chip ID for MAX20086 is 0x30 and not 0x40. Also, in my use case, the enable pin is always enabled by hardware, so the enable GPIO isn't needed. Without these changes, the driver fails to probe.
Diffstat (limited to 'net/core/dev_api.c')
-rw-r--r--net/core/dev_api.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/net/core/dev_api.c b/net/core/dev_api.c
index 90bafb0b1b8c..90898cd540ce 100644
--- a/net/core/dev_api.c
+++ b/net/core/dev_api.c
@@ -327,3 +327,19 @@ int dev_xdp_propagate(struct net_device *dev, struct netdev_bpf *bpf)
return ret;
}
EXPORT_SYMBOL_GPL(dev_xdp_propagate);
+
+/**
+ * netdev_state_change() - device changes state
+ * @dev: device to cause notification
+ *
+ * Called to indicate a device has changed state. This function calls
+ * the notifier chains for netdev_chain and sends a NEWLINK message
+ * to the routing socket.
+ */
+void netdev_state_change(struct net_device *dev)
+{
+ netdev_lock_ops(dev);
+ netif_state_change(dev);
+ netdev_unlock_ops(dev);
+}
+EXPORT_SYMBOL(netdev_state_change);