Commits
Peter Chen committed 1fbbc6bd157
MLK-16532 usb: chipidea: do not call WARN_ON if controller is going to suspend twice At current PM framework, the dev->runtime_suspend may be called after dev->system_suspend is called, and the dev->runtime_resume may be called before dev->system_suspend is called. So, we need to delete WARN_ON to avoid before dump: [ 466.712978] [<ffff200008c49cdc>] ci_hdrc_imx_runtime_suspend+0x2c/0xa8 [ 466.719619] [<ffff2000088c29e8>] pm_generic_runtime_suspend+0x48/0x68 [ 466.726168] [<ffff2000088d4f04>] genpd_runtime_suspend+0xcc/0x300 [ 466.732372] [<ffff2000088c7068>] pm_runtime_force_suspend+0x48/0xa8 [ 466.738748] [<ffff2000088d5330>] pm_genpd_suspend_noirq+0xa0/0x118 [ 466.745032] [<ffff2000088c86ec>] dpm_run_callback+0x4c/0xc0 [ 466.750709] [<ffff2000088c941c>] __device_suspend_noirq+0x194/0x3d0 [ 466.757080] [<ffff2000088cb460>] dpm_suspend_noirq+0x188/0x328 [ 466.763024] [<ffff200008143218>] suspend_devices_and_enter+0x230/0x650 [ 466.769655] [<ffff200008143990>] pm_suspend+0x358/0x3d0 [ 466.774984] [<ffff200008141f0c>] state_store+0x8c/0x100 [ 466.780321] [<ffff20000857a83c>] kobj_attr_store+0x44/0x60 [ 466.785915] [<ffff2000083436a8>] sysfs_kf_write+0x98/0xb0 [ 466.791419] [<ffff200008342118>] kernfs_fop_write+0x120/0x288 [ 466.797276] [<ffff20000828d518>] __vfs_write+0xc0/0x238 [ 466.802604] [<ffff20000828e900>] vfs_write+0xc8/0x248 [ 466.807764] [<ffff200008290678>] SyS_write+0xa0/0x110 [ 466.812919] [<ffff20000808374c>] __sys_trace_return+0x0/0x4 BuildInfo: - SCFW 1f59442e, IMX-MKIMAGE fb52c576, ATF - U-Boot 2017.03-imx_v2017.03+g34be5a2 Cc: Anson Huang <anson.huang@nxp.com> Acked-by: Jun Li <jun.li@nxp.com> Signed-off-by: Peter Chen <peter.chen@nxp.com>