From nobody Fri Apr 3 03:01:34 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 4D731238166; Wed, 25 Mar 2026 13:55:02 +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=1774446903; cv=none; b=SPlL2PgBsBQ1I3uFIxnoiibRNYFQ0LpIYOYCIp1JSVp4+30yl+v3QMkJD1WVdkhFc/HmNfh7/q/bzN4TKWWFREukd8CM8KxL/igqFIMAoMML2j2miF2dBviEvBCqjBZzUO8o2Lr8Fj+U0BKhvPSoIkcbpa1Y241qGNE4dBZzdHw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774446903; c=relaxed/simple; bh=pi32dSd8TSx+SNWSMpom2JT7gL0RFRI7pQDQIaLDrq8=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=g51e5BLAY5Zxf/xo0JYUtWKJPrMrczhrAsWNHiGXGzkc52XHVkGoAAKiDhlBJAykqWe1PWfRL4WflP/1TMPxu+ZwIv7A6phk2BNqEk23Db7ptn0Y/eIk/0bMfo2CzAPBr+0YZcvyGIw3QLmvMtCO0mTmrjzrjp5TXjGN4VqejGE= 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=j5QaGxjM; 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="j5QaGxjM" Received: from fluffy-mammal.metal.fwg-cag.de (unknown [IPv6:2001:9e8:cde0:9600:8d27:ae39:1dce:2212]) by srv01.abscue.de (Postfix) with ESMTPSA id 723A71C264D; Wed, 25 Mar 2026 14:54:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim; t=1774446895; 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=j5QaGxjMbarizNKHJzox7nHghzgQitSFGmmXHww5GAQk5KCe6PLq1Br5PJDwNs/nY6Re3C 3SWjG99OKfLDpNxmwl/NgUS0imMukDjuvqDw2qiVkP8os1yX6e8Kf37Y57uJjfCLAkJkio 9q6yuDHRsM6X+yoyWiINjYVGvTwWcbtXsCVhLqO22o1L9I/dY5HyNlCM4oEaU4nL5wAEG8 nCtkbfmkJXVYHrJh5v5iyxIxkBsf5tJOanbbRYiV/v9cEXnqCSvy54edX3UgGZ40hihUaj G/4JkYrHSlZyfmyPU1DBIn0b8nVXxxUDifA+nkMBvW6CLZFDnZL2Aa8vltdoHw== From: =?utf-8?q?Otto_Pfl=C3=BCger?= Date: Wed, 25 Mar 2026 14:53:46 +0100 Subject: [PATCH v2 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: <20260325-sc27xx-mfd-cells-v2-4-d0ebb60aa4a7@abscue.de> References: <20260325-sc27xx-mfd-cells-v2-0-d0ebb60aa4a7@abscue.de> In-Reply-To: <20260325-sc27xx-mfd-cells-v2-0-d0ebb60aa4a7@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