can: dev: add transceiver capabilities to xilinx_can
authorMarcel Hellwig <git@cookiesoft.de>
Mon, 17 Apr 2023 08:52:04 +0000 (10:52 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Mon, 22 May 2023 18:21:30 +0000 (20:21 +0200)
commitd7588f02e8d8a795702cf06cbbb4303c48b02a61
tree262a56666fbf2725468c96be530f47457ff6e0bb
parent843b84640349e56ab96812cd68c19ed7021f4606
can: dev: add transceiver capabilities to xilinx_can

Currently the xilinx_can driver does not support adding a phy like the
"ti,tcan1043" to its devicetree.

This code makes it possible to add such phy, so that the kernel makes
sure that the PHY is in operational state, when the link is set to an
"up" state.

Signed-off-by: Marcel Hellwig <git@cookiesoft.de>
Link: https://lore.kernel.org/r/20230417085204.179268-1-git@cookiesoft.de
[mkl: call phy_power_off() after pm_runtime_put()]
[mkl: remove error message for phy_power_on() failure]
[mkl: update kernel-doc for struct xcan_priv]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/xilinx_can.c