From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966950AbbBDPiE (ORCPT ); Wed, 4 Feb 2015 10:38:04 -0500 Received: from mga03.intel.com ([134.134.136.65]:63930 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966573AbbBDPiA (ORCPT ); Wed, 4 Feb 2015 10:38:00 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,518,1418112000"; d="scan'208";a="661470499" Date: Wed, 4 Feb 2015 17:37:56 +0200 From: Mika Westerberg To: Linus Walleij Cc: Jerome Blin , Heikki Krogerus , "linux-gpio@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] pinctrl: cherryview: Configure HiZ pins to be input when requested as GPIOs Message-ID: <20150204153756.GJ18758@lahna.fi.intel.com> References: <1422528288-84076-1-git-send-email-mika.westerberg@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 04, 2015 at 10:01:49AM +0100, Linus Walleij wrote: > On Thu, Jan 29, 2015 at 11:44 AM, Mika Westerberg > wrote: > > > If the pin is in HiZ mode when it is requested as GPIO its value cannot be > > read (it always returns 0). In order to cope with the Linux GPIO subsystem > > where we do not have such state at all, turn the pin to be input instead. > > > > Reported-by: Jerome Blin > > Signed-off-by: Mika Westerberg > > Patch applied. Thanks. > Since putting a pin into GPIO mode start poking around in essentially pin > control registers, we may need to revisit the issue of the pin control subsystem > not denying simultaneous use of a pin for a device muxing and GPIO. > Maybe the "strict" setting forcing a pin to be either one or the other on > a per-driver basis would enforce a better policy on this driver (and some > others). Yes, something like that sounds reasonable.