Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp87968imm; Thu, 4 Oct 2018 23:53:05 -0700 (PDT) X-Google-Smtp-Source: ACcGV61FMK//uNLhqrHqo4gEpSwmmot9pR+waLVVDVVgeaVd4pSHRsgMWemohtZz0LIhr0/ioMN2 X-Received: by 2002:a62:ce83:: with SMTP id y125-v6mr10399563pfg.201.1538722384938; Thu, 04 Oct 2018 23:53:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538722384; cv=none; d=google.com; s=arc-20160816; b=EPgVtV5yG7OFNDMc2f1IuaS5bN2EXIOQJt+6Iason1DmcTvuxvOpVda+h8czcrIVqT 9Rqc16lzFy9hM14VBPQG/bs57pfdqVP3JktgO5iKTK6imXkRy/XxBXmPZTCIhVjkKr4Q 3Nn8Jjosr6moov1Xv/JJOLzRES4TG+H1Kr4OBj4E2yhNH6qvWEe/tMaORMoFW+29IZq7 hN3cEkq0dq/CrsH8s4jzNaHXh56eWONIDZA7uZD3JGXXvUSUHEq+PQpoQTEFNFK1wqQ5 fKwP5xPfU/w4FXv3rPzE2qs7Jl9Q1BQjFjT6Xi4BMAYMci51KEANR9SL/BwTiHfGIkkm GAtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Jt1XDUkDJwjd+wVG3yNiiUeavAxUfRp14JEm3JIWDV4=; b=Ke/YvQGd/3tF7mVKdGu8rwh8R28K8jEObgYilytJhPtOEP2AAgldVk/IpvpQQda1rK vOQn8K1INiEAvt41QVGwe08bjBrgKeMmIy8pV4MzrmGXr4vQJh75jiAgAZvU7/flzle+ FH5eTfV8mUIbT2g/Vxu0JTmX/S/oE7HlTznC2g5Fcl+hc00/llUk69drIDiY4iTYj98N WuNv2V6Yv/mgD/rmDBWlEjNBm2ygUOfow1eELABd4zJb2mUMgs7tkfHUAmLiCXYCLax/ MIJ7ukjxotGcnDYBJtNfTiMQRb9V6sxBLD9owmA/FqkcPJxN/LZE+xcw/mDqtYA30+F+ rEoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=mzw7wKRA; 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 d10-v6si8979685pln.68.2018.10.04.23.52.48; Thu, 04 Oct 2018 23:53: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=@gmail.com header.s=20161025 header.b=mzw7wKRA; 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 S1727945AbeJENt4 (ORCPT + 99 others); Fri, 5 Oct 2018 09:49:56 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:46168 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727025AbeJENt4 (ORCPT ); Fri, 5 Oct 2018 09:49:56 -0400 Received: by mail-lf1-f66.google.com with SMTP id z144-v6so65972lff.13; Thu, 04 Oct 2018 23:52:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Jt1XDUkDJwjd+wVG3yNiiUeavAxUfRp14JEm3JIWDV4=; b=mzw7wKRA24PHiDL0fygryCgGa3/JsjOchyQ6MuwFNdSPtUd3D8Zw3Xa+LZtHEWpMWa hvYYLvLPa91hYtiz/BaRWrbNHRQKbGoJZRC98FtPtwwWkp7YzPCFxAcyMgYdYOw+6ccp oVg9h0u0SedeaZ8JFjhqLX7nLEFGFGivCtBLbbFmS3rOrDl6g1uSP/Mr8d3WnTTp4La4 mYQunDjJ20nYfWk6W1cTUywndUAybb4ZJ8ssoVI1JnaxYYyEUk+wWgt+WGVdW0QsHGF5 HFhQ4vMFeuSPGuYBKwZtEwBIna34T66cfHqNsHsB+nsWZ7toV6pdmeNTEr/AaClXS3OW hdAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Jt1XDUkDJwjd+wVG3yNiiUeavAxUfRp14JEm3JIWDV4=; b=I1y3Hx6Kz7JzarQ2NWt363GnPxC9Rz9TmXeNQy6BG5ilQTMYnoSfGkuDWuc78YySav PzLXo1Btgh5wHFHFSsy6EtHqF3wioDu+MkizJmE5ecelY3YCUDwEr7Yill4uh23BubQN ayBXS9IWNxYEunu7tVUcvryrEkD2BNHW9IIXo0puJe5xpA915KPg6wEKVWvkgFQ9UJGR JI8p00SM342PfWmWjH+fLILD38j3y4uAAbp773ILOQTyL3Fbx+B8mYPtsiDG5XPpRqPw S08BhX7nxcYOZXn27xVECfR9PBgVQP7PjR66l464I4tWN++jr0wMa85jqjJeAoJucdDM kIew== X-Gm-Message-State: ABuFfogEu9BmE8dduodpRS0gGWvAnNAHLOwOkFiJS9TKnL1ESIVQqch7 MxCTvktbdtHdzwdVIxxCUBGPKE2nXsVGAFeCQN0= X-Received: by 2002:a19:d408:: with SMTP id l8-v6mr5980703lfg.25.1538722357206; Thu, 04 Oct 2018 23:52:37 -0700 (PDT) MIME-Version: 1.0 References: <20181002140858.16833-1-ricardo.ribalda@gmail.com> In-Reply-To: From: Ricardo Ribalda Delgado Date: Fri, 5 Oct 2018 08:52:20 +0200 Message-ID: Subject: Re: [PATCH v4 3/3] gpiolib: Show correct direction from the beginning To: Jeffrey Hugo Cc: Linus Walleij , Timur Tabi , Stephen Boyd , linux-gpio , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > -- > 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. -- Ricardo Ribalda