Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1256395imm; Tue, 2 Oct 2018 05:31:22 -0700 (PDT) X-Google-Smtp-Source: ACcGV60HdHp4CauljYJcp1YKWPk0OGR3cP2nsHGkJ+TGht/GK8bS/3sYSHg1pqwTGbiXVfmUUBQE X-Received: by 2002:a62:b604:: with SMTP id j4-v6mr16141121pff.199.1538483482428; Tue, 02 Oct 2018 05:31:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538483482; cv=none; d=google.com; s=arc-20160816; b=ZHQg/mZrs4tGspHrs8a3dpnenBAzRjw3+xuRdE2wbol+rqnCsx7Mnz6U+JDDSF07+M ViopS1uAOmE1fFawTbkLMUaQrhOT1tY49MGYT+iRMz18ueMvl+6gZlxX9VzVTsbEOo4b mGdht2kM/+rGhFSVlE42Du1SItujEaBNSj5jHgqI7tTcHdUlOkQlLOk9HjWI6DxjrYxv AIW2s3HxeK5eGbZ9cD0/gW7UL3gpxp3FosPaqNSSibLgM33ZMj8QiEi+5lGH1OjAqCNI TpGHrW67Y2s5mK0W9J72stA/0YNPSywKKhXd9NcfeadXPzlQssnT+J24GQT3x9YZ0vrZ BQmw== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=H95Pb1Hz9HzLvQTYVl5lTPH5IqTiPy/oYs6+8tz6ruc=; b=aezlqQf+grdLQlSuCdjbkoorTct7Qo8yqJonxiC9X+QaxYf5+zXG+M2T/QfbUczQBq 3kInXbZxMNJq8auSyGGNYSGuO5/dwUOoEs6e/lZskeBv5uHMdWAR2A4Z1/5nvzJKNEQD aZCcQ/QZbo9XdqRsZtf6TtTA5QhSR2XmIWXTjQu+AvWL1MgT3zRYqaAw2qRuuBzM1CqV K5LrF6ZtG6ErSxwj+GqyTJSTdVKtMv8qXABPjl+LVH5qrwm7jElgLM/PmwSlD7VcIuf1 CQNuaac6pCNWdu4+cmyAudt3+y/vV/H334meAXDCjaweAo+PkYRPkgEgKBl6sGHfNIlb 20iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=GxCTDYGA; 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 v17-v6si5669993pgn.108.2018.10.02.05.31.07; Tue, 02 Oct 2018 05:31:22 -0700 (PDT) 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=GxCTDYGA; 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 S1727759AbeJBTMz (ORCPT + 99 others); Tue, 2 Oct 2018 15:12:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:54780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726625AbeJBTMy (ORCPT ); Tue, 2 Oct 2018 15:12:54 -0400 Received: from [192.168.1.75] (cpe-24-28-70-126.austin.res.rr.com [24.28.70.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 556052064E; Tue, 2 Oct 2018 12:29:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1538483389; bh=N9Xrqsw3X3prHIshh6QkFT/NteYWrhGGNo2C5IbjI6M=; h=Subject:To:References:From:Date:In-Reply-To:From; b=GxCTDYGAKGb+1FtvFECH8pXvN9FyLjTcxoB8BVNC35uIoz9NfK1HZtngC/25yppBT 3NB7l/Z7D+XlOLA6F9raJKJapiv2+Ow0P36Fyoqb2yZZKl4yV6Hk8BJ2FPENobTWry MUKBbCuxEYxCRaoscS/gMMIXyM8nH6Dm9cb2wPxA= Subject: Re: [PATCH v3 3/3] gpiolib: Show correct direction from the beginning To: Ricardo Ribalda Delgado , Linus Walleij , swboyd@chromium.org, linux-gpio@vger.kernel.org, LKML , Jeffrey Hugo References: <20181002082731.20141-1-ricardo.ribalda@gmail.com> <20181002082731.20141-3-ricardo.ribalda@gmail.com> From: Timur Tabi Message-ID: Date: Tue, 2 Oct 2018 07:29:48 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20181002082731.20141-3-ricardo.ribalda@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/2/18 3:27 AM, Ricardo Ribalda Delgado wrote: > + /* REVISIT: most hardware initializes GPIOs as inputs (often > + * with pullups enabled) so power usage is minimized. Linux > + * code should set the gpio direction first thing; but until > + * it does, and in case chip->get_direction is not set, we may > + * expose the wrong direction in sysfs. > + */ I don't think this comment applies any more. Also, please don't use timur@codeaurora.org any more. That address is no longer valid. Use timur@kernel.org instead.