]> git.baikalelectronics.ru Git - kernel.git/commit
net: stmmac: Fix the logic of checking if RX Watchdog must be enabled
authorJose Abreu <jose.abreu@synopsys.com>
Wed, 9 Jan 2019 09:05:59 +0000 (10:05 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jan 2019 23:35:06 +0000 (15:35 -0800)
commite6024dc87e128cd119037f944da19249d99db9db
treea436c066a196e85b476d6f6c416f81550527453b
parent35d0490d105021e2aa51fcfb8293aac915bceb0f
net: stmmac: Fix the logic of checking if RX Watchdog must be enabled

RX Watchdog can be disabled by platform definitions but currently we are
initializing the descriptors before checking if Watchdog must be
disabled or not.

Fix this by checking earlier if user wants Watchdog disabled or not.

Cc: Joao Pinto <jpinto@synopsys.com>
Cc: David S. Miller <davem@davemloft.net>
Cc: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Cc: Alexandre Torgue <alexandre.torgue@st.com>
Signed-off-by: Jose Abreu <joabreu@synopsys.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c