Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752305AbcKGISl (ORCPT ); Mon, 7 Nov 2016 03:18:41 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:33996 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752029AbcKGISg (ORCPT ); Mon, 7 Nov 2016 03:18:36 -0500 Date: Mon, 7 Nov 2016 09:18:32 +0100 From: LABBE Corentin To: maxime.ripard@free-electrons.com, wens@csie.org Cc: linus.walleij@linaro.org, linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com Subject: [BUG] pinctrl: sunxi: sunxi-pinctrl fail to load with CONFIG_DEBUG_TEST_DRIVER_REMOVE Message-ID: <20161107081832.GA23580@Red> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 822 Lines: 17 Hello With CONFIG_DEBUG_TEST_DRIVER_REMOVE=y pinctrl-sunxi fail to load on the second try. [ 3.900061] sun8i-h3-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 3.916251] gpio gpiochip1: GPIO integer space overlap, cannot add chip [ 3.923016] gpiochip_add_data: GPIOs 0..223 (1c20800.pinctrl) failed to register [ 3.931099] sun8i-h3-pinctrl: probe of 1c20800.pinctrl failed with error -16 [ 3.944709] sun8i-h3-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver [ 3.960796] gpio gpiochip2: GPIO integer space overlap, cannot add chip [ 3.967594] gpiochip_add_data: GPIOs 352..383 (1f02c00.pinctrl) failed to register [ 3.975633] sun8i-h3-r-pinctrl: probe of 1f02c00.pinctrl failed with error -16 Without it, all subsequent drivers fail to load. Tested on Orange PI PC board. Regards