Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp305795imu; Mon, 19 Nov 2018 22:58:08 -0800 (PST) X-Google-Smtp-Source: AFSGD/X8ZmflrRqvmlpc3tiay+nH+SOF2AxHLdZXFGnReXkRWcyBMZcwIazj3S9on3T0RLZnU6HL X-Received: by 2002:a63:e348:: with SMTP id o8mr853700pgj.158.1542697087943; Mon, 19 Nov 2018 22:58:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542697087; cv=none; d=google.com; s=arc-20160816; b=m2D4c1rYUOXV3dnVVBQj9iYaKvxe/pVdPz19EnZkuwp2pjZFmjZdXkX4HaF/nwhRu/ pdUM22dKlkqIMlmlVaKKmMTikW9v7ntUEwlFXMaB1agcRCE+KU3l0kSwgZAnkghfLP29 zzQapoRLUmLufJLWHp+Xr6KnkRFmMhgKniGDylHVXXHW1e7l1s6wnP8GwRC5tw3yjaiV l+bEq8jIvqGdGEvaJGjaoUMOP4HNZtASq4USAGpTOWcFswKL1GtpuvamqzgQj4LN6k0H IHG0N2myjgxffxjSNaDo6K9iVhH++pvFqZwofNOyP4mUhLhGsHg9V0LcEBBSbOO018NK geFA== 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=yCojy9y88a1Eah83UeDo37Pgx5KZWNzr0+PU8Hs5keM=; b=QCYsF+EaC9raxMuAkcOiXBHrZR+xqkg0xC2T6YacQj5LzOslmrjoKHnNEmgazs0kBY iblsZ+OTZDQ3AsmqKgjjuiICNDvNJL5J6FbRYPPSs7ao6iaedA0B6/1GiAksH+Er6Smy J2sOeeA/nr4CtjzoPlHrvN5PoOdf2admG6uvloUMnIW6q6dHIGWtnLAPStjZyVAqfvEx CGDzWTIHyaju+bHVkhkS6AlwpNKAoFd3Tkl9u57AuCaX3Ms5lvwByzcoASP8auxMtcG3 iIAMmdt4XD9d9P+byJRp6PBSJjABqAbjY/GP3p4ehsbLWeLh6SgykiEfbFZm9zizHyyN hwHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=FRM5kFND; 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 i64-v6si45991189pli.135.2018.11.19.22.57.52; Mon, 19 Nov 2018 22:58:07 -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=FRM5kFND; 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 S1731472AbeKTRHH (ORCPT + 99 others); Tue, 20 Nov 2018 12:07:07 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:43078 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726883AbeKTRHH (ORCPT ); Tue, 20 Nov 2018 12:07:07 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id wAK6cklY097420; Tue, 20 Nov 2018 00:38:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1542695926; bh=yCojy9y88a1Eah83UeDo37Pgx5KZWNzr0+PU8Hs5keM=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=FRM5kFNDo0LIc8FSB/3qKELC9jqxsfXXuUC861SFcA/uGfKjIoYPBNoS88tEw5G4p NURjdX7qYRio2QsERdwaIeyo6hbu77EIVDX58nOApPFVlZVQrYsztbhCKFKil62INc uBnOX/lVjhDP8HvK3Qj3/fa9l3QrcJqDWepuu91M= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id wAK6ckQT080583 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 20 Nov 2018 00:38:46 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Tue, 20 Nov 2018 00:38:45 -0600 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1591.10 via Frontend Transport; Tue, 20 Nov 2018 00:38:46 -0600 Received: from [172.24.218.120] (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id wAK6cft2030244; Tue, 20 Nov 2018 00:38:42 -0600 Subject: Re: [PATCH 1/3] ARM: davinci: define gpio interrupts as separate resources To: Sekhar Nori , Bartosz Golaszewski , Kevin Hilman , Russell King , Linus Walleij , Grygorii Strashko CC: , , , Bartosz Golaszewski , , Lokesh Vutla References: <20181113135051.15308-1-brgl@bgdev.pl> <20181113135051.15308-2-brgl@bgdev.pl> From: "J, KEERTHY" Message-ID: <63ac671f-b202-2533-3878-af16149fbdbb@ti.com> Date: Tue, 20 Nov 2018 12:08:41 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed 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 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 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. 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. Regards, Keerthy > > > 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 >