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: a7c30e62 ("net: stmmac: Add driver for Qualcomm ethqos") Reported-by: NRahul Ankushrao Kawadgave <rahulak@qti.qualcomm.com> Signed-off-by: NVinod Koul <vkoul@kernel.org> Reviewed-by: NAmit Kucheria <amit.kucheria@linaro.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录