[PATCH v2 0/3] driver core: sync state fixups

From: Saravana Kannan
Date: Fri Feb 21 2020 - 03:37:12 EST


Patch 1/3 fixes a bug where sync_state() might not be called when it
should be. Patches 2/3 and 3/3 are just minor fix ups that I'm grouping
together. Not much to say here.

-Saravana

v1->v2:
- Fix compilation issue in 3/3 (forgot to commit --amend in v1)

Saravana Kannan (3):
driver core: Call sync_state() even if supplier has no consumers
driver core: Add dev_has_sync_state()
driver core: Skip unnecessary work when device doesn't have
sync_state()

drivers/base/core.c | 27 ++++++++++++++++++++-------
include/linux/device.h | 11 +++++++++++
2 files changed, 31 insertions(+), 7 deletions(-)

--
2.25.0.265.gbab2e86ba0-goog