Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4262678imu; Mon, 12 Nov 2018 08:14:58 -0800 (PST) X-Google-Smtp-Source: AJdET5fUGujULGaSomfwM11PHCVU1M5rh5NAApjtrtkVxooCToXrhBwGl+RlWr3Sntf/ZfUXMyNg X-Received: by 2002:a62:5504:: with SMTP id j4-v6mr1487892pfb.166.1542039298823; Mon, 12 Nov 2018 08:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542039298; cv=none; d=google.com; s=arc-20160816; b=o0+Gw30VsQ2IGuAe6X823z0XnwPHCTjoj3kGBZiuW+uuObgwH3h4mc4MtROUpqZoPg uPkTq44B/ryP2Tb9vq4Hs+sMcvvNsN1WYgfl5/SnKFTyx2Tg+yXCeLCGiEgjdb0LFM/b mtGbd8aHwKHDKiSVTJVoZeD3XEVt/ZFDn52Aa9jwrMbw25k4b/o3b9e3XhgN2I/xOb0a QyjdDmEIj7d2/rviT4pQELdBJfoby/p+89FjcuH3wY03Or65e4PA5aOHido9IYc7WdeU KJlNQ2DyyB7RiMbbnrMztCOk+9+Ti67JlzapptUOIHnzLBJWzkTEYqhbe02mQsuxpQIc dszQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=NEZfahB7N0Ba9s5LVm2YEJ2DQJNsXJY70tJpylX1CRI=; b=wRgoHSd6ck7SHyJtCEbIGsc9f702xkW/xPHoaHu9GReMPP8vEEr0GLkfTvdETS9fD1 rAjcSDgaH+dQbfiTlD8fyWHgWwi4X36Etg1GGHC8cW6wUnKS/R5V+zRs0z5f5eUV+cXp +gURMvqpsfsJb1orJmT8XUTWhA2Izi3c1Gvg7Lf9goSSNtLs0/BBA/bS9mHjrZyr9ezE rpswa2RUJEvN6fT2JvmpXAkIJy90Kvm0sbWy83RmmTD07l8VySoFDshVyhzJ96rJkKLq lUBkNUmKtjccFICi7eMNsTuiO4OYByjQtKBwdFbAPENxlcGxOOiSMe7C9xkVHkhHYsPB rgzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CObHfrkQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u8-v6si15720210pgj.409.2018.11.12.08.14.43; Mon, 12 Nov 2018 08:14:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=CObHfrkQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1729700AbeKMCGS (ORCPT + 99 others); Mon, 12 Nov 2018 21:06:18 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:39845 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727976AbeKMCGR (ORCPT ); Mon, 12 Nov 2018 21:06:17 -0500 Received: by mail-pf1-f196.google.com with SMTP id n11-v6so4541337pfb.6 for ; Mon, 12 Nov 2018 08:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NEZfahB7N0Ba9s5LVm2YEJ2DQJNsXJY70tJpylX1CRI=; b=CObHfrkQgc9QInVlmV4WaUg07HLLUwKiy7nZkAXxBf20y9sMJscnPMELND6IVKFIOc ke3LK6D20ZbTD6KJwto6xqYn2Sif811VCAYAQrEshZCLHoF53fyLS04oDWqKGycT3DEO Kpy+mEGC5nrinSV/zqtYpxXS55l+8/dKTVeRATo6xphfs2YjCZhdpY1KnvID99T6PoVt thO7c1GmHv1UM7Uunv9/tVsjdtOxyqTjEvYLC58xd6QPTH64jmvh7bpdU2ppPakP1NU7 H3JfTbQZC10Ynd42Q48lyDMIx9Hgu10HwG2jiaGebEpZwbLMJ73/Y5uRcpX/QYqby9IU MVTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=NEZfahB7N0Ba9s5LVm2YEJ2DQJNsXJY70tJpylX1CRI=; b=dcCeJO0Hqc3pKa1+tX/9NPhjJDxeANpAb7Lt5OSH6sqwZ2WzR+iG7iwLON+OdfJAls bkTmkH8JPARIR597RqBEgDlsReEjfiwim7m4TYiEPCTcY0CaKBkaTRBjU3S+p5KPs9mZ cezPH8WgmPFVkL2v91XfyIEKwNpklAkzOf6SdjVMQzN3WCEForqw7SU4z2mYNpGEjZHt 2LV/tWmkEri+wLu7MhGqfIN5daLwxrVF5gUwQ12aL0OMYU2yksjlnBGTIdZmqjcsTDI9 AIK/uRfTQAuLFv21R/TAmQPRiRiG2vhi6vJWoyFQBk3v6j+UcNlQr7aTF/sXA4flI/d1 1L1A== X-Gm-Message-State: AGRZ1gLCeiCQMjQx4orRBHbEeQ5TReuZAunebVkelDsxZgcdf1ybFAMu qlRc3khvN0GK4a7ewjUjS8g= X-Received: by 2002:a63:e247:: with SMTP id y7mr1297887pgj.84.1542039143340; Mon, 12 Nov 2018 08:12:23 -0800 (PST) Received: from nishad ([106.51.27.228]) by smtp.gmail.com with ESMTPSA id z7sm7819138pga.6.2018.11.12.08.12.20 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Nov 2018 08:12:22 -0800 (PST) Date: Mon, 12 Nov 2018 21:42:16 +0530 From: Nishad Kamdar To: Johan Hovold , Vaibhav Hiremath , Alex Elder , Greg Kroah-Hartman Cc: greybus-dev@lists.linaro.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: greybus: arche-apb-ctrl.c: Switch to the gpio descriptor interface Message-ID: <20181112161214.GB5367@nishad> References: <20181111054405.GA32548@nishad> <20181112151739.GI13311@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181112151739.GI13311@localhost> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 12, 2018 at 04:17:39PM +0100, Johan Hovold wrote: > On Sun, Nov 11, 2018 at 11:14:14AM +0530, Nishad Kamdar wrote: > > Use the gpiod interface instead of the deprecated old non-descriptor > > interface. > > > > Signed-off-by: Nishad Kamdar > > --- > > drivers/staging/greybus/arche-apb-ctrl.c | 158 ++++++++++------------- > > 1 file changed, 65 insertions(+), 93 deletions(-) > > > - apb->pwrdn_gpio = of_get_named_gpio(np, "pwr-down-gpios", 0); > > - if (apb->pwrdn_gpio < 0) > > - dev_warn(dev, "failed to get power down gpio\n"); > > + apb->pwrdn = devm_gpiod_get(dev, "gb,pwr-down-gpios", GPIOD_OUT_LOW); > > + if (IF_ERR(apb->pwrdn)) { > > Looks like you didn't even compile test this one. :( > > > + ret = PTR_ERR(apb->pwrdn); > > + dev_warn(dev, "Failed requesting power down GPIO: %d\n", ret); > > + return ret; > > + } > > Johan Sorry about that, I'll check and resend. Thanks for the review. Regards, Nishad