Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp2963855rwb; Mon, 5 Sep 2022 04:31:23 -0700 (PDT) X-Google-Smtp-Source: AA6agR6qkbFtF+l9OGhxKaqxmMoJSaLbpEaFOzYY5xJpGDCIna+/2tiwgPZEfQmUaJi7Eyd+b25Q X-Received: by 2002:a05:6402:350a:b0:44e:9da7:2afb with SMTP id b10-20020a056402350a00b0044e9da72afbmr2069456edd.290.1662377483601; Mon, 05 Sep 2022 04:31:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662377483; cv=none; d=google.com; s=arc-20160816; b=IsYD2QPxjx4dCceZiDKLJiOTagQzwWdCfzM2xyUjKUQMdlWJ6JQhXPhgZqwF125HVe 6wxSTIxe+QELH4CAGCzJo1HacZfZDQ0aND41hh+Hpci4Sq3Quo+SbU+rsEd2BOagw/af zKCZGaOYuoYMM+Pi+ofKJoPZy1iuzXwI0sfyR+i0Cj0zC9V8TGkCmYT/hSGm7lAP5ecX 0A0/FBdI9acI6AZAFzMuBs8MqCSzJ88H9vLJ6yd6ipQIg8yB9a0cNc/4WWrYOF4YkeOW SRZnXGkm+wO3H9Z5c3JPhcIH0YOtYgEBqOCHbNgyxt7JjMFkpDP+3mTK2N3f8SFemjps +rMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZeMo2PWVWCCE4kicxMFOEAyAOyDB4gnn7oyqH8IifhU=; b=Z+5BDF6YdggM4QIMsBA15pR0TqgYIWoIyEqLnt1oEv4RN8xAT8+DqKzUF+vple22gi xD3WRAy55BWUH+YgA+rtWHD2pkBCY8rknjEu9qb5mWRgeCT52+lyf4Yql3Ig/GkyRock 9ambI5+rLfDrwv41nWP3JLOs1PzDEul5EAO4AOQoI3fkQgiDbZH6LNxKO4rBVQHUZ1Ez hZsCADLFtzoI+4cefl1sJdMYoznQlJhHXS5UcgVy4o/T3LDZ/aGec0b3l4nSp2kXbm3Z tnkErGoCGBSPcQV2AaYK3iyDYn3051gu6eQ6OSHVTJjizplv1DRYuBMqLAeYEjrbqk7/ +dFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CTOoiLvw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l18-20020a056402255200b0044816be3ec8si8220043edb.435.2022.09.05.04.30.54; Mon, 05 Sep 2022 04:31:23 -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=@gmail.com header.s=20210112 header.b=CTOoiLvw; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238206AbiIELBW (ORCPT + 99 others); Mon, 5 Sep 2022 07:01:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238194AbiIELA4 (ORCPT ); Mon, 5 Sep 2022 07:00:56 -0400 Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 93CA052FC0; Mon, 5 Sep 2022 04:00:21 -0700 (PDT) Received: by mail-qk1-x72a.google.com with SMTP id f4so6074068qkl.7; Mon, 05 Sep 2022 04:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=ZeMo2PWVWCCE4kicxMFOEAyAOyDB4gnn7oyqH8IifhU=; b=CTOoiLvwwBkvtH32c6w60zEVvHcTnoXO3ACu0Ys4kWjZ2v5rcWsBDH+vdDx4TQZ9hd zoXITcV3yQclTjF5bSmp+qDBSGLQc9kK7p/Q6MVruLaf+yQ2ieawJUD0vtr6jFmlqqb5 VM0HxdCbbCyt9e3B0tD+nb2kHG9B39a4RXdVZ+gBaJ13JI/Bhg4cILs9FZoegyTQ+F+6 8fPJkAuVnPubU2LSPwAtno5IP1SguIVrVU1uTopFif2u8b6jICrnPWEduG2jMRNf+dw3 TOSVD6xw70ivt4BkffpLzGj1KiFTvRTD6M32zkdDHIex4lTV6wIEhedGMFPH+v+dK0yQ 6+JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=ZeMo2PWVWCCE4kicxMFOEAyAOyDB4gnn7oyqH8IifhU=; b=ID92ImmyxY0COELUroDibC5SKWV7+XouiP+dUQ8KZU4XR4iRRmZ5L2mFhBHOrYTBev c+/S8AHasfjjynWxAH+6quE6nKUVk+RMhNcBOKEZ7/hlr9xpzXoNz3wdrpsnIyWKsZ3H aMnDtjcNlYFSKyk1IIAVOn7reJVoaK2qfRHozwoWs5r+lww3Eq9AeLasXd9cphc9A/AB vkfDE9MWlrHfC12CThsgnnMtgwR6PqoYSmhkRPaZ7h9/jVHw84ccBlgmlh3SsVezrJJq fqqNNNRStmWa49v/MUZmfPeuPakS2QrO0D+38W35gguIZPhK6yqvRtd1Z3GVQEhPNuuA MX1w== X-Gm-Message-State: ACgBeo0wQw6Q+I300V/d4+Y5eAH1s6TPLkKdnwspDkpJk/vrBt1JznS+ yutQ5fd/PS2bULzANnZM+DrmEZBWPqXipJpkAcU= X-Received: by 2002:a05:620a:288a:b0:6b8:fcfe:db02 with SMTP id j10-20020a05620a288a00b006b8fcfedb02mr32736370qkp.504.1662375620030; Mon, 05 Sep 2022 04:00:20 -0700 (PDT) MIME-Version: 1.0 References: <20220903-gpiod_get_from_of_node-remove-v1-0-b29adfb27a6c@gmail.com> <20220903-gpiod_get_from_of_node-remove-v1-4-b29adfb27a6c@gmail.com> In-Reply-To: <20220903-gpiod_get_from_of_node-remove-v1-4-b29adfb27a6c@gmail.com> From: Andy Shevchenko Date: Mon, 5 Sep 2022 13:59:44 +0300 Message-ID: Subject: Re: [PATCH v1 04/11] usb: phy: tegra: switch to using devm_gpiod_get() To: Dmitry Torokhov Cc: Thierry Reding , Mark Brown , Matti Vaittinen , Lorenzo Pieralisi , Claudiu Beznea , Liam Girdwood , Wim Van Sebroeck , Greg Kroah-Hartman , Guenter Roeck , Miquel Raynal , Linus Walleij , Felipe Balbi , Alexandre Belloni , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , Vignesh Raghavendra , Daniel Vetter , Thomas Petazzoni , Alexandre Torgue , Marc Zyngier , Richard Weinberger , David Airlie , Nicolas Ferre , Alyssa Rosenzweig , Bartosz Golaszewski , Jonathan Hunter , Rob Herring , Maxime Coquelin , Bjorn Helgaas , =?UTF-8?Q?Pali_Roh=C3=A1r?= , LINUXWATCHDOG , USB , "open list:GPIO SUBSYSTEM" , linux-pci , linux-tegra , "open list:MEMORY TECHNOLOGY..." , Linux Kernel Mailing List , dri-devel , linux-stm32@st-md-mailman.stormreply.com, linux-arm Mailing List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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, Sep 5, 2022 at 9:32 AM Dmitry Torokhov wrote: > > I would like to stop exporting OF-specific devm_gpiod_get_from_of_node() > so that gpiolib can be cleaned a bit, so let's switch to the generic > device property API. > > I believe that the only reason the driver, instead of the standard > devm_gpiod_get(), used devm_gpiod_get_from_of_node() is because it > wanted to set up a pretty consumer name for the GPIO, and we now have > a special API for that. ... > - gpiod = devm_gpiod_get_from_of_node(&pdev->dev, np, > - "nvidia,phy-reset-gpio", > - 0, GPIOD_OUT_HIGH, > - "ulpi_phy_reset_b"); > + gpiod = devm_gpiod_get(&pdev->dev, "nvidia,phy-reset", > + GPIOD_OUT_HIGH); > err = PTR_ERR_OR_ZERO(gpiod); What does _OR_ZERO mean now? > if (err) { > dev_err(&pdev->dev, > "Request failed for reset GPIO: %d\n", err); > return err; > } -- With Best Regards, Andy Shevchenko