Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3246190imu; Mon, 19 Nov 2018 12:55:11 -0800 (PST) X-Google-Smtp-Source: AJdET5d3V7j/wQZwZRwqyTwvYa8FCCDxXOlK7yYsD4s4twdSt3WXHTs5HlisiLDjcMypjl3cEWmy X-Received: by 2002:a65:5c4b:: with SMTP id v11mr21420887pgr.333.1542660911768; Mon, 19 Nov 2018 12:55:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542660911; cv=none; d=google.com; s=arc-20160816; b=uKWDcaqPF3KSQwxcyON48GdegFmwhAAr398OkZr4U2iy2tDDkSI0kdq41S1sGl9w0y 7J/Ro4KzdGyGXlbzqg3RmYVvXO+Y1iCWohFMd6DajyLHZKt45SBB4u0XYwvr5ZwZR5rs rK9p7OVm11KMW7OtdarvwE4XufL+GjtvNkUqAgvehvMTRVP48zNyegyl6whNj7pi0zZN im/C8N9X+rSX8Hln1yy1C7lL0pwDLbJ7VRdK3+q7vcMMZk0yRRYSaeSC1FDCEl5Cxyny xzuUkdAHH7oWNQ226sUgSlrmuULyjBe3kGK6C0iCkMtCcEBNt+4C+rafXi2rNv9TIenr hqzg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=5yG1qYrNlzd6S5CxrDCFGyJ+WD7xwK29xjX5saMuE48=; b=V5thYYP6ocjd+EJeHtCoDscTeL9IDq8w4x2f0IOBFnnYinPb1VUwyKgfUN8LbJ/CdB ue2nUvKNWtNa4eOxk53FYrwU4KjfIJh0k6c+cDCqafaQDGaSDd5voNmMPiktDMOxPXnw Eaw3kS1jy0xcJSe3HsKtbplfyHGZJStjJ4F93qJhNbqbjpwXRVSvVrJy7Ussw5QDgMx5 YzbyiIaiQgQpCph4L3HJR60KflrthaYcKfXwlJma3E9NByaVrzQsOI+P1VtpFWN++Pkm LfPSk8/U3Psg36z5+MS2vgCT3lcYvuVADheu7de/efRuq6utmShSuujT3ciBi5N6G9R0 o8Mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=q91JQnbl; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 205si29035460pfa.199.2018.11.19.12.54.56; Mon, 19 Nov 2018 12:55:11 -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=@ti.com header.s=ti-com-17Q1 header.b=q91JQnbl; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730877AbeKTHR7 (ORCPT + 99 others); Tue, 20 Nov 2018 02:17:59 -0500 Received: from lelv0143.ext.ti.com ([198.47.23.248]:33860 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730828AbeKTHR7 (ORCPT ); Tue, 20 Nov 2018 02:17:59 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAJKq7Nv049521; Mon, 19 Nov 2018 14:52:07 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542660727; bh=5yG1qYrNlzd6S5CxrDCFGyJ+WD7xwK29xjX5saMuE48=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=q91JQnblm/W9niWFyC0rxlL/Dxd92k1aoj7wNdu+WmzguBmPEqFJMPjaP/Te2j1IN h4HBQ2tfZyUie2Kx8SL6hWkvYVgEp+tL/nLNb89u8Ca0fGJgpaqsoG1C30dKBehqR2 9kBl2+PVURiO47muQHUewSZD0P33jTmZTXj1AzVI= Received: from DLEE106.ent.ti.com (dlee106.ent.ti.com [157.170.170.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAJKq7C6105457 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 19 Nov 2018 14:52:07 -0600 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE106.ent.ti.com (157.170.170.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Mon, 19 Nov 2018 14:52:06 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Mon, 19 Nov 2018 14:52:06 -0600 Received: from [172.24.190.172] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAJKq3mp009291; Mon, 19 Nov 2018 14:52:04 -0600 Subject: Re: [PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources To: Bartosz Golaszewski , Kevin Hilman , Russell King , Keerthy , Linus Walleij , Grygorii Strashko CC: , , , Bartosz Golaszewski , References: <20181113135051.15308-1-brgl@bgdev.pl> <20181113135051.15308-2-brgl@bgdev.pl> From: Sekhar Nori Message-ID: Date: Tue, 20 Nov 2018 02:22:02 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181113135051.15308-2-brgl@bgdev.pl> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 continuous > 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. gpio: davinci: Do not assume continuous IRQ numbering Currently the driver assumes that the interrupts are continuous and does platform_get_irq only once and assumes the rest are continuous, instead call platform_get_irq for all the interrupts and store them in an array for later use. Signed-off-by: Keerthy Reviewed-by: Grygorii Strashko Signed-off-by: Linus Walleij Can we revert the offending commit instead? Thanks, Sekhar