Netdev List
 help / color / mirror / Atom feed
From: Ong Boon Leong <boon.leong.ong@intel.com>
To: davem@davemloft.net, linux@armlinux.org.uk,
	mcoquelin.stm32@gmail.com, joabreu@synopsys.com,
	f.fainelli@gmail.com, andrew@lunn.ch
Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
	peppe.cavallaro@st.com, alexandre.torgue@st.com,
	weifeng.voon@intel.com
Subject: [RFC net-next v2 3/5] net: phy: add private data to mdio_device
Date: Thu, 29 Aug 2019 01:47:20 +0800	[thread overview]
Message-ID: <20190828174722.6726-4-boon.leong.ong@intel.com> (raw)
In-Reply-To: <20190828174722.6726-1-boon.leong.ong@intel.com>

PHY converter device is represented as mdio_device and requires private
data. So, we add pointer for private data to mdio_device struct.

Signed-off-by: Ong Boon Leong <boon.leong.ong@intel.com>
---
 include/linux/mdio.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/mdio.h b/include/linux/mdio.h
index e0ccd56a7ac0..fc7dfbe75006 100644
--- a/include/linux/mdio.h
+++ b/include/linux/mdio.h
@@ -40,6 +40,8 @@ struct mdio_device {
 	struct reset_control *reset_ctrl;
 	unsigned int reset_assert_delay;
 	unsigned int reset_deassert_delay;
+	/* Private data */
+	void *priv;
 };
 #define to_mdio_device(d) container_of(d, struct mdio_device, dev)
 
-- 
2.17.0


  parent reply	other threads:[~2019-08-28 17:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-28 17:47 [RFC net-next v2 0/5] PHY converter driver for DW xPCS IP Ong Boon Leong
2019-08-28 17:47 ` [RFC net-next v2 1/5] net: phy: make mdiobus_create_device() function callable from Eth driver Ong Boon Leong
2019-08-28 17:47 ` [RFC net-next v2 2/5] net: phy: introduce mdiobus_get_mdio_device Ong Boon Leong
2019-08-28 17:47 ` Ong Boon Leong [this message]
2019-08-28 18:06   ` [RFC net-next v2 3/5] net: phy: add private data to mdio_device Andrew Lunn
2019-08-28 17:47 ` [RFC net-next v2 4/5] net: phy: introducing support for DWC xPCS logics for EHL & TGL Ong Boon Leong
2019-09-06 13:28   ` Jose Abreu
2019-08-28 17:47 ` [RFC net-next v2 5/5] net: stmmac: add dwxpcs boardinfo for mdio_device registration Ong Boon Leong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190828174722.6726-4-boon.leong.ong@intel.com \
    --to=boon.leong.ong@intel.com \
    --cc=alexandre.torgue@st.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=f.fainelli@gmail.com \
    --cc=joabreu@synopsys.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=mcoquelin.stm32@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    --cc=weifeng.voon@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox