From: Alexander Usyskin <alexander.usyskin@intel.com>
To: Arnd Bergmann <arnd@arndb.de>,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org,
Menachem Adin <menachem.adin@intel.com>,
Alexander Usyskin <alexander.usyskin@intel.com>
Subject: [PATCH char-misc-next] mei: stop rescan work before bus cleanup
Date: Thu, 15 Oct 2026 15:58:14 +0300 [thread overview]
Message-ID: <20261015-stop_rescan_work-v1-1-3445fa3d7a1c@intel.com> (raw)
Cancel workers between setting driver state to MEI_DEV_POWERING_DOWN
and bus cleanup routine to ensure that stray bus rescan work
would not clash with the bus cleanup.
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
---
drivers/misc/mei/init.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c
index 82444d67db2a..56ecfccb9544 100644
--- a/drivers/misc/mei/init.c
+++ b/drivers/misc/mei/init.c
@@ -310,6 +310,10 @@ static void __mei_stop(struct mei_device *dev)
mutex_lock(&dev->device_lock);
mei_set_devstate(dev, MEI_DEV_POWERING_DOWN);
mutex_unlock(&dev->device_lock);
+
+ /* Cancel background work items (including bus rescan) before bus cleanup. */
+ mei_cancel_work(dev);
+
mei_cl_bus_remove_devices(dev);
mutex_lock(&dev->device_lock);
mei_set_devstate(dev, MEI_DEV_POWER_DOWN);
---
base-commit: 79e5797d243a466138f641932f81dc69f796060c
change-id: 20261015-stop_rescan_work-8e60b0eef735
Best regards,
--
Alexander Usyskin <alexander.usyskin@intel.com>
reply other threads:[~2026-10-15 12:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261015-stop_rescan_work-v1-1-3445fa3d7a1c@intel.com \
--to=alexander.usyskin@intel.com \
--cc=arnd@arndb.de \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=menachem.adin@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®