X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/510f76eab525775159b9c3f4262c627278039998..be8e44bc682b5dbf29121d3e0425a746a6a01977:/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c diff --git a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c index cae5af1d9..2a55d33d8 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/dev-eth.c @@ -797,6 +797,10 @@ void __init ath79_register_eth(unsigned int id) pdata->set_speed = ath79_set_speed_dummy; pdata->switch_data = &ath79_switch_data; + + /* reset the built-in switch */ + ath79_device_reset_set(AR934X_RESET_ETH_SWITCH); + ath79_device_reset_clear(AR934X_RESET_ETH_SWITCH); } pdata->ddr_flush = ath79_ddr_no_flush;