From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20CD0C433F5 for ; Wed, 9 Mar 2022 08:51:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231501AbiCIIwa (ORCPT ); Wed, 9 Mar 2022 03:52:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230520AbiCIIwY (ORCPT ); Wed, 9 Mar 2022 03:52:24 -0500 Received: from mxout02.lancloud.ru (mxout02.lancloud.ru [45.84.86.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 15D17162016; Wed, 9 Mar 2022 00:51:20 -0800 (PST) Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout02.lancloud.ru 00A442323C37 Received: from LanCloud Received: from LanCloud Received: from LanCloud Message-ID: Date: Wed, 9 Mar 2022 11:51:10 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1 From: Sergey Shtylyov Subject: Re: [PATCH V3] ata: pata_pxa: Use platform_get_irq() to get the interrupt To: , CC: , , , References: <20220309072834.2081944-1-chi.minghao@zte.com.cn> Content-Language: en-US Organization: Open Mobile Platform In-Reply-To: <20220309072834.2081944-1-chi.minghao@zte.com.cn> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.03.2022 10:28, cgel.zte@gmail.com wrote: > From: Minghao Chi > > platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static > allocation of IRQ resources in DT core code, this causes an issue > when using hierarchical interrupt domains using "interrupts" property > in the node as this bypasses the hierarchical setup and messes up the > irq chaining. > > In preparation for removal of static setup of IRQ resource from DT core > code use platform_get_irq(). > > v1->v2: > - Use more specific in the subject: ata: pata_pxa: > - Switch to returning 'irq' > v2->v3: > - drop the unlikely() > > Reported-by: Zeal Robot > Signed-off-by: Minghao Chi Reviewed-by: Sergey Shtylyov [...] MBR, Sergey