]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7affeb9d894818b682758f4c68608a1201998e5a
tree34d6562111b3719de48d1e0b3dec5d7ad2b04f93
parent77aff8ceed775a182a1e72846b86b88af6afbadf
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: 169b56fcf09e ("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