I think so.
We also need to put a pm_check_wakeup_events() check into dpm_suspend() IMO,
so that we abort the suspending of devices as soon as a wakeup event is
Ideally, yes, but I'm not sure if that's generally possible. IMO, it won't be
a big deal if a parent device is suspended and immediately resumed occasionally
due to a pending wakeup signal from one of its children. It may be a problem
if that happens too often, though.
Does it mean you're fine with the patch?