Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751412AbdH3Vlc (ORCPT ); Wed, 30 Aug 2017 17:41:32 -0400 Received: from muru.com ([72.249.23.125]:38978 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750844AbdH3Vlb (ORCPT ); Wed, 30 Aug 2017 17:41:31 -0400 Date: Wed, 30 Aug 2017 14:41:28 -0700 From: Tony Lindgren To: Timur Tabi , Linus Walleij , Grygorii Strashko Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: Regression in next with gpiolib Message-ID: <20170830214127.GJ6008@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 27 Hi Timur, Linus & Grygorii, Looks like commit 108d23e322a2 ("gpiolib: request the gpio before querying its direction") caused a regression on at least pandaboard es with booting hanging shortly after gpio init. It seems to be that we're now calling request and free on all gpios before they are properly configured? I narrowed the hang down to gpio bank1 lines 7 and possibly 8 where not calling omap_gpio_free() on them makes the system boot again. These lines are used for the leds in omap4-panda-common.dtsi, and omap_gpio_free() will by default set the unused lines for input and bad things happen. I guess hardware failure could also happen although I have not seen it here. It seems a similar issue can exist on other platforms too, so it's probably a good idea to revert this for now. Any ideas on how we should fix this? Regards, Tony