From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752988AbbGNIbO (ORCPT ); Tue, 14 Jul 2015 04:31:14 -0400 Received: from mail-wi0-f181.google.com ([209.85.212.181]:35467 "EHLO mail-wi0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752549AbbGNIbL (ORCPT ); Tue, 14 Jul 2015 04:31:11 -0400 From: Tomeu Vizoso To: linux-kernel@vger.kernel.org Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org, linux-tegra@vger.kernel.org, Tomeu Vizoso , Thierry Reding , Russell King , Linus Walleij , Kumar Gala , Stephen Warren , Grant Likely , Ian Campbell , Rob Herring , Pawel Moll , Mark Rutland , Alexandre Courbot , linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 0/3] Have Tegra's GPIO chip depend explicitly on the pinctrl device Date: Tue, 14 Jul 2015 10:29:53 +0200 Message-Id: <1436862596-27730-1-git-send-email-tomeu.vizoso@collabora.com> X-Mailer: git-send-email 2.4.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, these three patches make sure that there's an explicit dependency from the GPIO chip in Tegra SoCs to the corresponding pinctrl device, without having duplicated gpio ranges. By having an explicit dependency, we can do things such as probing the pinctrl device before the GPIO chip device to avoid deferred probes. Thanks, Tomeu Changes in v2: - Don't defer probe if the pinctrl node is disabled - Remove outdated comment from the commit changelog Tomeu Vizoso (3): gpio: defer probe if pinctrl cannot be found pinctrl: tegra: Only set the gpio range if needed ARM: tegra: Add gpio-ranges property arch/arm/boot/dts/tegra114.dtsi | 1 + arch/arm/boot/dts/tegra124.dtsi | 1 + arch/arm/boot/dts/tegra20.dtsi | 1 + arch/arm/boot/dts/tegra30.dtsi | 1 + drivers/gpio/gpiolib-of.c | 27 ++++++++++++++++++--------- drivers/gpio/gpiolib.c | 5 ++++- drivers/pinctrl/pinctrl-tegra.c | 19 ++++++++++++++++++- include/linux/of_gpio.h | 4 ++-- 8 files changed, 46 insertions(+), 13 deletions(-) -- 2.4.3