Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp962027rdb; Sun, 1 Oct 2023 13:07:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGcki3hoYmFlTncbR6+S29JJoEzaasR9s5byb9Zzc6f7j89e1P2BDJzhcVyaB+sn8cvZIaE X-Received: by 2002:a05:6a20:1442:b0:15e:f2a1:dae with SMTP id a2-20020a056a20144200b0015ef2a10daemr13889150pzi.27.1696190826279; Sun, 01 Oct 2023 13:07:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696190826; cv=none; d=google.com; s=arc-20160816; b=K64xDs1kZS6ywluoFkd2rAG21OqSLZr+1Z4+C2VHtkXSwXhM7cIcz2u/rI/5i+ao2x Xek7/w9jKkKga+wLiuAZRb+rcCq1qOhLhhdqTRHP4XhrX5E0JZUXcY9E2sEU3DjWjODh y8kiFqM6PXNPqqwLvxY7tPzmPKV3nkDV6xcb85Pp+lfqhv2ouiOn146nf+l9XagsfQg5 GBRWoHCN3sGU3vl3DqW2UrvSREpSruQe2TrVQtnTdSuTmM7bJonCiqtnh8bI1dvRlgjT imJ6ZpCPCk8JIErgXjTo8m5dVz+PzvpTIWr/8zu4LIqvRKKDhfReaI9zifssX6P+znBj 3bKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=H7NM/u8C5++r3Xu6S7NuTAOJjvs6pM7LKKNv5w0BhLA=; fh=8cwGh3PX0tKRS/k+k9rLojZhhupzfpttKpOjs3mxuRw=; b=i85gmhBeQYigHG2LJH9NpnRwdEJxfR25kbQkRQF8J0N+MJxX2qbu8PURRBfG8676y5 hDCEYiKQUWBx6nSqpj3VIIY3edIOJHGCvXJEKGYxuRrOGpbOKmjjZCpkDvaFvAVXtEYM WiIv1Lx+S1IQqNKbKVr8iWM1oWwVKaXLPrRCnkRqG3qY9mNpDRMzRJbmLOAg/SRN/Dj5 dvhJ5a9UDg4zw4jT+lmvM27SwOfNPM4F/1Q5D55+NwLhqkztfgFfeHAbSj0b0t5FUmyw tAlWRgBQcmUgGmGY2ZeUXNMoKWqNKHCXYlcPDGdAD+WWQCiuNtIGtGbKsWJfjSc/c4sj Omfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Y/yo2sR2"; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bk13-20020a056a02028d00b00584ac83e116si15359574pgb.321.2023.10.01.13.07.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Oct 2023 13:07:06 -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; dkim=pass header.i=@gmail.com header.s=20230601 header.b="Y/yo2sR2"; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 4C3958092490; Sun, 1 Oct 2023 07:41:44 -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 S235113AbjJAOlO (ORCPT + 99 others); Sun, 1 Oct 2023 10:41:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235093AbjJAOlN (ORCPT ); Sun, 1 Oct 2023 10:41:13 -0400 Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 074CED8; Sun, 1 Oct 2023 07:41:11 -0700 (PDT) Received: by mail-oo1-xc2d.google.com with SMTP id 006d021491bc7-57b9cb05fa3so1228489eaf.1; Sun, 01 Oct 2023 07:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696171270; x=1696776070; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=H7NM/u8C5++r3Xu6S7NuTAOJjvs6pM7LKKNv5w0BhLA=; b=Y/yo2sR2TTsiH8vXxFqL17sXQup7mYjUjNxCQ9zxi+e0tKj9VHfs1GPIFG9cXZToxW NAnQJN4K9CXRET1g7z7ji9QhacETcf2tLwWWxvXAkKOCn/xzwy3PeaUbC4rhS/KD5jOA XzsiMsIoNSYQI72peAwX09iLoVzn8MOVds8/dicTduUV/02UD2bpVWPU0TAlEI1tgkrw cyokCekMP296cd5yXAAGKO2895d34yfrB4SbPtLQ4/KaENQyvo7A7dBS3+7KW+qHqkTG UU6KKsbjd/bIquiCRrGJZaEsLz2GtDtXGPLWvoB4YKlLNlI4Py59KWNWlpVmnARVFdl5 EZ7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696171270; x=1696776070; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=H7NM/u8C5++r3Xu6S7NuTAOJjvs6pM7LKKNv5w0BhLA=; b=mvjEeNJ0tU7e+HezWyECfHj6/0IiIq5pwUS3yZeJrn9ljNZcpPOJzJlzXQ0gxudwBI 90UgzxN23gE0M7tVANaAH3gPpNEJ6XbgNNzs+x3ZMb+Fm3fh/jniwE/cx/rplusXWRW8 1jpPXJg9CEB+0K/MZk3ciWMDIAbbUuml+ErPtCJNaxhux2ziGu+gLtfeyg4d83O4MDhl 74PhAgeQlzJvadu4d4P3nLzu4f6wxL+/Kke3KBZp5vss2VQqfVLk5bdB6UbLUPEg38RE h0HpVz7yv+u9Ur7ieEu+X1fmCjoEQyj37c/aacEf1k6h3VBX06T+W5kRlEOFWdquvyql HQPg== X-Gm-Message-State: AOJu0YzbSuzNya5TITePg0IAkMy9/khhy12D/TaptlwJQr6diYP4DXX0 hwdFmFsgcZLX7H3/M9T9UnqofCSMNZxdhPdvteFRr1DaM+o3Bg== X-Received: by 2002:a05:6820:127:b0:57e:ac1:6442 with SMTP id i7-20020a056820012700b0057e0ac16442mr5462481ood.4.1696171270179; Sun, 01 Oct 2023 07:41:10 -0700 (PDT) MIME-Version: 1.0 References: <20231001-pxa-gpio-v4-0-0f3b975e6ed5@skole.hr> <20231001-pxa-gpio-v4-4-0f3b975e6ed5@skole.hr> In-Reply-To: <20231001-pxa-gpio-v4-4-0f3b975e6ed5@skole.hr> From: Andy Shevchenko Date: Sun, 1 Oct 2023 17:40:34 +0300 Message-ID: Subject: Re: [PATCH RFC v4 4/6] ARM: pxa: Convert reset driver to GPIO descriptors To: =?UTF-8?Q?Duje_Mihanovi=C4=87?= Cc: Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King , Alan Stern , Greg Kroah-Hartman , Linus Walleij , Bartosz Golaszewski , Andy Shevchenko , Dmitry Torokhov , Mark Brown , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-gpio@vger.kernel.org, linux-input@vger.kernel.org, linux-spi@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,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]); Sun, 01 Oct 2023 07:41:44 -0700 (PDT) On Sun, Oct 1, 2023 at 5:13=E2=80=AFPM Duje Mihanovi=C4=87 wrote: > > The PXA reset driver still uses the legacy GPIO interface for > configuring and asserting the reset pin. > > Convert it to use the GPIO descriptor interface. > Acked-by: Linus Walleij I dunno how. ... > + reset_gpio =3D gpiod_get(NULL, "reset generator", GPIOD_ASIS); > + if (IS_ERR(reset_gpio)) { > + pr_err("Can't request reset_gpio: %pe\n", reset_gpio); > + return PTR_ERR(reset_gpio); > } Here you asked for the GPIO named as "reset generator-gpio(s)" (The "(s)" part is for new bindings), but you must not use spaces in the GPIO names. Moreover the string literal there is for labeling, and not for matching. ... > +GPIO_LOOKUP_SINGLE(spitz_reset_gpio_table, NULL, "pxa-gpio", And here should be gpios. That's what you have to request, but because of the global (device-less) nature of this, you have to be very careful to avoid any clashes. > + SPITZ_GPIO_ON_RESET, "reset generator", GPIO_ACTIVE_HIGH)= ; ... TBH, I don't know how it is supposed to work with your current code and if Linus really was okay with this. --=20 With Best Regards, Andy Shevchenko