From patchwork Wed Nov 21 09:35:18 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1001000 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=vger.kernel.org (client-ip=209.132.180.67; helo=vger.kernel.org; envelope-from=linux-gpio-owner@vger.kernel.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=bgdev.pl Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=bgdev-pl.20150623.gappssmtp.com header.i=@bgdev-pl.20150623.gappssmtp.com header.b="V3XilHnE"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 430HW10Qq2z9sB7 for ; Wed, 21 Nov 2018 20:35:41 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729639AbeKUUJY (ORCPT ); Wed, 21 Nov 2018 15:09:24 -0500 Received: from mail-wm1-f67.google.com ([209.85.128.67]:33580 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729625AbeKUUJX (ORCPT ); Wed, 21 Nov 2018 15:09:23 -0500 Received: by mail-wm1-f67.google.com with SMTP id 79so6852876wmo.0 for ; Wed, 21 Nov 2018 01:35:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=j7d3gKs/3PvV8H7d9+aIBGmoqH8Qt+ozbWCJM2/z5B8=; b=V3XilHnEpfkxXKAmbQVk8CoixuIwu4UWCWLHeW4SnZtL+K4bsA9hN9EqhOu3+QRrl2 sPtFcgujmxQMNS5TUcxgk0QefBpHVb1rj/fOY8nnnQGZ7UsuZLoF0LnDr/aE5Qz8G1h+ SiJ0S6d5KtXtcmy6GGkH/aeqOqVtzCYktoOC4+VjhU6GyfpMdeTCQRXGA7GT4UuYZaVM BGeVJeDLxtpnFFvsePGZ7Idp7ViUH8CtX+y72FSGRsj8fiQhVqBiMCCzdXUsCEPHyh03 l3FzJYS4+QjAWUT8rHOhsk7kE+K3OyR/JePdm8/0dVSFtQ/QgjgG8i+5Ya2k7oqkvfor pphQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=j7d3gKs/3PvV8H7d9+aIBGmoqH8Qt+ozbWCJM2/z5B8=; b=iROzuoJuhBApvUIiIUTXEiFOpWEX8N/3bgdKKMb4fwMlyLLClvHiVTDJ12tkttiARA /9yth+j8ZWCQSi1EAysGw3pYc3csG8Y3RHqEuHPJl/BjVrYriazU13zC4zxGqvqK/55w 7bXq3LLlDu3B9CMMCHuecAkDazmYsvYTgboFa38AKtbxeZV6CZf2KzlxKvll3r2Lgx3z ZhECp+4iSQTAQxxn6bQnM2N2Ob4zdzbnx12ihHHndsbJnYAgm0QlRlFwVP0VWMohMbH9 +nVfzemiQsi1RR0rOkUHNe5/hbQRxLBtOyTzjO+rcjLoZ3zFgiYqmmZCA4DOptdv77z2 8jaQ== X-Gm-Message-State: AGRZ1gJBBNeMmPixZ0P2uANdpTIxhuJofSI684c/YjSLQga1dy+8Qi81 dQ4c+hBxkCcsDTkAecxPKc68Iw== X-Google-Smtp-Source: AFSGD/VX08JNI5ikbq1tXDAaLlSVnFItRfKDCgaREx0gR5ni4t6qJB3WUEapAGhELtKtPKiBZZo21A== X-Received: by 2002:a1c:128c:: with SMTP id 134-v6mr5436123wms.72.1542792938299; Wed, 21 Nov 2018 01:35:38 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id o8sm10443785wrx.15.2018.11.21.01.35.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 01:35:37 -0800 (PST) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , Russell King , Keerthy , Linus Walleij , Grygorii Strashko Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, Bartosz Golaszewski , stable@vger.kernel.org Subject: [PATCH 07/12] ARM: davinci: da850: set the GPIO base to 0 Date: Wed, 21 Nov 2018 10:35:18 +0100 Message-Id: <20181121093523.12503-8-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181121093523.12503-1-brgl@bgdev.pl> References: <20181121093523.12503-1-brgl@bgdev.pl> MIME-Version: 1.0 Sender: linux-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org From: Bartosz Golaszewski Commit 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") broke the network support in legacy boot mode for da850-evm since we can no longer request the MDIO clock GPIO. We now have the option to specify the GPIO base manually for davinci, so add the relevant fields to platform data. Fixes: 587f7a694f01 ("gpio: davinci: Use dev name for label and automatic base selection") Cc: stable@vger.kernel.org Signed-off-by: Bartosz Golaszewski --- arch/arm/mach-davinci/da850.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-davinci/da850.c b/arch/arm/mach-davinci/da850.c index 4528bbf0c861..e7b78df2bfef 100644 --- a/arch/arm/mach-davinci/da850.c +++ b/arch/arm/mach-davinci/da850.c @@ -719,7 +719,9 @@ int __init da850_register_vpif_capture(struct vpif_capture_config } static struct davinci_gpio_platform_data da850_gpio_platform_data = { - .ngpio = 144, + .no_auto_base = true, + .base = 0, + .ngpio = 144, }; int __init da850_register_gpio(void)