net: stmmac: fix num_por initialization
authorVinod Koul <vkoul@kernel.org>
Thu, 14 May 2020 06:28:36 +0000 (11:58 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 May 2020 19:48:15 +0000 (12:48 -0700)
commit3b86bdd88ee3a642cf4b4f6e2909937e50ce7553
tree34d6562111b3719de48d1e0b3dec5d7ad2b04f93
parent06302dc410d791c0325fca7f2b1916baf1f61e3c
net: stmmac: fix num_por initialization

Driver missed initializing num_por which is one of the por values that
driver configures to hardware. In order to get these values, add a new
structure ethqos_emac_driver_data which holds por and num_por values
and populate that in driver probe.

Fixes: 9a87948aa144 ("net: stmmac: Add driver for Qualcomm ethqos")
Reported-by: Rahul Ankushrao Kawadgave <rahulak@qti.qualcomm.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Amit Kucheria <amit.kucheria@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c