Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2948374imu; Sun, 11 Nov 2018 04:37:21 -0800 (PST) X-Google-Smtp-Source: AJdET5c0IdNBLopQq4/BuIXnbSCWyvXy3904j1CJ0VDB+UcRJJ7q7URx/7L5eQAAphyx4i1U96/F X-Received: by 2002:a62:1552:: with SMTP id 79-v6mr16032322pfv.120.1541939841611; Sun, 11 Nov 2018 04:37:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541939841; cv=none; d=google.com; s=arc-20160816; b=BcSPpBL0Th8ufEsMclLJ2G0z5rgNP13JokwizZImpCB2vEmE11gaHf0Ug1BXtQhs84 GF1ldazz6bRKuQjXQM8t5UrH6Gvamc7UKRt5NJQ/Hg5YjnEJ0j87UU5uXW/YuToH56BW 4hdWwimz9OiCgn2yEFaTqd3B+Umk7zCvLwhoehc3KUuzdByF7VMFbJb/c3QQPoPxqFf1 cJkHHERCQfl3FUd19JzU2iql+vT9eWhRIpl0XQL3Ayc43BWgEsE4ZdO7VCoKFwHnhaAV sewjdbMl8/3NrleoK6J5nvtAX6Q/jy8FS2ubH7HPi+tsNpPhaWSs241+iatKCW9HLGK1 oVDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Ut8EPxz3zhyipE1jFki70hotdHXFXwMs7p+qV8qDuvQ=; b=R/IiTABqbdTOvriB8KaumCrJqmhAVARQyozpeIcR0e/uiepzCLmDC4k7HC6Tk5wVic kugh0KOMNHgQ9JVjlipzJuBZppGpnlhtknmL+fDMpsHgP2X6LOTo8fJQUaxrPhqbli9p MNmhuhznVARDQnLmdIPMd3EzEHcSwR/TruBND6e2BxGoCK1JDdur0JBkZQiEY5le9+4y zX4OctRnpHgl2m41LllYBUx0mogiIAqd2CggIoJdQzeWH+z7FIUUMtOR/SrsAyzjoCKr VbQQdjVMvI8nRjKMCHUKT21RzfqgmJF8TTrOPvkEPUsyi+lUSkmL90hFxTAbe1PWsHi9 0ltw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=QyL9R6OP; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z6si12731983pgl.109.2018.11.11.04.37.06; Sun, 11 Nov 2018 04:37:21 -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=@kernel.org header.s=default header.b=QyL9R6OP; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727965AbeKKWZO (ORCPT + 99 others); Sun, 11 Nov 2018 17:25:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:55596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727510AbeKKWZN (ORCPT ); Sun, 11 Nov 2018 17:25:13 -0500 Received: from archlinux (cpc91196-cmbg18-2-0-cust659.5-4.cable.virginm.net [81.96.234.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AFB8320866; Sun, 11 Nov 2018 12:36:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541939805; bh=TmfgH96Cmj2/bR/zmVykr0fId0Aen5GRUZrKrbENtEs=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=QyL9R6OP0O9luct66PxwZl7Mlanrv73jEIoU3pb8lMvROwf6vu3eWHBV01OmI9ACw 0OWvy2GX7hd09Sdom5jEpelxZEkq5+e48OdAS2XYEMnuJf/VXOxmNYQrLTtCFRyIQg qSF9VYrDZjZgg2lHRovsBv0Ce+B7ciHnx5ykFU1U= Date: Sun, 11 Nov 2018 12:36:40 +0000 From: Jonathan Cameron To: Nishad Kamdar Cc: Lars-Peter Clausen , Michael Hennerich , Hartmut Knaack , Peter Meerwald-Stadler , Greg Kroah-Hartman , linux-iio@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/4] staging: iio: ad7816: Set RD/WR pin and CONVST pin as outputs. Message-ID: <20181111123640.0195c7fd@archlinux> In-Reply-To: References: X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 9 Nov 2018 13:07:18 +0530 Nishad Kamdar wrote: > The RD/WR pin and CONVST pin are logical inputs to the AD78xx > chip as per the datasheet. Hence convert them to outputs. > > Signed-off-by: Nishad Kamdar Hi Nishad, Applied to the togreg branch of iio.git and pushed out as testing for the autobuilders to play with it. This is the sort of patch we might want to think about backporting for stable, but it is sufficiently complex to do that I' think we'll wait for someone to actually request it. Thanks, Jonathan > --- > drivers/staging/iio/adc/ad7816.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/iio/adc/ad7816.c b/drivers/staging/iio/adc/ad7816.c > index 3cda5cd09365..a2fead85cd46 100644 > --- a/drivers/staging/iio/adc/ad7816.c > +++ b/drivers/staging/iio/adc/ad7816.c > @@ -369,14 +369,15 @@ static int ad7816_probe(struct spi_device *spi_dev) > chip->oti_data[i] = 203; > > chip->id = spi_get_device_id(spi_dev)->driver_data; > - chip->rdwr_pin = devm_gpiod_get(&spi_dev->dev, "rdwr", GPIOD_IN); > + chip->rdwr_pin = devm_gpiod_get(&spi_dev->dev, "rdwr", GPIOD_OUT_HIGH); > if (IS_ERR(chip->rdwr_pin)) { > ret = PTR_ERR(chip->rdwr_pin); > dev_err(&spi_dev->dev, "Failed to request rdwr GPIO: %d\n", > ret); > return ret; > } > - chip->convert_pin = devm_gpiod_get(&spi_dev->dev, "convert", GPIOD_IN); > + chip->convert_pin = devm_gpiod_get(&spi_dev->dev, "convert", > + GPIOD_OUT_HIGH); > if (IS_ERR(chip->convert_pin)) { > ret = PTR_ERR(chip->convert_pin); > dev_err(&spi_dev->dev, "Failed to request convert GPIO: %d\n",