Message ID | 20240105130404.301172-7-gatien.chevallier@foss.st.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers |
Received: from sv.mirrors.kernel.org ([139.178.88.99]) by www.linuxtv.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from <linux-media+bounces-3244-patchwork=linuxtv.org@vger.kernel.org>) id 1rLjyd-00FwE8-Iu for patchwork@linuxtv.org; Fri, 05 Jan 2024 13:11:08 +0000 Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 8CCCE281328 for <patchwork@linuxtv.org>; Fri, 5 Jan 2024 13:11:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C41DC2EB07; Fri, 5 Jan 2024 13:08:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=foss.st.com header.i=@foss.st.com header.b="7NPz5AHz" X-Original-To: linux-media@vger.kernel.org Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 C3A402D60E; Fri, 5 Jan 2024 13:08:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 405A5E0W024600; Fri, 5 Jan 2024 14:05:50 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:content-type; s= selector1; bh=BX9Ea+0NT8jzuu1PSshCC3cinphy71OrLcncKVsDu4o=; b=7N Pz5AHzfI1stECBdFYMiQeSkFWk0WIbPxupgbIqkLqFCPWG9+xdHrCohxbXLFZUoF /XcBR3u2RxHwcWl5ar6LuxCLQpG5nm6GVv50nkmqdIQbhMkR20tJb311D2azH4WK 5HOyVBN6Dxh3PhTYeeevUT4jZP8RZCi3r82eyDhTgnJt53JYTbHTMP2oqhvmjTwC zI7uRlTh1QHczOoHwbkucfubFwmRP2Q63kmEXh6YEuoDCH56B715vzyXMjOvaeie Pfdy/9yKSXFnsRqNwjires1eR7z+MD4m+BQXOCUFHUWuKzDVO8/9kQZtaisMm2/8 P4kzxICXNHDC6tZtHVzA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3ve9f525hm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 05 Jan 2024 14:05:50 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 6F96C10002A; Fri, 5 Jan 2024 14:05:48 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 619E4229A94; Fri, 5 Jan 2024 14:05:48 +0100 (CET) Received: from localhost (10.201.20.32) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 5 Jan 2024 14:05:48 +0100 From: Gatien Chevallier <gatien.chevallier@foss.st.com> To: <Oleksii_Moisieiev@epam.com>, <gregkh@linuxfoundation.org>, <herbert@gondor.apana.org.au>, <davem@davemloft.net>, <robh+dt@kernel.org>, <krzysztof.kozlowski+dt@linaro.org>, <conor+dt@kernel.org>, <alexandre.torgue@foss.st.com>, <vkoul@kernel.org>, <jic23@kernel.org>, <olivier.moysan@foss.st.com>, <arnaud.pouliquen@foss.st.com>, <mchehab@kernel.org>, <fabrice.gasnier@foss.st.com>, <andi.shyti@kernel.org>, <ulf.hansson@linaro.org>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <hugues.fruchet@foss.st.com>, <lee@kernel.org>, <will@kernel.org>, <catalin.marinas@arm.com>, <arnd@kernel.org>, <richardcochran@gmail.com>, Frank Rowand <frowand.list@gmail.com>, <peng.fan@oss.nxp.com>, <lars@metafoo.de>, <rcsekar@samsung.com>, <wg@grandegger.com>, <mkl@pengutronix.de> CC: <linux-crypto@vger.kernel.org>, <devicetree@vger.kernel.org>, <linux-stm32@st-md-mailman.stormreply.com>, <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, <dmaengine@vger.kernel.org>, <linux-i2c@vger.kernel.org>, <linux-iio@vger.kernel.org>, <alsa-devel@alsa-project.org>, <linux-media@vger.kernel.org>, <linux-mmc@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-phy@lists.infradead.org>, <linux-serial@vger.kernel.org>, <linux-spi@vger.kernel.org>, <linux-usb@vger.kernel.org>, Gatien Chevallier <gatien.chevallier@foss.st.com>, Rob Herring <robh@kernel.org> Subject: [PATCH v9 06/13] of: property: fw_devlink: Add support for "access-controller" Date: Fri, 5 Jan 2024 14:03:57 +0100 Message-ID: <20240105130404.301172-7-gatien.chevallier@foss.st.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240105130404.301172-1-gatien.chevallier@foss.st.com> References: <20240105130404.301172-1-gatien.chevallier@foss.st.com> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: <linux-media.vger.kernel.org> List-Subscribe: <mailto:linux-media+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-media+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: EQNCAS1NODE3.st.com (10.75.129.80) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-01-05_06,2024-01-05_01,2023-05-22_02 X-LSpam-Score: -4.8 (----) X-LSpam-Report: No, score=-4.8 required=5.0 tests=BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1,RCVD_IN_DNSWL_MED=-2.3 autolearn=unavailable autolearn_force=no |
Series |
Introduce STM32 Firewall framework
|
|
Commit Message
Gatien Chevallier
Jan. 5, 2024, 1:03 p.m. UTC
Allows tracking dependencies between devices and their access controller. Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> Acked-by: Rob Herring <robh@kernel.org> --- Changes in V9: - Added Rob's review tag Changes in V6: - Renamed access-controller to access-controllers Changes in V5: - Rename feature-domain* to access-control* Patch not present in V1 drivers/of/property.c | 2 ++ 1 file changed, 2 insertions(+)
Comments
On Fri, Jan 5, 2024 at 5:03 AM Gatien Chevallier <gatien.chevallier@foss.st.com> wrote: > > Allows tracking dependencies between devices and their access > controller. > > Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> > Acked-by: Rob Herring <robh@kernel.org> Please cc me on fw_devlink patches. Also, this patch is breaking the norm below. Please send a fix up patch. > --- > Changes in V9: > - Added Rob's review tag > > Changes in V6: > - Renamed access-controller to access-controllers > > Changes in V5: > - Rename feature-domain* to access-control* > > Patch not present in V1 > > drivers/of/property.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/of/property.c b/drivers/of/property.c > index afdaefbd03f6..7f737eac91b2 100644 > --- a/drivers/of/property.c > +++ b/drivers/of/property.c > @@ -1268,6 +1268,7 @@ DEFINE_SIMPLE_PROP(leds, "leds", NULL) > DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) > DEFINE_SIMPLE_PROP(panel, "panel", NULL) > DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells") > +DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells") > DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) > DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") > > @@ -1363,6 +1364,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { > { .parse_prop = parse_regulators, }, > { .parse_prop = parse_gpio, }, > { .parse_prop = parse_gpios, }, > + { .parse_prop = parse_access_controllers, }, All the simple properties are listed before the suffix ones as the suffix checks are more expensive. So, you should have inserted this right before the suffix properties. Also, there's a merge conflict in linux-next. So make sure you take that into account when sending the fix up and picking the order. -Saravana > {} > }; > > -- > 2.35.3 >
Hi Saravana On 4/24/24 07:57, Saravana Kannan wrote: > On Fri, Jan 5, 2024 at 5:03 AM Gatien Chevallier > <gatien.chevallier@foss.st.com> wrote: >> >> Allows tracking dependencies between devices and their access >> controller. >> >> Signed-off-by: Gatien Chevallier <gatien.chevallier@foss.st.com> >> Acked-by: Rob Herring <robh@kernel.org> > > Please cc me on fw_devlink patches. Also, this patch is breaking the > norm below. Please send a fix up patch. > >> --- >> Changes in V9: >> - Added Rob's review tag >> >> Changes in V6: >> - Renamed access-controller to access-controllers >> >> Changes in V5: >> - Rename feature-domain* to access-control* >> >> Patch not present in V1 >> >> drivers/of/property.c | 2 ++ >> 1 file changed, 2 insertions(+) >> >> diff --git a/drivers/of/property.c b/drivers/of/property.c >> index afdaefbd03f6..7f737eac91b2 100644 >> --- a/drivers/of/property.c >> +++ b/drivers/of/property.c >> @@ -1268,6 +1268,7 @@ DEFINE_SIMPLE_PROP(leds, "leds", NULL) >> DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) >> DEFINE_SIMPLE_PROP(panel, "panel", NULL) >> DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells") >> +DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells") >> DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) >> DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") >> >> @@ -1363,6 +1364,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { >> { .parse_prop = parse_regulators, }, >> { .parse_prop = parse_gpio, }, >> { .parse_prop = parse_gpios, }, >> + { .parse_prop = parse_access_controllers, }, > > All the simple properties are listed before the suffix ones as the > suffix checks are more expensive. So, you should have inserted this > right before the suffix properties. Also, there's a merge conflict in > linux-next. So make sure you take that into account when sending the > fix up and picking the order. I'm fixing the stm32-next branch by inserting { .parse_prop = parse_access_controllers, }, just before { .parse_prop = parse_regulators, }, > > -Saravana > >> {} >> }; > >> >> -- >> 2.35.3 >>
diff --git a/drivers/of/property.c b/drivers/of/property.c index afdaefbd03f6..7f737eac91b2 100644 --- a/drivers/of/property.c +++ b/drivers/of/property.c @@ -1268,6 +1268,7 @@ DEFINE_SIMPLE_PROP(leds, "leds", NULL) DEFINE_SIMPLE_PROP(backlight, "backlight", NULL) DEFINE_SIMPLE_PROP(panel, "panel", NULL) DEFINE_SIMPLE_PROP(msi_parent, "msi-parent", "#msi-cells") +DEFINE_SIMPLE_PROP(access_controllers, "access-controllers", "#access-controller-cells") DEFINE_SUFFIX_PROP(regulators, "-supply", NULL) DEFINE_SUFFIX_PROP(gpio, "-gpio", "#gpio-cells") @@ -1363,6 +1364,7 @@ static const struct supplier_bindings of_supplier_bindings[] = { { .parse_prop = parse_regulators, }, { .parse_prop = parse_gpio, }, { .parse_prop = parse_gpios, }, + { .parse_prop = parse_access_controllers, }, {} };