On Thu, 18 Jun 2020 14:11:39 +0200 Heiko Stuebner wrote: > From: Heiko Stuebner <heiko.stuebner@xxxxxxxxxxxxxxxxxxxxx> > > At least VSC8530/8531/8540/8541 contain a clock output that can emit > a predefined rate of 25, 50 or 125MHz. > > This may then feed back into the network interface as source clock. > So expose a clock-provider from the phy using the common clock framework > to allow setting the rate. > > Signed-off-by: Heiko Stuebner <heiko.stuebner@xxxxxxxxxxxxxxxxxxxxx> Doesn't build with allmodconfig: ../drivers/net/phy/mscc/mscc_macsec.c:391:42: warning: cast from restricted sci_t ../drivers/net/phy/mscc/mscc_macsec.c:393:42: warning: restricted sci_t degrades to integer ../drivers/net/phy/mscc/mscc_macsec.c:400:42: warning: restricted __be16 degrades to integer ../drivers/net/phy/mscc/mscc_macsec.c:606:34: warning: cast from restricted sci_t ../drivers/net/phy/mscc/mscc_macsec.c:608:34: warning: restricted sci_t degrades to integer ../drivers/net/phy/mscc/mscc_macsec.c:391:42: warning: cast from restricted sci_t ../drivers/net/phy/mscc/mscc_macsec.c:393:42: warning: restricted sci_t degrades to integer ../drivers/net/phy/mscc/mscc_macsec.c:400:42: warning: restricted __be16 degrades to integer ../drivers/net/phy/mscc/mscc_macsec.c:606:34: warning: cast from restricted sci_t ../drivers/net/phy/mscc/mscc_macsec.c:608:34: warning: restricted sci_t degrades to integer In file included from ../drivers/net/phy/mscc/mscc_macsec.c:17: ../drivers/net/phy/mscc/mscc.h:371:16: error: field ‘clkout_hw’ has incomplete type 371 | struct clk_hw clkout_hw; | ^~~~~~~~~ make[5]: *** [drivers/net/phy/mscc/mscc_macsec.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [drivers/net/phy/mscc] Error 2 make[3]: *** [drivers/net/phy] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [drivers/net] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [drivers] Error 2 make: *** [__sub-make] Error 2