From nobody Thu Apr 2 14:13:09 2026 Received: from srv01.abscue.de (abscue.de [89.58.28.240]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 730602D73AD; Sun, 29 Mar 2026 07:28:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.58.28.240 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774769282; cv=none; b=EIwE1A5uQPzjE/wOXzTRwPnqyTyZ7sGkUJfFxMmmDuGmlU63WgZQt4Gi+/TafbL9Tk0Q5KkdDBGQ5Rj2yjjpvmsywa3caqUjbeGqclLztpJHdISVzoSRc75dHlzS+vvQNmO/BSylTQ911aJrpJ5IcQFGpnUtuWBgg6MiWTLowGk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774769282; c=relaxed/simple; bh=pi32dSd8TSx+SNWSMpom2JT7gL0RFRI7pQDQIaLDrq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=EL/B1WWXtrOZ60zSmYLsWeILsTLwxkGjbkVIwcDP1kgqDjqZVyAEO/cyXQUWLbSq8U76NAo4k43Oh0x/SsPtLZ4D3fo9J9XGTYV3r4v6cWlkR2TdWQiKsYcjpIrvEkRSe+q9NSg5DytHwxGqBVAGuFWY61JB/ByJNcvw2CzU0kQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de; spf=pass smtp.mailfrom=abscue.de; dkim=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b=kFkdA6kY; arc=none smtp.client-ip=89.58.28.240 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=abscue.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=abscue.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de header.b="kFkdA6kY" Received: from fluffy-mammal.metal.fwg-cag.de (87-94-78-46.co.dnainternet.fi [87.94.78.46]) by srv01.abscue.de (Postfix) with ESMTPSA id CFE561C243A; Sun, 29 Mar 2026 09:27:52 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1774769274; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=RHqLGlaDozhvgx5NZzsru55VUPorc1eitoMtmO4DGA0=; b=kFkdA6kYd/QrIaoKLsTyJNmA2Q0Mz5EwPAxVol41mpbcwJhv275luDN+Ks0cowUWPG84YS yujaMxjyI4oi4ychknGaNUk169VnS7PzteBORUnRCaEwSH0x26xKsqONxK464zt1j5NG1e nBM/W7f4YY7gP/4m5hZnVttxpbdOQS65xoa3Yy2x2oxosHwWH2+Erw//4xEC3y54zakv34 BFdWvcNYiJQRZEvusS+td7NLuPPdCwrtgDJQFCbPhf1hGE9h7M35rWmlMwq+A+62QNG4mp d77Es7TlGYtG5kwqo0JYOUSAwu5ftKejl05uEmagbgBshp95YixcfZGWufiRKA== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Sun, 29 Mar 2026 09:27:48 +0200 Subject: [PATCH v3 4/5] power: reset: sc27xx: Add platform_device_id table Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260329-sc27xx-mfd-cells-v3-4-9158dee41f74@abscue.de> References: <20260329-sc27xx-mfd-cells-v3-0-9158dee41f74@abscue.de> In-Reply-To: <20260329-sc27xx-mfd-cells-v3-0-9158dee41f74@abscue.de> To: Alexandre Belloni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Orson Zhai , Baolin Wang , Chunyan Zhang , Lee Jones , Pavel Machek , Liam Girdwood , Mark Brown , Sebastian Reichel Cc: linux-rtc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org, linux-pm@vger.kernel.org, =?utf-8?q?Otto_Pfl=C3=BCger?= , Sebastian Reichel X-Mailer: b4 0.14.3 Make the poweroff driver for SC27xx-series PMICs probe automatically. Since the device representing the poweroff functionality of the SC27xx PMIC is not supposed to have a dedicated device tree node without any corresponding DT resources [1], an of_device_id table cannot be used here. Instead, use a platform_device_id table to match the poweroff sub-device instantiated by the parent MFD driver. Signed-off-by: Otto Pfl=C3=BCger [1]: https://lore.kernel.org/all/20251002025344.GA2958334-robh@kernel.org/ Acked-by: Sebastian Reichel --- drivers/power/reset/sc27xx-poweroff.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/power/reset/sc27xx-poweroff.c b/drivers/power/reset/sc= 27xx-poweroff.c index 393bd1c33b73..6376706bf561 100644 --- a/drivers/power/reset/sc27xx-poweroff.c +++ b/drivers/power/reset/sc27xx-poweroff.c @@ -6,6 +6,7 @@ =20 #include #include +#include #include #include #include @@ -70,11 +71,18 @@ static int sc27xx_poweroff_probe(struct platform_device= *pdev) return 0; } =20 +static const struct platform_device_id sc27xx_poweroff_id_table[] =3D { + { "sc2731-poweroff" }, + { } +}; +MODULE_DEVICE_TABLE(platform, sc27xx_poweroff_id_table); + static struct platform_driver sc27xx_poweroff_driver =3D { .probe =3D sc27xx_poweroff_probe, .driver =3D { .name =3D "sc27xx-poweroff", }, + .id_table =3D sc27xx_poweroff_id_table, }; module_platform_driver(sc27xx_poweroff_driver); =20 --=20 2.51.0