Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1789299imu; Wed, 21 Nov 2018 01:53:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ww4d50fHiOTNSNaPMzuCs2foN+e9+iSFU3VFhqk9Rv9+UqfWYTLw8pUaL0jgjbvsX6nu+G X-Received: by 2002:a17:902:48:: with SMTP id 66-v6mr2107478pla.45.1542794002181; Wed, 21 Nov 2018 01:53:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542794002; cv=none; d=google.com; s=arc-20160816; b=JjG3OWPMPFgl/yXtE7NAMVEoTiBEqVxBs1YKn08ztyS+VhNdfZIwSD2cQgEDy2WTOm kgE3XFDxGRkwaHnP4fFeZskDwVWq7MGijeznIedqYiCYuE+rOiGkT+Rf2+fBmTYvugOM ZbIMOFQ403wkZpVHK0z171qi0W0019Nf6MLAYmhS/Go0QMqGw1X6xxrVPWq2dnWu2QDQ LCegCEPoMjY1K8RlRk3KgstYwWJyYaCwRAULXOV1vRTIaDrIIOpFL6iPWf8hYnoWj+xf QJnlbrjxSqNFAv5SYOhkU+EPD3QqB0sIRIhw4mx+3J7iUwLAOgXCC8fuWX2teNKC+g51 PMlA== 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:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ArGJLbtCwPhwjPL7JTYWaUDheD9J/FfGKkJ/gUvMjAs=; b=I3kE2v7+y/91EYYqsN/FURcyyTUsFbjJLzY0CREuKq+HwmVRzzQWZFDY3jYJoca4xO iFRbAMzaWGesfatehK93uf/JymSkVMPRfHS7oGb5u9Ec6u0oQ4QjkeuJB5WjZGUyUjDF Bqr7rDL+5HqbEwuRArVBV+dTSbVs+nLTkLPTSaYitHmjfHxA252tJu8PaEN4aGGhNvu7 OOMn96dqTo/FxGHfqBiXxbLDUcj0TqYTrMNS+07jVKDxJik6xbDnApTnW0iYJPnOSmdT IHQm+BrrCS1+8GDCVxvAqV5TYThQ1AyvXNdVuxzfCT+PnyfXQPClpljEPKTwg1FynKK3 2KfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=h7hjQsuO; 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 q5si12485566pgg.204.2018.11.21.01.53.07; Wed, 21 Nov 2018 01:53:22 -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=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=h7hjQsuO; 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 S1727450AbeKUTZa (ORCPT + 99 others); Wed, 21 Nov 2018 14:25:30 -0500 Received: from mail-oi1-f193.google.com ([209.85.167.193]:34200 "EHLO mail-oi1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726423AbeKUTZa (ORCPT ); Wed, 21 Nov 2018 14:25:30 -0500 Received: by mail-oi1-f193.google.com with SMTP id h25so3914980oig.1 for ; Wed, 21 Nov 2018 00:51:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ArGJLbtCwPhwjPL7JTYWaUDheD9J/FfGKkJ/gUvMjAs=; b=h7hjQsuOXw07C9whVQyX0IOV8A/vwXTIaRu/1cYhSBjz6lBnEQekZtH16nMat5lFxw pIP5T8IxlwmXLPYNw332CM7pSApW/gy0s3tRSqy2SSnFSJR9sMLYx8p5dWf7zRUWFI54 LaNMf6ViOS/oguAQPMFRvaxNirEkxZrGDKXSojtknkNG2LpJG9RCs38MvxcDw7g44j99 t/UrzEpc4j3Kag89qyCkjVRImfT8ciN2wNALz/3LIdki7onILdO74Abb7WNqYpVg6zgB 7CeVCmqZQ8OBvgEOK2DbRSDX/DH450/Z49JMMe4ebaqxWyvFYbGe33/wCSA7gPOgFPFB tRgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ArGJLbtCwPhwjPL7JTYWaUDheD9J/FfGKkJ/gUvMjAs=; b=IZs7K4huH1ZSm0bNxVEUHgjwzRoDpQx5QB/6SsDZ+suHwsxO/42hZqY4+jEltl/FhH gUJCLCivN9SRHyPPe0s5jkSlyZe+uaajJ+0TrQuEgOOv8H3KiThrCAwPfRBjqiRXL8nW mG8MnAqrNlqGw4DjZPUMrcwGh67Ew6hibTjYOInYPS1vf+hPeCDtdbz8h+aRothwk4jb MWCNvJXuEBik/KH38w+L65zVjSxTcQzofstFHH7PTKBpaH5PfrI4S/mhbzTKQ/zlLIhm WUpk8s+3FiP9mDgq/EuKPF8JF1MzkSUCu3ARbpKidVFoC8ksAZjgb3vsphKB88wXQ+Bt tRLA== X-Gm-Message-State: AGRZ1gLYR+ZRIJSIbH7zgaVji1B6MJxT0AvGg8HCp0LQdeL19/f4MPVV 5eTH+BFWDjWYu+caTyZ+FeFGTxf0ALjo32HJN8W8Yw== X-Received: by 2002:aca:fd12:: with SMTP id b18-v6mr3235910oii.337.1542790312258; Wed, 21 Nov 2018 00:51:52 -0800 (PST) MIME-Version: 1.0 References: <20181113135051.15308-1-brgl@bgdev.pl> <20181113135051.15308-2-brgl@bgdev.pl> <63ac671f-b202-2533-3878-af16149fbdbb@ti.com> In-Reply-To: From: Bartosz Golaszewski Date: Wed, 21 Nov 2018 09:51:41 +0100 Message-ID: Subject: Re: [PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources To: Sekhar Nori Cc: j-keerthy@ti.com, Bartosz Golaszewski , Kevin Hilman , Russell King , Linus Walleij , Grygorii Strashko , arm-soc , LKML , linux-gpio , stable@vger.kernel.org, lokeshvutla@ti.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org =C5=9Br., 21 lis 2018 o 00:07 Sekhar Nori napisa=C5=82(a): > > On 20/11/18 12:08 PM, J, KEERTHY wrote: > > > > > > On 11/20/2018 2:22 AM, Sekhar Nori wrote: > >> On 13/11/18 7:20 PM, Bartosz Golaszewski wrote: > >>> From: Bartosz Golaszewski > >>> > >>> Since commit eb3744a2dd01 ("gpio: davinci: Do not assume continuous > >>> IRQ numbering") the davinci GPIO driver fails to probe if we boot > >>> in legacy mode from any of the board files. Since the driver now > >>> expects every interrupt to be defined as a separate resource, split > >>> the definition in devices-da8xx.c instead of having a single continuo= us > >>> interrupt range. > >>> > >>> Fixes: eb3744a2dd01 ("gpio: davinci: Do not assume continuous IRQ > >>> numbering") > >>> Cc: stable@vger.kernel.org > >>> Signed-off-by: Bartosz Golaszewski > >> > >> There are a number of other boards that need such fixing too. And the > >> commit in question does not do a good job of explaining why it was > >> needed in the first place. The description just repeats what can be > >> inferred by reading the patch. > > > > Cc Lokesh > > > > Sekhar, > > > > DT explicitly mentions every IRQ number. The patch in discussion > > explicitly calls platform_get_irq for all the interrupts which to me is > > the right thing to do as: platform_get_irq--> > > of_irq_get-->irq_create_of_mapping--> sequence is to be done for every = IRQ. > > > > k3-am654 definitely will need explicit calls to platform_get_irq as it > > will be involving interrupt router and interrupt numbers need not be > > continuous. > > > > So i do not think reverting the patch is the right idea. > > Well, all of this description of patch motivation should have been in > the patch description to begin with. > > Bartosz, can you please extend this patch to fix this problem for other > DaVinci SoCs too? I am on the road this week, but will do my best to > queue these fixes at the earliest . > > Thanks, > Sekhar Ok, to make it easier for you, I'll resend all the patches addressing the GPIO issue. Bart