Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1178838rdh; Fri, 24 Nov 2023 06:54:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IEEQPmBvSxyKHjrEQDe/iLHGJ/6cmD8ZMZf40tzQ1osfr8r6wyDU4iQQrCpUlXRmthpJuBT X-Received: by 2002:a17:90b:3846:b0:285:6d72:fd7 with SMTP id nl6-20020a17090b384600b002856d720fd7mr3227701pjb.26.1700837642716; Fri, 24 Nov 2023 06:54:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700837642; cv=none; d=google.com; s=arc-20160816; b=jzz3B74ajyjhICoKGzKyghubDJAGaw2TWzc3UDNet1+JwTaZxDUNd9lMbnX5h25lAZ qO6u0XHPkfJOH3ENuKMhHNv8zNxTcbwVPUNX/oFaIJr2QruyixdfBFZhAk4CEAAULE1H fvQ5DkdoDzOXpDl6wPi1voDN0BR6UuHwTB2Afs1Sbr2/0563CWecplIMwhc8KG670BAU jiWRBEn6bXB2N+cAfAitVYlNbgv/WBS3kFKefdBWQjUM4SAw5eXT7Wf8n7yvNve9gRil ktotWGNKm3nFXJ8xyZOs8yJ4s7ifjmt8QF2tiVbcGYJT6sicHHGBl/y3/y13Y4fV4Mdf YXtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=M+LbrxsMl6sGQ+zyejXjx496LeAiFCKyUJohJmVeZ1U=; fh=ocxZ/h3ioldfpEoEIh3pDUh60EAto7Ia5QGaG5MGfZA=; b=bXXF4EqKF7VHe0zdhPvzr773LXSC7buBkFYxqmt20ysQEYHQ95l6CZDNB/GJSEaqyh 4b5h8R3qRK17BXLJ+CHm6bT4oVIx3eM4/X/GwUyHwetVycpG1H0Tbh5nUh4vImqX9cDj SVzi7CIAAH/IVVEwFYCnSR4RMLo5fJlUQNAn6QgonMr/j/rPERpAyMka+EAD5Q0yJ9aY HoLcoWOFw/jL++DWt3lwDDUQtsqEGms2VX8WCpeGVHV/cODV73fg/OevfoTzuwVhceQX OmzmsM3ulM89302WZqrfM0+H+9hauxs8iuBaLsXAghJCcaUX350AWiGT8sYJU75/IJB4 wppQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id j14-20020a17090ae60e00b00279866aa14csi3723306pjy.16.2023.11.24.06.54.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 06:54:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id BA97683303E2; Fri, 24 Nov 2023 06:53:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231231AbjKXOxm (ORCPT + 99 others); Fri, 24 Nov 2023 09:53:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56410 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229501AbjKXOxk (ORCPT ); Fri, 24 Nov 2023 09:53:40 -0500 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CB7181725 for ; Fri, 24 Nov 2023 06:53:46 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r6XYp-0006o5-QO; Fri, 24 Nov 2023 15:53:39 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r6XYo-00BI0t-WF; Fri, 24 Nov 2023 15:53:39 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1r6XYo-00D3l9-2p; Fri, 24 Nov 2023 15:53:38 +0100 From: Oleksij Rempel To: Greg Kroah-Hartman , "Rafael J. Wysocki" , Ulf Hansson , Mark Brown Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, linux-pm@vger.kernel.org, =?UTF-8?q?S=C3=B8ren=20Andersen?= Subject: [PATCH v1 0/3] introduce priority-based shutdown support Date: Fri, 24 Nov 2023 15:53:35 +0100 Message-Id: <20231124145338.3112416-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Fri, 24 Nov 2023 06:53:57 -0800 (PST) Hi, This patch series introduces support for prioritized device shutdown. The main goal is to enable prioritization for shutting down specific devices, particularly crucial in scenarios like power loss where hardware damage can occur if not handled properly. Oleksij Rempel (3): driver core: move core part of device_shutdown() to a separate function driver core: introduce prioritized device shutdown sequence mmc: core: increase shutdown priority for MMC devices drivers/base/core.c | 157 +++++++++++++++++++++++++++-------------- drivers/mmc/core/bus.c | 2 + include/linux/device.h | 51 ++++++++++++- kernel/reboot.c | 4 +- 4 files changed, 157 insertions(+), 57 deletions(-) -- 2.39.2