Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp10767imm; Thu, 4 Oct 2018 15:27:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV6011X/2JNIKuqZdkRVOlayWv+B1KlDNn1MuVov1uMSISIOeyn8vKhk2TgCyOTIkFczEGAcp X-Received: by 2002:a62:1316:: with SMTP id b22-v6mr8844525pfj.37.1538692024601; Thu, 04 Oct 2018 15:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538692024; cv=none; d=google.com; s=arc-20160816; b=ozPuoqsmxTMsxxKWtQt/ha+LDtseqtSYp7V6xjg5SgM0F7p1yQsChcsbhJhpjfUTcO C57WeLnA2mJAbXovYihH16YYm1JJi0g7Bc5qxjXCnGmUVPiNM4Ydt8zBOgMXVx23fOMt ANQIs5QFdfbUvFzLkxsyY1T8HH2gwrZiJe0kq/VtYeyabtyo6mbLKyQlJoSOYNv8EabA GJEAJK/2eqJKCIs5kNSZW4ovQJLe71D5MIV/d+Dv9TR7+25zF65CV9taGHfa0NvQLoVY sxLjM+7dn5QfXawSmG2XIf/96R1505qQ5XSb6K3mlVFS5RUlObRFtduX5McieqvkXlne ecxQ== 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:references:to:from:subject:dmarc-filter:dkim-signature :dkim-signature; bh=E2uhoy/0TbZXzvyMGeDzSOv6sP5DvWMw6PwgAPrIGDg=; b=Hktrg2P+K/47zXnu29CMqYqFBtJwmjiXqaiTzlP36yEvtj/VdEwFzQ148eI7elZiYt qkbbWpcMPKC3m3NcHajdQ/REJKUtwcShm9xGKOVMWsJ3JMyM93BKZ++w3RwQfki2H4Cj /VmAZttcc5dmlpOOxTr7GnsqpZTRulH0QFcZWL5PwWLQ0ajLFHw4JLZifB8WMN/aFAxk UgAKdnJt3MOdX663aJv8VLXBL6Q4x7QOgeRY39NvuRsVBXWqDo4wgx+j8v2qpOc5aAPd s+1USwGohGaVpsm1dLYeu8ErXhFXEX4MHuiKXz752Xtu3ZbOxGIbSCBI4KUbYVWsPvWm ryUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=Fa9rxh6S; dkim=pass header.i=@codeaurora.org header.s=default header.b=FWoIZS4W; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16-v6si6436658pfb.69.2018.10.04.15.26.48; Thu, 04 Oct 2018 15:27:04 -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=@codeaurora.org header.s=default header.b=Fa9rxh6S; dkim=pass header.i=@codeaurora.org header.s=default header.b=FWoIZS4W; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbeJEFWN (ORCPT + 99 others); Fri, 5 Oct 2018 01:22:13 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:54102 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbeJEFWM (ORCPT ); Fri, 5 Oct 2018 01:22:12 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id F37F860BF7; Thu, 4 Oct 2018 22:26:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538692002; bh=bCKBjiLJ8rNaNJYhQNqP2ZYuAhl5owxFi+wSbXrycas=; h=Subject:From:To:References:Date:In-Reply-To:From; b=Fa9rxh6S1//JnKBUUdUw5XZjVkjMXmVWDxUnMZkDFM70r52c/ZK39Lkj/d1kMWCNp rSNQ2ON4XgUlphMnsW6/l9Qny5V8U5aQ4yYrZ+pv9XH+OdlzVXl+cyVaHpFu7yRcdu KhZlkdCpFtAHiQgxpfugezo23A9lx8Gd+2jOKMfw= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.226.60.81] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id EF6116076A; Thu, 4 Oct 2018 22:26:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538692001; bh=bCKBjiLJ8rNaNJYhQNqP2ZYuAhl5owxFi+wSbXrycas=; h=Subject:From:To:References:Date:In-Reply-To:From; b=FWoIZS4Wt0qcSFUvQYZMoHUsLZyEIGnOutasSnK906ql18MWcd37h4GuO0Oj0OoqW PEDGJOTcZ2Z9Hn1S0GTVr2+WuGadcvkrIrcybSY6eEQpdyqA5K08YdneUnR8D42vfp oVDW1GS5wrA1IW2MrCwbKrsu1/dFT4lPn4VEgZpY= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org EF6116076A Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=jhugo@codeaurora.org Subject: Re: [PATCH v4 3/3] gpiolib: Show correct direction from the beginning From: Jeffrey Hugo To: Ricardo Ribalda Delgado , Linus Walleij , Timur Tabi , swboyd@chromium.org, linux-gpio@vger.kernel.org, LKML References: <20181002140858.16833-1-ricardo.ribalda@gmail.com> Message-ID: Date: Thu, 4 Oct 2018 16:26:40 -0600 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: 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/2018 9:21 AM, Jeffrey Hugo wrote: > On 10/2/2018 8:08 AM, Ricardo Ribalda Delgado wrote: >> Current code assumes that the direction is input if direction_input >> function is set. >> This might not be the case on GPIOs with programmable direction. >> >> Signed-off-by: Ricardo Ribalda Delgado > > I'll try to get this series tested on QDF2400 by the end of the week. 1-2/3 (v3) and 3/3 (v4) still fails. Same issue. Attempting to access config registers for GPIO 0 when the OS is not allowed to do that. -- Jeffrey Hugo Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc. Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.