From: Timur Tabi Subject: Re: [PATCH] gpiolib: Show correct direction from the beginning Date: Thu, 20 Sep 2018 07:35:52 -0500 Message-ID: References: <20180914070839.4667-1-ricardo.ribalda@gmail.com> <20180914070839.4667-2-ricardo.ribalda@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org To: Linus Walleij Cc: Ricardo Ribalda Delgado , Stephen Boyd , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" List-Id: linux-gpio@vger.kernel.org On 9/20/18 12:23 AM, Linus Walleij wrote: > I think most gpiochips easily survives calling the .get_direction() > early, Qualcomm's stand out here. > > Now that we have .valid_mask in the gpiochip could we simply just > add this back, resepecting valid_mask and avoid checking the > direction of precisely these GPIOs? Can you be more specific? One of the proposals made previously was to add a check in msm_gpio_get_direction(), but that was rejected because the consensus was the valid_mask checks in gpiolib are sufficient.