summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOleksij Rempel <o.rempel@pengutronix.de>2021-10-13 14:18:24 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2021-11-11 14:12:06 +0100
commit4a55eae91d5bcfad7c4ddf38c03bd596b0a41e66 (patch)
treedb7474533a83d7b4c35a957b042b8d0c929a955d /include
parentc1a9c6003902238a92d9180abb012d39a926018e (diff)
downloadbarebox-4a55eae91d5bcfad7c4ddf38c03bd596b0a41e66.tar.gz
barebox-4a55eae91d5bcfad7c4ddf38c03bd596b0a41e66.tar.xz
include/phy: add driver_data to resume more of kernel code
Add driver_data pointer to be able to port more of kernel code for micrel phy. Signed-off-by: Oleksij Rempel <o.rempel@pengutronix.de> Link: https://lore.barebox.org/20211013121825.4278-1-o.rempel@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/phy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/phy.h b/include/linux/phy.h
index a4cda3e28d..202eeb4d44 100644
--- a/include/linux/phy.h
+++ b/include/linux/phy.h
@@ -212,6 +212,7 @@ struct phy_device {
* phy_id_mask: Defines the important bits of the phy_id
* features: A list of features (speed, duplex, etc) supported
* by this PHY
+ * @driver_data: Static driver data
*
* The drivers must implement config_aneg and read_status. All
* other functions are optional. Note that none of these
@@ -225,6 +226,7 @@ struct phy_driver {
u32 phy_id;
unsigned int phy_id_mask;
u32 features;
+ const void *driver_data;
/*
* Called to initialize the PHY,