Commits
Ivan Khoronzhuk committed b5802f6b15a
net: ethernet: ti: cpsw: fix resume because of usage count The usage count function is based on ndev_running flag that is updated before calling ndo_open/close, but if ndo is called in another place, in this case in suspend/resume, the counter is not changed, that breaks sus/resume. For common resource no difference which device is using it, does matter only device count. So, replace usage count function on var and inc and dec it in ndo_open/close. Fixes: 03fd01ad0eead23eb79294b6fb4d71dcac493855 "net: ethernet: ti: cpsw: don't duplicate ndev_running" Upstream Patch: https://patchwork.ozlabs.org/patch/725877/ Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org> Signed-off-by: Keerthy <j-keerthy@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>