Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp337858pxp; Wed, 9 Mar 2022 04:07:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT5yFTYraNhl0XTazbjr6QVTMaA07qvBAFCFTm2+yM4AEDUEfXNxdUb32XJrz2kZT5v1PC X-Received: by 2002:a17:90b:388e:b0:1bf:49ca:2fc0 with SMTP id mu14-20020a17090b388e00b001bf49ca2fc0mr9999415pjb.226.1646827627541; Wed, 09 Mar 2022 04:07:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646827627; cv=none; d=google.com; s=arc-20160816; b=vCZ+I5y31vWHsMlTilqohFPVKXZ3TWoceAT8LTMAigQRclbrLHHHGvOEcJCqOKrsf+ dfjF7LRVl1m31g7Qy9E7L4ApwLlHEXg1JHlCZXWm2SV7HD59LJwzl6ouWE0/SUEweE5Z YvXJE/xA/vFnYLR66hoYnezfKgd2W3LidFcggYOvxGLpKfE7EkNshNLdxkDN1QGvwFPv 82Z+IEGtLzuHLvT59Uz0vdT3qX2QZrSK6EMhzzgSiuj74yVwre/Kx4a/cBcTZR/TDCIU mJPRZVJX8ozm4TEwJArLTHSLD/rPmITa5WrwjRYIOP/ak3Cv/yW2BbPflH44ewG9rpgG fl6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:content-language:references:cc:to:subject:from :user-agent:mime-version:date:message-id:dkim-filter; bh=AYVKbzioBKF7pKIGXXM02QtLQKGqY+srkajgvHJxMxE=; b=nbHxkjUzu5L6FZunNpZUaDV2hztYUMzvQvYg5S77OQJQMJAENtbA9vxxMs2ovdoC9/ dCGNE2Ze0mO8+ewqZBh5Ss+1s63wWiEARB2Ve5Lrt2btkvlV4+xALWy7hwX8vP8p709K ehU7LZwcLhGBqo5HSL/5HPgOlkNqy8ZLOsUAcVds7LWtdUQPp21Qavd+6y6JSVzElKmu iyBZzbzYrWaPr8TPKcr39/nTBOsFE0Zdie0v53IRDXkBua7CTWmpgPVYrW5Bf04SI/pK ZIGLPvH/Yr/Ej62rSuWxWX2eHhGQSYevtY0UIVLgPsHhpdksgQexihCxOdfme6OV8cKz LjcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i22-20020a17090a059600b001bd14e01f65si1757653pji.83.2022.03.09.04.06.47; Wed, 09 Mar 2022 04:07:07 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231484AbiCIIw2 (ORCPT + 99 others); Wed, 9 Mar 2022 03:52:28 -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) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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