Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2453337rdb; Wed, 4 Oct 2023 01:18:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHvh57XX0tigpduUip0AoDTTLhWZQh/1s7M7zXBseKcLgRCv3cCNh90vTDNfv64ed1dmYI X-Received: by 2002:a17:902:c948:b0:1c5:fa71:22fb with SMTP id i8-20020a170902c94800b001c5fa7122fbmr2033165pla.65.1696407498200; Wed, 04 Oct 2023 01:18:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696407498; cv=none; d=google.com; s=arc-20160816; b=OhzkwMLaFvXfLgwPDtnwu5tvHB4YyXTE9m3FOc6AIDuNBv5PUL0vF+zVC2eiEtln+T zIeFA2mucLVn7NCxbdaPqsMAHlOFIaUgJRf1gT5o4Y9y7N0+BbcgBW3a3WXMaIQvjtRW BA4ZBo3HU5+NhEMG5iwS309VnMC4AOaOhWep2ZsION2hzpjAv8zcc6CPDhpgf3+ZuRTi JO6/Lgvft32C/L/V7WPgg7guZPP3gUcqIxBTBpzy6ktZwlxDDht5Rhym15IYTPNnJifz rC2QfDF3bdMM23NyI5/q4D7rWejzsYjRzsND66L+DzFnCqQa+PnRWzF8EvRrvHivHYos vZmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:cc:to:content-language:subject:user-agent :mime-version:date:message-id:dkim-signature; bh=4zl+hiPO64BcDxEXlKFD+EO+Z1uEMh4qBfDsZFiT7yk=; fh=rqgC35ipwg31Y/rjYkXO7IHxVFzojSk3dyN5MMku5Vg=; b=Lz1g0GR29FHLhL2Pl3YJHKj1IPK20WsHsWupQE+DapfVYpj7M3E4JX++Af5V3enP8l ahtgeC/pFocwRCetskDZyI4S4YeYwSnNWKIPY97Su1+R0oMC9sebLp5D9WfBvB5vQaK0 NaIn9AKy/zKvBYjPXZjYQNwqnhH2GCFgvyKU8JlnlQwWNLjyrN7doCRoi3y4ekBO1KPK CmOmabN6SV90L7RiEJ92M3lj/zo3ptXUi0gEwpkq/2rE/srF5uEMEYrrRIkCO4ut7KSN 9N2ewpNSYvXx7PT8BhOf2Hf21QiLFCjmUCYSSn9E3Unxc3+FZKHMOPtNBv19Lv0liKXO U9TQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h+1ABKoh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id f1-20020a170902ce8100b001bf1973eafcsi3607947plg.571.2023.10.04.01.18.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:18:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=h+1ABKoh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 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 lipwig.vger.email (Postfix) with ESMTP id 18C4181DE3B4; Wed, 4 Oct 2023 01:18:16 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239265AbjJDISL (ORCPT + 99 others); Wed, 4 Oct 2023 04:18:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjJDISK (ORCPT ); Wed, 4 Oct 2023 04:18:10 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 21619A6; Wed, 4 Oct 2023 01:18:07 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D8864C433C7; Wed, 4 Oct 2023 08:18:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696407486; bh=vQFPg6PA6WrMnXAY1PY7xlQzGKPRe88hSEWvcIqGGLE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=h+1ABKoh9sVQArHfErOER+r1zQroHl5optg7U+U/veYLL913BqEdKUPuk1K98ULmR Y3OWeV2g3kCfwrdFXzZ/i6zruJLfc2H7S3Q4m8oC7pqym5Ot3sqhI96P5ICGsq/HDv jYHBof86l57qaLWNPDia4Ub2MbOpPsZjZQPO4367US1/ArMRr4OXmEZBFZOq5Yr/pT NXxZjiOOfHekOeVXT6H5OCR+hF8nI64rYI1IwoiMA/3I1bfjvfiVN/kPJCUJQvXGFA r5w9+1otsSGFZMK+bnvFA3kVK9fgGwJKG9It+VQ4coRED44w7iYkQ4CK7mQzng9Y3O ZOyWiUYxdH4iw== Message-ID: <76d1e643-9b81-4c23-8f46-73fe59913600@kernel.org> Date: Wed, 4 Oct 2023 10:18:01 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 1/1] pinctrl: denverton: Enable platform device in the absence of ACPI enumeration Content-Language: en-US To: Andy Shevchenko , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Mika Westerberg , Andy Shevchenko , Linus Walleij , Takashi Iwai References: <20230926190818.931951-1-andriy.shevchenko@linux.intel.com> From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFM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Ta1v3tem/ JoFzZ4B0p27K+qQCF2R96hVvuEyjzBmdq2esyE6zIqftdo4MOJho8uctOiWbwNNq2U9pPWmu 4vXVFBYIGmpyNPYzRm0QPwARAQABwsF8BBgBCgAmAhsMFiEEm9B+DgxR+NWWd7dUG5NDfTtB YpsFAmA872oFCRRflLYACgkQG5NDfTtBYpvScw/9GrqBrVLuJoJ52qBBKUBDo4E+5fU1bjt0 Gv0nh/hNJuecuRY6aemU6HOPNc2t8QHMSvwbSF+Vp9ZkOvrM36yUOufctoqON+wXrliEY0J4 ksR89ZILRRAold9Mh0YDqEJc1HmuxYLJ7lnbLYH1oui8bLbMBM8S2Uo9RKqV2GROLi44enVt vdrDvo+CxKj2K+d4cleCNiz5qbTxPUW/cgkwG0lJc4I4sso7l4XMDKn95c7JtNsuzqKvhEVS oic5by3fbUnuI0cemeizF4QdtX2uQxrP7RwHFBd+YUia7zCcz0//rv6FZmAxWZGy5arNl6Vm lQqNo7/Poh8WWfRS+xegBxc6hBXahpyUKphAKYkah+m+I0QToCfnGKnPqyYIMDEHCS/RfqA5 t8F+O56+oyLBAeWX7XcmyM6TGeVfb+OZVMJnZzK0s2VYAuI0Rl87FBFYgULdgqKV7R7WHzwD uZwJCLykjad45hsWcOGk3OcaAGQS6NDlfhM6O9aYNwGL6tGt/6BkRikNOs7VDEa4/HlbaSJo 7FgndGw1kWmkeL6oQh7wBvYll2buKod4qYntmNKEicoHGU+x91Gcan8mCoqhJkbqrL7+nXG2 5Q/GS5M9RFWS+nYyJh+c3OcfKqVcZQNANItt7+ULzdNJuhvTRRdC3g9hmCEuNSr+CLMdnRBY fv0= In-Reply-To: <20230926190818.931951-1-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:18:16 -0700 (PDT) On 26/09/2023 21:08, Andy Shevchenko wrote: > This is to cater the need for non-ACPI system whereby > a platform device has to be created in order to bind > with the Denverton pinctrl platform driver. > > Signed-off-by: Andy Shevchenko > --- > drivers/pinctrl/intel/pinctrl-denverton.c | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/drivers/pinctrl/intel/pinctrl-denverton.c b/drivers/pinctrl/intel/pinctrl-denverton.c > index 0c4694cfa594..a1a7242e0451 100644 > --- a/drivers/pinctrl/intel/pinctrl-denverton.c > +++ b/drivers/pinctrl/intel/pinctrl-denverton.c > @@ -257,6 +257,11 @@ static const struct acpi_device_id dnv_pinctrl_acpi_match[] = { > }; > MODULE_DEVICE_TABLE(acpi, dnv_pinctrl_acpi_match); > > +static const struct platform_device_id dnv_pinctrl_platform_ids[] = { > + { "denverton-pinctrl", (kernel_ulong_t)&dnv_soc_data }, > + { } > +}; > + > static struct platform_driver dnv_pinctrl_driver = { > .probe = intel_pinctrl_probe_by_hid, > .driver = { > @@ -264,6 +269,7 @@ static struct platform_driver dnv_pinctrl_driver = { > .acpi_match_table = dnv_pinctrl_acpi_match, > .pm = &dnv_pinctrl_pm_ops, > }, > + .id_table = dnv_pinctrl_platform_ids, > }; > > static int __init dnv_pinctrl_init(void) > @@ -281,4 +287,5 @@ module_exit(dnv_pinctrl_exit); > MODULE_AUTHOR("Mika Westerberg "); > MODULE_DESCRIPTION("Intel Denverton SoC pinctrl/GPIO driver"); > MODULE_LICENSE("GPL v2"); > +MODULE_ALIAS("platform:denverton-pinctrl"); Why do you need the alias? It's the same as ID table. You most likely miss MODULE_DEVICE_TABLE() or your table is just wrong. Best regards, Krzysztof