]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commitfd4a5177382230d39e0d95632d98103fb2938383
tree34d6562111b3719de48d1e0b3dec5d7ad2b04f93
parent9de5d235b60a7cdfcdd5461e70c5663e713fde87
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: a7c30e62d4b8 ("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