From patchwork Wed Nov 21 09:35:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 1001001 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="vBaYd4fN"; dkim-atps=neutral Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 430HW44kdGz9s7T for ; Wed, 21 Nov 2018 20:35:44 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729661AbeKUUJ0 (ORCPT ); Wed, 21 Nov 2018 15:09:26 -0500 Received: from mail-wm1-f65.google.com ([209.85.128.65]:40814 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729634AbeKUUJZ (ORCPT ); Wed, 21 Nov 2018 15:09:25 -0500 Received: by mail-wm1-f65.google.com with SMTP id q26so4981666wmf.5 for ; Wed, 21 Nov 2018 01:35:40 -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=1NndAx1d3yMsHryrz9uJjCfJ9mVNSmD5ueQ1RobI0Co=; b=vBaYd4fNJU79whOVi+98h7JMHSXcmzp0FiF7KraD4T8zmRTfeB29COcTEg7lmDsVPw n6242vHb+Or8HFYMSyGurnqShBRRHP6tL6K7ClaISPQa8yP4vXBNk6bY62Frjos09c9i zAg6BBCdJIZWeNKLRwMqC4nyBFMIG1n/PWyOM29wvbSO4USfGu8orbgjk1swDgnat+gE wOrvGEZth0ekRTr1CHHi5ebT2ayl47HR7zorN7bMnbg7shPXknmr/dPM/z29arSBwBE8 /q+cXuyz9E0Om1jUkanoq3LZhkAVaLjS+oe3sBIK4QaRCLcscMXumhvvQCY/PsUxvkl9 diXA== 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=1NndAx1d3yMsHryrz9uJjCfJ9mVNSmD5ueQ1RobI0Co=; b=QrjsgJEtrEmjFQEmOOaR9jTJW0i5r6rkjL2eo+pIdJ/Wk+XEXIFsq7A10MPm6xyU4l 9dnkX9MwOvWWMaE+t0Lu+LjKAfAGxuJPaU9bzyEsmIvVD9Tlp8NhSZDHKpwTn1XuHDQy sfhUUDZXnH2/87oKrWPHm8AChOqKHYhCd6mks/1ioBXyYBA9K4D93QYVVZTM7+61iaeg F+bzb9eJsdPg+q9rVvYq46yJNUW1+JLDg0mXo+iDoldDr6V+xWG3mRZM0qvM4iHcWdSD 3pjdrmY3c2B/McFbMqHoWV8sI/LZ9pUc6ko59skCm3hUP3U18vDiZmkF9o/gFIINkVJv dmZQ== X-Gm-Message-State: AGRZ1gJL2LhfRttMFtaDbZ35R+FyxG9heTFa53WlmicorOtyjqQeYSEL ieGW9OYJAe2fnoDoCb9x5JqwXw== X-Google-Smtp-Source: AFSGD/XOo8WapgaMwpEEUO9Ky7hHEoS5xG6JGbXrhkQOUHJN5o9vkTt+H1DZZPta+s3GVsZqj7QMtA== X-Received: by 2002:a1c:bce:: with SMTP id 197-v6mr5222968wml.15.1542792939534; Wed, 21 Nov 2018 01:35:39 -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.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 21 Nov 2018 01:35:38 -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 08/12] ARM: davinci: dm365: set the GPIO base to 0 Date: Wed, 21 Nov 2018 10:35:19 +0100 Message-Id: <20181121093523.12503-9-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 GPIO support on DaVinci boards in legacy mode by allowing gpiolib to set the GPIO base automatically. DaVinci board files use the legacy GPIO API with hard-coded GPIO line numbers. Use the new fields in struct davinci_gpio_platform_data to manually set the GPIO base to 0. 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/dm365.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 42665914166a..01fb2b0c82de 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c @@ -308,6 +308,8 @@ static struct resource dm365_gpio_resources[] = { }; static struct davinci_gpio_platform_data dm365_gpio_platform_data = { + .no_auto_base = true, + .base = 0, .ngpio = 104, .gpio_unbanked = 8, };