Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5384434imu; Tue, 13 Nov 2018 05:51:54 -0800 (PST) X-Google-Smtp-Source: AJdET5fSAUcRwKpKytb3WxsBpDUUVEjk3Geel8hMDm0zmpuhWl8XzD4enFnXWQcesau4pK1iMMKP X-Received: by 2002:a63:f959:: with SMTP id q25mr4863216pgk.315.1542117113955; Tue, 13 Nov 2018 05:51:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542117113; cv=none; d=google.com; s=arc-20160816; b=SB23bNUfU73fAVtbFz8WsPHpmZF6C9pFlZwM/e9r9H60dBHSeTOXOeq+qp1ccvZx5f RiuxOGs/OcI1n5kl58aehl7GDj3JsvS7SAH1EYFlSVG1CXksJGex2psqFVlgCiR6FKDp gQDTWgpyfS+jAvvEA4fwDLfIYlEov1aeJKeXXQsoSXk9ZCWq0NyTOlI8z7dL6Kd7Nw6i ZwTNrZuNfZI/FiV5KM3hnce0G6B/WUTxhZFl2Gr6pzS1kv9JO95f84AvEWbQ5Sk7YoBD K6AZcrj7Blv+JbZJVmtfSIX8BYXRInuCR6G9lMC4EOeA06KjQxPGSH11kGL2BRfp7lM0 mcrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=j7d3gKs/3PvV8H7d9+aIBGmoqH8Qt+ozbWCJM2/z5B8=; b=xWxh1HFjfTnli1CY95lWkRLSlL35Z8DUSBQOvuMxIBn5YMO72I2By+B9vgp9aqRdYy XfYkVUq2/PQAauEM3Q6P/q7fGuI1iP0wM+KpDOkj2BG5KhKWo0ITBNsZXm/1KLUoArRf RuhIa3cJlfMolbC1Xgt4UqRDftDbuVANUECvkvGHmJeblCE8rozXou1u3AlBCSfrN22H lZD5UlgwMRHcnVmLiozfDsnuiv2yRibK0x0MC3tZ3/RWHXKOz0ED8xwYUMUyJ3jf7Hk2 CevwRwm4c1Zn/WpQ8X/76Eh7IqZ3WrnFW8V5rqVroC+azPN7v4k5oWb/A9y4Y3BkbzNf D/8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=yvwZTO6S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o69-v6si24580773pfo.78.2018.11.13.05.51.38; Tue, 13 Nov 2018 05:51:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=yvwZTO6S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387606AbeKMXtW (ORCPT + 99 others); Tue, 13 Nov 2018 18:49:22 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:34503 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387434AbeKMXtV (ORCPT ); Tue, 13 Nov 2018 18:49:21 -0500 Received: by mail-wr1-f67.google.com with SMTP id j26-v6so13397600wre.1 for ; Tue, 13 Nov 2018 05:51:06 -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=yvwZTO6S9n/L4hlrekct66mJgeWtENzNAHTnLT5z+jsZS5B0iApKkSsajPzFmw2UNN swLrEdj0/AuiGBuX2XfmroQzs4MlcXsJ3JqGirlowfrG3N2+E1UrV/mcrx904opJpGxP Y+KKSlIG8BcDIil0C07eWtQSmLX9JiUn+LIaC73/Ned68GLbRsioIBtqsZg1eaGMisQW Lera1xkkTv5rDhZGYkpDztnHBU82l96yKmaq5uYKoefmN5Dj/uK5zZkyFydhCY0yowTA nRj4doympGg1Of8+NlJ0GfWLc6X3MqKm2rDSVO9EYy8BWKkPaNYEUOeoVfsS0PnLAnnR RGBw== 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=R1Yeo1Mnb+CGswZ/H+KLdwSqI+hKT0sxMcgf2uzGBJQSeWQGf9D+dQPOUsNfjwzXYG 0aJi5aI7V/LJVGh6eQb0L9KUFRobc+tSPx3Rc0fQZiFqAoOQPzf4hwzWfpAPHlo8tnu8 QESh3ck5ApDs/cMVc740Od8GSwLkcLZViZeeBBBFim9ASwOqJa95XieIMovNYwiGB5IQ 490vpAc5kJwAO4L3Rmpc9zHDA53cYJ8fxm/kW/LcKRPhTmGFWPf/N/3xeTS4zEFw6wjs SLiMGrmR9ouj4PZojnoTOQCs2ZQSs4nEy8DZUMiuFz5L1S/5MQk56JBuAZgNhuPQFq+x UVQA== X-Gm-Message-State: AGRZ1gLsQoAz/CD7oXSjHv48YbDCBJJBvjRAun371PbKp8NgAcaOKWmC DZ/zVto+8lJEbAZwO+fc6kUHIg== X-Received: by 2002:adf:9051:: with SMTP id h75-v6mr4903739wrh.65.1542117066160; Tue, 13 Nov 2018 05:51:06 -0800 (PST) Received: from debian-brgl.home ([2a01:cb1d:af:5b00:6d6c:8493:1ab5:dad7]) by smtp.gmail.com with ESMTPSA id j40-v6sm15170050wre.48.2018.11.13.05.51.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 05:51:05 -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 3/3] ARM: davinci: fix da850-evm boot in legacy mode Date: Tue, 13 Nov 2018 14:50:51 +0100 Message-Id: <20181113135051.15308-4-brgl@bgdev.pl> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181113135051.15308-1-brgl@bgdev.pl> References: <20181113135051.15308-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@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) -- 2.19.1