summaryrefslogtreecommitdiff
path: root/net/lapb/lapb_in.c
diff options
context:
space:
mode:
authorRussell King (Oracle) <rmk+kernel@armlinux.org.uk>2025-08-01 20:40:41 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-08-13 18:15:45 +0300
commit202ad1aaca777dc7fd24f459f5f808f5abd2bfda (patch)
treebab370a4339bcceebf78a7b45fd81d488b4b4fa6 /net/lapb/lapb_in.c
parente664036cf36480414936cd91f4cfa2179a3d8367 (diff)
downloadlinux-202ad1aaca777dc7fd24f459f5f808f5abd2bfda.tar.xz
usb: gadget: tegra-xudc: fix PM use count underflow
Upon resume from system suspend, the PM runtime core issues the following warning: tegra-xudc 3550000.usb: Runtime PM usage count underflow! This is because tegra_xudc_resume() unconditionally calls schedule_work(&xudc->usb_role_sw_work) whether or not anything has changed, which causes tegra_xudc_device_mode_off() to be called even when we're already in that mode. Keep track of the current state of "device_mode", and only schedule this work if it has changed from the hardware state on resume. Signed-off-by: "Russell King (Oracle)" <rmk+kernel@armlinux.org.uk> Link: https://lore.kernel.org/r/E1uhtkH-007KDZ-JT@rmk-PC.armlinux.org.uk Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions