Skip to content

Commit 8fd4f98

Browse files
maass-hamburgkartben
authored andcommitted
drivers: ethernet: renesas: implement get_phy
implement get_phy for the renesas ethernet driver. Signed-off-by: Fin Maaß <[email protected]>
1 parent d31def3 commit 8fd4f98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/ethernet/eth_renesas_ra.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,17 @@ static int renesas_ra_eth_tx(const struct device *dev, struct net_pkt *pkt)
309309
return -1;
310310
}
311311

312+
static const struct device *renesas_ra_eth_get_phy(const struct device *dev)
313+
{
314+
const struct renesas_ra_eth_config *config = dev->config;
315+
316+
return config->phy_dev;
317+
}
318+
312319
static const struct ethernet_api api_funcs = {
313320
.iface_api.init = renesas_ra_eth_initialize,
314321
.get_capabilities = renesas_ra_eth_get_capabilities,
322+
.get_phy = renesas_ra_eth_get_phy,
315323
.send = renesas_ra_eth_tx,
316324
};
317325

0 commit comments

Comments
 (0)