Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp504111imm; Fri, 5 Oct 2018 07:19:48 -0700 (PDT) X-Google-Smtp-Source: ACcGV62MJ6lM4mvBzfhdAdJiWhISs7qDYfCcjl4xHxHb6VROZ7rrs9oZOztEPmpOvRLX+9svEwvd X-Received: by 2002:a17:902:a40e:: with SMTP id p14-v6mr11904131plq.338.1538749188407; Fri, 05 Oct 2018 07:19:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538749188; cv=none; d=google.com; s=arc-20160816; b=oiJBRr2EHpvihfii93w3Ekjotg9INihHwjQQONjOWjKAGd3lFO7tNOiIfvQ949Yh0D BSmX28Ksj1ihXWI09m0qsGT1fsemJoIAUcTlXMB5lXFWFdeA1cVKU7qe843fCMBxey4s 5hd/aA7YVO3vLW1D0tyTw0zFXGnMZaJnNO6wnt/wCo+5IB22rbMHpsPTc6RE0suWbx1D 2BAknzvZN5BbPe4GZOOuCzOROASAE4muztlSmMe7xNVdeDR7Ao9WrfwN4RGqleFMnGqZ LGK4TpFie1uh50+Vn3P9980mJWwg1IPhOsTyFEVl+HqQf39S+2WkCedLGgqA2aQGUl56 ubEg== 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:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature; bh=JN5MfeEhJVOlyNOfH5rRfXJOCRBK72EcSU4c2mIl8AM=; b=u6BIM/IwRJKL6fjSG4beTQ4kBO+cEHU130kcAOdNFZeKr18VLIzO6UEIBM1FV2BwyA MKc97Z2jYUG4LUSYArPlIUgGIY34Tw2QyBddJF0d+oa5FhzvckuYQOFNMe52/RluYSZe swmsz0RJt28vLTn/N50OePudSNfItlhH4dI9fKGk4yiEvhLdD3dDNQePx6Mib6X0z+Xs /qRE5MOZi9KLXAqEbDC7psEYQ6EtdJqDFxQ9UKmd6YBHvc6uKuP34own8IrLMSzVWU4w hAq4+M7i5cj7wojwM+zPDmZhoQeh1fC5eh6pL4skytTZIt3gVVzhZmzRztyTpCoEH69I iwag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=SH7dS6yO; dkim=pass header.i=@codeaurora.org header.s=default header.b=QwY6dPcU; 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 f3-v6si8294955pgu.494.2018.10.05.07.19.32; Fri, 05 Oct 2018 07:19:48 -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=SH7dS6yO; dkim=pass header.i=@codeaurora.org header.s=default header.b=QwY6dPcU; 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 S1728805AbeJEVR5 (ORCPT + 99 others); Fri, 5 Oct 2018 17:17:57 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:60124 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727968AbeJEVR5 (ORCPT ); Fri, 5 Oct 2018 17:17:57 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 314A56035F; Fri, 5 Oct 2018 14:19:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538749141; bh=jDbqnxvlI+BVTltqAUIvUOEC4d0n7vP/A2ZY3X0M010=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=SH7dS6yOKj8I2S6r+8UnBe779Ic37kvXa25IBnDrULPsxPlADoOtKWD8veGJdmtof lqsW2s32zuoGLmZ4INwCuQd2fUZ3z0BO372KFcUaKgkYKyOMrshGVyQWvza30k9MsE OrvJZ7EhDKKCsTTQoCopnEoCO3kkk/WI7bAssIHU= 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 20DF26031A; Fri, 5 Oct 2018 14:19:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1538749140; bh=jDbqnxvlI+BVTltqAUIvUOEC4d0n7vP/A2ZY3X0M010=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=QwY6dPcUmPu7D96SMd6UQfFmFoXu7zLlkDEX2I4pKcxOLNWzQTggLy7jbfzl71aC2 ElIvWJZN83I/9iEAqWVvMyHbiWkwycPJy8OT4TnHTD4HSKgB7zVtVvihmM3Md++1cu TdAL91J3dJYT4dZ7UvIQLcCfGchAs7WG6CJV4o8s= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 20DF26031A 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 To: Ricardo Ribalda Delgado Cc: Linus Walleij , Timur Tabi , Stephen Boyd , linux-gpio , LKML References: <20181002140858.16833-1-ricardo.ribalda@gmail.com> From: Jeffrey Hugo Message-ID: Date: Fri, 5 Oct 2018 08:18:59 -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/5/2018 12:52 AM, Ricardo Ribalda Delgado wrote: > Hi > On Fri, Oct 5, 2018 at 12:26 AM Jeffrey Hugo wrote: >> >> 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. >> > > I think that I might found the bug. if gpio-reserved-ranges was > present the initialization was lost. > > Can you try with v5 > > Thanks for your help I'll let you know how it goes. -- 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.