Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5737754rwd; Mon, 5 Jun 2023 07:58:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Samhk4yNMjVjCRTQ7olEaofAuHK92CwBou3fGeBV3k68n66JNOohTHCzIXDSfWfoV6eUh X-Received: by 2002:a05:6a00:80a:b0:64b:20cd:6d52 with SMTP id m10-20020a056a00080a00b0064b20cd6d52mr14818979pfk.14.1685977113094; Mon, 05 Jun 2023 07:58:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685977113; cv=none; d=google.com; s=arc-20160816; b=Saeqss2uKqeGxCDBv+DzbPaxW9DudpZylnx10tYeoyfKu5r1ZDbcldHJKNNU+Z7dW3 4GXdVHyKp1PtzdoaoVoc/9OyPqGH3ihXISukgIhpaFoBx8vIXLaC3kIhHzgdGK/YudQv NvL3h/aB0mpHYZ+PqiDsvol2/BsOrVevpDpe2FN4df9JHcXzvp1GVKqBudSvtEI+/des UIhV27aGdSF/01xX4TCQiDXhxha6FjrSpSID3hA70MB2QemzcI0+Iu8nrlGEQABValUQ QQfRpAq/QekqSeVEmVWnPOj/hOyXXm/zhsdBD+3MzsnnlRIH8CD6azGS9ngMcgDXJcvT lnIA== 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=61XzS2Z+B6ENO0ZDHhjW5f6afljWvxivDrR1n6HDxUM=; b=AkJhYZBZgZqVT6z60DMY2sf7liJUa75h/N3F/qhtMnexcClst5HaX98bCJEx6g22g5 EWsjBI9rfR+KKvXjhxs0yNOctCpVOS7lm5QmmBI2mOI9o+uVfUtLIhrZqRQGmG3cBoXN 7DsXKlWzhcgmbnbin9iKa9gPEOVBqvnQ4qyHWRGvBUqenbRHlRc12PDcoItCr/Sw8cG5 yzLQBBr5gC09F5OWJQBU75ZIZ+kyR8SrCXzCYFsg/3Yz+315mQr+7BCDv1Xgzj/mg5sv SyDUYxZlIeAtkryxtadAMoM77Qb4rT3YoD32nDNY6667h0sblDfHVtG23xoDRP/t29qX nTHg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=IqwsmKCr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g30-20020aa79dde000000b00652a89f824fsi5376822pfq.245.2023.06.05.07.58.18; Mon, 05 Jun 2023 07:58:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20221208.gappssmtp.com header.s=20221208 header.b=IqwsmKCr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233137AbjFEOb3 (ORCPT + 99 others); Mon, 5 Jun 2023 10:31:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53630 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233448AbjFEOb0 (ORCPT ); Mon, 5 Jun 2023 10:31:26 -0400 Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 54F3AE6 for ; Mon, 5 Jun 2023 07:31:25 -0700 (PDT) Received: by mail-vs1-xe2d.google.com with SMTP id ada2fe7eead31-43b4c75b6bbso182043137.2 for ; Mon, 05 Jun 2023 07:31:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20221208.gappssmtp.com; s=20221208; t=1685975484; x=1688567484; 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=61XzS2Z+B6ENO0ZDHhjW5f6afljWvxivDrR1n6HDxUM=; b=IqwsmKCrL2ASNsVjBaf7EItte5p++h7NI2YAq10FulCDpBMBEsAfUcxYxs3knGwx6e QqEatCmjiKhwewMZHZx5wBCN3TV5sGLJImqxE1wlZPHW1lAAmNsAk4I7oIxZD/t7VSs1 DlW4px20R1doRK7/jHZTNqLps46YHRryjW7RyK0MoP+ndq2wXpeBXBNfDGINoQR25fC/ haoAhhVX1TQFIP2++I1wve/xgxUOf5RwOt4S0qRXPCSu13fQ0NUIbOGdXBpGFlgvechH OatIld86EYgIPwp2BfpBxhTWeuGmP+njENYVMIyYEJ3s3MuwjzEczevKdT5cUmtDAPnc SO3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685975484; x=1688567484; 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=61XzS2Z+B6ENO0ZDHhjW5f6afljWvxivDrR1n6HDxUM=; b=lIFyT6VYdNgkQUEo7RXuG8SuoVdZcQHdUM0cUxQWVE4/mMGKaD1Zah49f77qGeU6xZ HjwFHHdm8upgZNokoySKKN5Uksy6mOzjkXpDCMmBtP46Tzwf4zh0BU78Ha5EBsNQvXsM QMkcS3gAu0ySgs1InqF+usVUC1Gidh2xM0Dyf8nJWPpfBtUU8t82n5ZDmrI0R5z888M4 ql2kjnbLu8eZq/pVkit2BIjbEQlwZN7da9K3zLiQLC2CU9L2oKf9D5PvDctv7xK8e5KF 9w6Hgc/RdPglPh1aOFTeNM7t5JPyYXo+opSf/MrB9Btg/JOSmSDuU75kP96hL9ZJNhIm FsAw== X-Gm-Message-State: AC+VfDzB/mK5nIFn8+3vlSq1dh0qh+zR9M1i1D3sKZhw3HZaPCQwos8F q8BWChh3lk70Xh45Qt0DsX03tNBQNRoWryUyjwa04w== X-Received: by 2002:a67:fb9a:0:b0:434:f25c:9a17 with SMTP id n26-20020a67fb9a000000b00434f25c9a17mr57432vsr.17.1685975484459; Mon, 05 Jun 2023 07:31:24 -0700 (PDT) MIME-Version: 1.0 References: <20230605110200.938902-1-arnd@kernel.org> In-Reply-To: <20230605110200.938902-1-arnd@kernel.org> From: Bartosz Golaszewski Date: Mon, 5 Jun 2023 16:31:13 +0200 Message-ID: Subject: Re: [PATCH] gpio: delay: add OF_GPIO dependency To: Arnd Bergmann Cc: Linus Walleij , Alexander Stein , Arnd Bergmann , Andy Shevchenko , William Breathitt Gray , Pandith N , Yinbo Zhu , Niklas Schnelle , =?UTF-8?B?TnVubyBTw6E=?= , Davide Ciminaghi , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 5, 2023 at 1:02=E2=80=AFPM Arnd Bergmann wrot= e: > > From: Arnd Bergmann > > The new driver fails to build when OF_GPIO is disabled: > > drivers/gpio/gpio-delay.c: In function 'gpio_delay_of_xlate': > drivers/gpio/gpio-delay.c:79:39: error: 'struct gpio_chip' has no member = named 'of_gpio_n_cells' > > Fixes: cf5dec80c4e23 ("gpio: Add gpio delay driver") > Signed-off-by: Arnd Bergmann > --- > drivers/gpio/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig > index a1dac1345f60f..006abaedcae82 100644 > --- a/drivers/gpio/Kconfig > +++ b/drivers/gpio/Kconfig > @@ -1735,6 +1735,7 @@ config GPIO_AGGREGATOR > > config GPIO_DELAY > tristate "GPIO delay" > + depends on OF_GPIO > help > Say yes here to enable the GPIO delay, which provides a way to > configure platform specific delays for GPIO ramp-up or ramp-dow= n > -- > 2.39.2 > Thanks, Alexander beat you to it. Bart