Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp2468827rdg; Mon, 16 Oct 2023 05:43:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG51SZk5vHxsP76hICf9nIkYs2jJQYP44mG6MwKIXCk74tJcI0qzW0dMU1DhgzpP/EIJwWQ X-Received: by 2002:a17:902:f381:b0:1c9:dac0:fbc2 with SMTP id f1-20020a170902f38100b001c9dac0fbc2mr8245234ple.13.1697460179775; Mon, 16 Oct 2023 05:42:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697460179; cv=none; d=google.com; s=arc-20160816; b=PjIImDmwXvV4Rw9GsAk5AlNotHb4adQUzOF2ikOCGQINGcvQnvwby5gmgKqKJfpY3b ysES6b+e9V/bTgiiOnvt/+s5J0mfhWqD3YE3ulflfEQHUc6Pgnaw4rFLXrQhPTDh7ann WqafndBJXz9I6OgjG31B/KJRWvMdsrsyjEV2V+/GAOFM2lHY/OhH7LicVOaSAfchvgDE 0SpRNmxpSCsYgjidIwO/rxKC0lupq8aKmQ95R0eEUVNe/IG6LsB7k98g8w14ERAD3Egy iEr2UcEl67hyfKQgoTwwmmOZC7+fLiEqiK/NxVyFBxZZLrNxA0pW3i765HVjyX3117fJ veWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=wqkhDsjTtQKkNWDO7gxhRb4i3CZAE3FaB4VLSTv0KQU=; fh=I4E3B/imz9HJu+PbtL3VrAXTCvw7BTRDQJmMbq1sV6U=; b=HKOHR7JTPdFnCP82s0qOEz+6/3bIyh/BjtGLfsqnwkKMua2DCVVjTo45S2FaCbyPqB 9DCRjjk9gFWnjBoKlCLigytRUnIXQK7IfLT94IxQBTyQXBD3DLgyDeLA/tLy0IN1Qu7m 8NHKx8bjMfs+TL+c1kyzMiTZkVpILxcIq0wSoAN3c3cWi3dVmHTxNFAKCoBA+pNT+44e 6Do12gaGaaS8cXLQFhIL9kMRGHFKZqmIX/pXrkHX8Pf0B/6Z+EwF+35/B/iWyA+AOfvG 70qpbrXXNT6JdjHK3T3gQypDECC2C+Op5m9cSZTVKA8qulhLLK8D2AJwQslSLvOM9SM+ 9bZQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id f7-20020a170902684700b001c342073f76si9916763pln.323.2023.10.16.05.42.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 16 Oct 2023 05:42:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7EA098059179; Mon, 16 Oct 2023 05:42:57 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233477AbjJPMmk (ORCPT + 99 others); Mon, 16 Oct 2023 08:42:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53080 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233424AbjJPMmj (ORCPT ); Mon, 16 Oct 2023 08:42:39 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.7]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7CC8E8; Mon, 16 Oct 2023 05:42:37 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="7079914" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="7079914" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmvoesa101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 05:42:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10863"; a="929336265" X-IronPort-AV: E=Sophos;i="6.03,229,1694761200"; d="scan'208";a="929336265" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga005.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 Oct 2023 05:42:32 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.97-RC2) (envelope-from ) id 1qsMvU-00000005zXU-35Id; Mon, 16 Oct 2023 15:42:28 +0300 Date: Mon, 16 Oct 2023 15:42:28 +0300 From: Andy Shevchenko To: Kartik Cc: thierry.reding@gmail.com, jonathanh@nvidia.com, keescook@chromium.org, akpm@linux-foundation.org, arnd@arndb.de, ulf.hansson@linaro.org, linus.walleij@linaro.org, pshete@nvidia.com, petlozup@nvidia.com, frank.li@vivo.com, robh@kernel.org, stefank@nvidia.com, pdeschrijver@nvidia.com, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH v6 7/8] soc/tegra: fuse: Add ACPI support for Tegra194 and Tegra234 Message-ID: References: <20231016101436.7146-1-kkartik@nvidia.com> <20231016101436.7146-8-kkartik@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231016101436.7146-8-kkartik@nvidia.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 16 Oct 2023 05:42:57 -0700 (PDT) On Mon, Oct 16, 2023 at 03:44:35PM +0530, Kartik wrote: > Add ACPI support for Tegra194 & Tegra243 SoC's. This requires > following modifications to the probe when ACPI boot is used: > - Initialize soc data. > - Add nvmem lookups. > - Register soc device. > - use devm_clk_get_optional() instead of devm_clk_get() to get > fuse->clk, as fuse clocks are not required when using ACPI boot. > > Also, drop '__init' keyword for tegra_soc_device_register() as this is also > used by tegra_fuse_probe() and use dev_err_probe() wherever applicable. ... > +static const struct acpi_device_id __maybe_unused tegra_fuse_acpi_match[] = { Drop __maybe_unused along with ACPI_PTR(), they are more confusing than helpful. > + { "NVDA200F" }, > + { /* sentinel */ } > +}; > +MODULE_DEVICE_TABLE(acpi, tegra_fuse_acpi_match); > + > static struct platform_driver tegra_fuse_driver = { > .driver = { > .name = "tegra-fuse", > .of_match_table = tegra_fuse_match, > + .acpi_match_table = ACPI_PTR(tegra_fuse_acpi_match), > .pm = &tegra_fuse_pm, > .suppress_bind_attrs = true, > }, -- With Best Regards, Andy Shevchenko