Message ID | 20230122212153.295387-4-bjorn@mork.no (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | fixes for mtk_eth_soc | expand |
On Sun, Jan 22, 2023 at 10:21:53PM +0100, Bjørn Mork wrote: > From: Alexander Couzens <lynxis@fe80.eu> > > Currently there is no IRQ handling (even the SGMII supports it). > Enable polling to support SFP ports. > > Signed-off-by: Alexander Couzens <lynxis@fe80.eu> > [ bmork: changed "1" => "true" ] > Signed-off-by: Bjørn Mork <bjorn@mork.no> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Thanks!
diff --git a/drivers/net/ethernet/mediatek/mtk_sgmii.c b/drivers/net/ethernet/mediatek/mtk_sgmii.c index c4261069b521..bb00de1003ac 100644 --- a/drivers/net/ethernet/mediatek/mtk_sgmii.c +++ b/drivers/net/ethernet/mediatek/mtk_sgmii.c @@ -187,6 +187,7 @@ int mtk_sgmii_init(struct mtk_sgmii *ss, struct device_node *r, u32 ana_rgc3) return PTR_ERR(ss->pcs[i].regmap); ss->pcs[i].pcs.ops = &mtk_pcs_ops; + ss->pcs[i].pcs.poll = true; ss->pcs[i].interface = PHY_INTERFACE_MODE_NA; }