Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8B67EC6FD1F for ; Wed, 3 Apr 2024 06:34:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A98E2881D5; Wed, 3 Apr 2024 08:34:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="m7JjJZ+w"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D2359881D7; Wed, 3 Apr 2024 08:34:36 +0200 (CEST) Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id A720C881AA for ; Wed, 3 Apr 2024 08:34:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=n-francis@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4336YUNw061437; Wed, 3 Apr 2024 01:34:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712126070; bh=PDKVlY0i2E6LiBhZbIFn8ZjddkqXHokHWBZplHSMQRs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=m7JjJZ+wQBaNXbD9zQzUNB8db6bHQsTgDAnENzHn51ZYL8nNLg88AD59XkRZC7DMp RGZUHAqPHL4j2a4IogRxFJTMgxDL5w1fu5eBwSZ+vu/pSn5ETS11N+4BbUkEfI9wmV Rf9cdW4dRSGTNcT+/i7tBgI0L41vm37nuebM9SD8= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4336YUO0039882 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 3 Apr 2024 01:34:30 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 3 Apr 2024 01:34:30 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 3 Apr 2024 01:34:30 -0500 Received: from [172.24.227.36] (a0497641-hp-z2-tower-g9-workstation-desktop-pc.dhcp.ti.com [172.24.227.36]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4336YRnu040576; Wed, 3 Apr 2024 01:34:28 -0500 Message-ID: Date: Wed, 3 Apr 2024 12:04:27 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 1/2] firmware: ti_sci: Bind sysreset driver when enabled To: Andrew Davis , Vignesh Raghavendra , Nishanth Menon , Simon Glass , Tom Rini CC: References: <20240402160908.508974-1-afd@ti.com> <20240402160908.508974-2-afd@ti.com> Content-Language: en-US From: Neha Malcom Francis In-Reply-To: <20240402160908.508974-2-afd@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Hi Andrew On 02/04/24 21:39, Andrew Davis wrote: > The sysreset TI-SCI API is available with TI-SCI always, there is no need > for a DT node to describe the availability of this. If the sysreset driver > is available then bind it during ti-sci probe. > > Remove the unneeded device tree matching. > > Signed-off-by: Andrew Davis > --- > drivers/firmware/ti_sci.c | 7 +++++++ > drivers/sysreset/sysreset-ti-sci.c | 6 ------ > 2 files changed, 7 insertions(+), 6 deletions(-) > > diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c > index ee092185588..6c581b9df9c 100644 > --- a/drivers/firmware/ti_sci.c > +++ b/drivers/firmware/ti_sci.c > @@ -16,6 +16,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -2840,6 +2841,12 @@ static int ti_sci_probe(struct udevice *dev) > > INIT_LIST_HEAD(&info->dev_list); > > + if (IS_ENABLED(CONFIG_SYSRESET_TI_SCI)) { > + ret = device_bind_driver(dev, "ti-sci-sysreset", "sysreset", NULL); > + if (ret) > + dev_warn(dev, "cannot bind SYSRESET (ret = %d)\n", ret); > + } > + > return 0; > } > > diff --git a/drivers/sysreset/sysreset-ti-sci.c b/drivers/sysreset/sysreset-ti-sci.c > index 5fc05c46cb0..0de132633a8 100644 > --- a/drivers/sysreset/sysreset-ti-sci.c > +++ b/drivers/sysreset/sysreset-ti-sci.c > @@ -60,15 +60,9 @@ static struct sysreset_ops ti_sci_sysreset_ops = { > .request = ti_sci_sysreset_request, > }; > > -static const struct udevice_id ti_sci_sysreset_of_match[] = { > - { .compatible = "ti,sci-sysreset", }, > - { /* sentinel */ }, > -}; > - > U_BOOT_DRIVER(ti_sci_sysreset) = { > .name = "ti-sci-sysreset", > .id = UCLASS_SYSRESET, > - .of_match = ti_sci_sysreset_of_match, > .probe = ti_sci_sysreset_probe, > .priv_auto = sizeof(struct ti_sci_sysreset_data), > .ops = &ti_sci_sysreset_ops, Reviewed-by: Neha Malcom Francis -- Thanking You Neha Malcom Francis