On 11/5/19 12:02 PM, Dan Murphy wrote:
int ret, val;
To allocate your driver private memory and do that just once,probe callback? Why do I need a probe function?+This belongs into the probe callback.
+ÂÂÂ if (!phydev->priv) {
+ÂÂÂÂÂÂÂ dp83869 = devm_kzalloc(&phydev->mdio.dev, sizeof(*dp83869),
+ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ GFP_KERNEL);
config_init() can be called multiple times through the lifetime of your
PHY device driver, including but not limited to: phy_connect(),
phy_init_hw(), phy_resume() etc. etc.