{"id":2215876,"url":"http://patchwork.ozlabs.org/api/patches/2215876/?format=json","web_url":"http://patchwork.ozlabs.org/project/rtc-linux/patch/20260325-sc27xx-mfd-cells-v2-4-d0ebb60aa4a7@abscue.de/","project":{"id":9,"url":"http://patchwork.ozlabs.org/api/projects/9/?format=json","name":"Linux RTC development","link_name":"rtc-linux","list_id":"linux-rtc.vger.kernel.org","list_email":"linux-rtc@vger.kernel.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20260325-sc27xx-mfd-cells-v2-4-d0ebb60aa4a7@abscue.de>","list_archive_url":null,"date":"2026-03-25T13:53:46","name":"[v2,4/5] power: reset: sc27xx: Add platform_device_id table","commit_ref":null,"pull_url":null,"state":"superseded","archived":false,"hash":"1a8443fba6bc4aec2a3f163195b242069e746b4b","submitter":{"id":85322,"url":"http://patchwork.ozlabs.org/api/people/85322/?format=json","name":"Otto Pflüger","email":"otto.pflueger@abscue.de"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/rtc-linux/patch/20260325-sc27xx-mfd-cells-v2-4-d0ebb60aa4a7@abscue.de/mbox/","series":[{"id":497448,"url":"http://patchwork.ozlabs.org/api/series/497448/?format=json","web_url":"http://patchwork.ozlabs.org/project/rtc-linux/list/?series=497448","date":"2026-03-25T13:53:42","name":"mfd: sc27xx: Use MFD cells and devm_mfd_add_devices()","version":2,"mbox":"http://patchwork.ozlabs.org/series/497448/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/2215876/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/2215876/checks/","tags":{},"related":[],"headers":{"Return-Path":"\n <linux-rtc+bounces-6251-incoming=patchwork.ozlabs.org@vger.kernel.org>","X-Original-To":["incoming@patchwork.ozlabs.org","linux-rtc@vger.kernel.org"],"Delivered-To":"patchwork-incoming@legolas.ozlabs.org","Authentication-Results":["legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=abscue.de header.i=@abscue.de header.a=rsa-sha256\n header.s=dkim header.b=j5QaGxjM;\n\tdkim-atps=neutral","legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=linux-rtc+bounces-6251-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)","smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de\n header.b=\"j5QaGxjM\"","smtp.subspace.kernel.org;\n arc=none smtp.client-ip=89.58.28.240","smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=abscue.de","smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=abscue.de"],"Received":["from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fgpYT1s8sz1xy3\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 01:04:13 +1100 (AEDT)","from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id EF96F30BAB46\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 13:55:14 +0000 (UTC)","from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D911F3DCD9E;\n\tWed, 25 Mar 2026 13:55:03 +0000 (UTC)","from srv01.abscue.de (abscue.de [89.58.28.240])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 4D731238166;\n\tWed, 25 Mar 2026 13:55:02 +0000 (UTC)","from fluffy-mammal.metal.fwg-cag.de (unknown\n [IPv6:2001:9e8:cde0:9600:8d27:ae39:1dce:2212])\n\tby srv01.abscue.de (Postfix) with ESMTPSA id 723A71C264D;\n\tWed, 25 Mar 2026 14:54:54 +0100 (CET)"],"ARC-Seal":"i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1774446903; cv=none;\n b=SPlL2PgBsBQ1I3uFIxnoiibRNYFQ0LpIYOYCIp1JSVp4+30yl+v3QMkJD1WVdkhFc/HmNfh7/q/bzN4TKWWFREukd8CM8KxL/igqFIMAoMML2j2miF2dBviEvBCqjBZzUO8o2Lr8Fj+U0BKhvPSoIkcbpa1Y241qGNE4dBZzdHw=","ARC-Message-Signature":"i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1774446903; c=relaxed/simple;\n\tbh=pi32dSd8TSx+SNWSMpom2JT7gL0RFRI7pQDQIaLDrq8=;\n\th=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References:\n\t In-Reply-To:To:Cc;\n b=g51e5BLAY5Zxf/xo0JYUtWKJPrMrczhrAsWNHiGXGzkc52XHVkGoAAKiDhlBJAykqWe1PWfRL4WflP/1TMPxu+ZwIv7A6phk2BNqEk23Db7ptn0Y/eIk/0bMfo2CzAPBr+0YZcvyGIw3QLmvMtCO0mTmrjzrjp5TXjGN4VqejGE=","ARC-Authentication-Results":"i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=abscue.de;\n spf=pass smtp.mailfrom=abscue.de;\n dkim=pass (2048-bit key) header.d=abscue.de header.i=@abscue.de\n header.b=j5QaGxjM; arc=none smtp.client-ip=89.58.28.240","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=abscue.de; s=dkim;\n\tt=1774446895;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\t to:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\t content-transfer-encoding:content-transfer-encoding:\n\t in-reply-to:in-reply-to:references:references;\n\tbh=RHqLGlaDozhvgx5NZzsru55VUPorc1eitoMtmO4DGA0=;\n\tb=j5QaGxjMbarizNKHJzox7nHghzgQitSFGmmXHww5GAQk5KCe6PLq1Br5PJDwNs/nY6Re3C\n\t3SWjG99OKfLDpNxmwl/NgUS0imMukDjuvqDw2qiVkP8os1yX6e8Kf37Y57uJjfCLAkJkio\n\t9q6yuDHRsM6X+yoyWiINjYVGvTwWcbtXsCVhLqO22o1L9I/dY5HyNlCM4oEaU4nL5wAEG8\n\tnCtkbfmkJXVYHrJh5v5iyxIxkBsf5tJOanbbRYiV/v9cEXnqCSvy54edX3UgGZ40hihUaj\n\tG/4JkYrHSlZyfmyPU1DBIn0b8nVXxxUDifA+nkMBvW6CLZFDnZL2Aa8vltdoHw==","From":"=?utf-8?q?Otto_Pfl=C3=BCger?= <otto.pflueger@abscue.de>","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-rtc@vger.kernel.org","List-Id":"<linux-rtc.vger.kernel.org>","List-Subscribe":"<mailto:linux-rtc+subscribe@vger.kernel.org>","List-Unsubscribe":"<mailto:linux-rtc+unsubscribe@vger.kernel.org>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"utf-8\"","Content-Transfer-Encoding":"8bit","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 <alexandre.belloni@bootlin.com>,\n Rob Herring <robh@kernel.org>, Krzysztof Kozlowski <krzk+dt@kernel.org>,\n Conor Dooley <conor+dt@kernel.org>, Orson Zhai <orsonzhai@gmail.com>,\n Baolin Wang <baolin.wang@linux.alibaba.com>,\n Chunyan Zhang <zhang.lyra@gmail.com>, Lee Jones <lee@kernel.org>,\n Pavel Machek <pavel@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>,\n Mark Brown <broonie@kernel.org>, Sebastian Reichel <sre@kernel.org>","Cc":"linux-rtc@vger.kernel.org, devicetree@vger.kernel.org,\n  linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org,\n  linux-pm@vger.kernel.org,\n =?utf-8?q?Otto_Pfl=C3=BCger?= <otto.pflueger@abscue.de>,\n  Sebastian Reichel <sebastian.reichel@collabora.com>","X-Mailer":"b4 0.14.3"},"content":"Make the poweroff driver for SC27xx-series PMICs probe automatically.\nSince the device representing the poweroff functionality of the SC27xx\nPMIC is not supposed to have a dedicated device tree node without any\ncorresponding DT resources [1], an of_device_id table cannot be used\nhere. Instead, use a platform_device_id table to match the poweroff\nsub-device instantiated by the parent MFD driver.\n\nSigned-off-by: Otto Pflüger <otto.pflueger@abscue.de>\n\n[1]: https://lore.kernel.org/all/20251002025344.GA2958334-robh@kernel.org/\n\nAcked-by: Sebastian Reichel <sebastian.reichel@collabora.com>\n---\n drivers/power/reset/sc27xx-poweroff.c | 8 ++++++++\n 1 file changed, 8 insertions(+)","diff":"diff --git a/drivers/power/reset/sc27xx-poweroff.c b/drivers/power/reset/sc27xx-poweroff.c\nindex 393bd1c33b73..6376706bf561 100644\n--- a/drivers/power/reset/sc27xx-poweroff.c\n+++ b/drivers/power/reset/sc27xx-poweroff.c\n@@ -6,6 +6,7 @@\n \n #include <linux/cpu.h>\n #include <linux/kernel.h>\n+#include <linux/mod_devicetable.h>\n #include <linux/module.h>\n #include <linux/platform_device.h>\n #include <linux/pm.h>\n@@ -70,11 +71,18 @@ static int sc27xx_poweroff_probe(struct platform_device *pdev)\n \treturn 0;\n }\n \n+static const struct platform_device_id sc27xx_poweroff_id_table[] = {\n+\t{ \"sc2731-poweroff\" },\n+\t{ }\n+};\n+MODULE_DEVICE_TABLE(platform, sc27xx_poweroff_id_table);\n+\n static struct platform_driver sc27xx_poweroff_driver = {\n \t.probe = sc27xx_poweroff_probe,\n \t.driver = {\n \t\t.name = \"sc27xx-poweroff\",\n \t},\n+\t.id_table = sc27xx_poweroff_id_table,\n };\n module_platform_driver(sc27xx_poweroff_driver);\n \n","prefixes":["v2","4/5"]}