Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp2328010iob; Sat, 30 Apr 2022 05:50:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2dD5+9zC9Qm4A57u798/uODPyZbcnacP+jvkBVmmCSa1kicX43r/U/orYhID9exLXC6Ge X-Received: by 2002:a05:6512:2097:b0:472:127:35c1 with SMTP id t23-20020a056512209700b00472012735c1mr2862095lfr.578.1651323002792; Sat, 30 Apr 2022 05:50:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651323002; cv=none; d=google.com; s=arc-20160816; b=Tg7hukltPshx6pyDhCoNfV7qN3TJ9bszR/mrgP6Zb6pKNSsQ+s7e/I1GYL0vGMeGfv LjXuZL5iFk+tyqMVl5lVoQq8Q4eND5P2ZhCZsSsdhDwbcodIU5cZZoc0Cj66MbJcEOTR PB5kDNeCDmSi+jZ9bpfyS5dOl6/KAQfPCgwrRcGkkn5AuxjBZqZlo+sbxYY7WEM2LDHg lvQRLBNNkJXUjXBOEkPnTwrvm7+fqIvn0X8C0t7wgmuRARCjbtGvmpbKXYeZYB9KagLU XXKsIwsUpsRC6ko5TzdpC0J7R1exq0I33/z6RYCMeJp+Ii9NRVhhILPqvq5kIo5+MpYx O0zQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=vYT8fSjJDS96ejvL4hWH6OGbqvNo7Bl75pPdJ8Clt8Q=; b=JVq0IXGqn67OMCX+4NwolL7gprCqgrWJTtNIk0oaTebTC95tJ+aEA53kCFQ4ZbaqUD FzJ+ypb1MW1xBKPLLkzbvhc+H5GtSM71FFoVA6YGbHaWAtCJ7EzlfJ5KlCL65INcFqDH 9rNfyjFKX2tWy8nsQwcN3NOlMQ2Nyj/zuETMKsodpl0RcEn0jFLqLy8NBDm8f8QtPsOb nMKrga/tK5b2xWEf5/r3u0cTl2dZsfxjBciA3aU1RiNDzMPUxwhTJdrl/Hcz6nN30Aw3 lrOohtYlsXD+/imaN/bK27r/dCXjoVXBWzCp+rx8oQ6pPYS5sOaE91kY7kyilhgW3Fto LIvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X1PPNDQK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bp24-20020a056512159800b004724198455fsi1431055lfb.109.2022.04.30.05.49.33; Sat, 30 Apr 2022 05:50:02 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=X1PPNDQK; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379318AbiD2QyU (ORCPT + 99 others); Fri, 29 Apr 2022 12:54:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378896AbiD2QyQ (ORCPT ); Fri, 29 Apr 2022 12:54:16 -0400 Received: from mail-wr1-x434.google.com (mail-wr1-x434.google.com [IPv6:2a00:1450:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24421D64CA for ; Fri, 29 Apr 2022 09:50:58 -0700 (PDT) Received: by mail-wr1-x434.google.com with SMTP id x18so11588669wrc.0 for ; Fri, 29 Apr 2022 09:50:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vYT8fSjJDS96ejvL4hWH6OGbqvNo7Bl75pPdJ8Clt8Q=; b=X1PPNDQKAG13Y3seC/DVsjwFByyQB7u1UHAUbk5/FTjrwIoP1zNGI4z3qlUypkLfaU qTBWLZUDMpgXLfpDd/Yw/xGYOJTjLEFUKF02xhRouYewSy9P2V3+qWQ4XuWS8lGQsiVU wdlJIYpMfGaVGmxJ2qnWUKcmsCyPJF7S0ejDhGHcAlNGPtqmX72f8imGj3EqKmRQiLgW l7xQ0UquRMUrXGc1+1OLiTEsaG5tLcD9M9Jn/yMgPz2DEAGZ/WCfu++1tsYkMxiCgorX P7Qi93v84Idr13gj+W6zKMBIXa3VY5ZLwkx81o/MHBQwhU+KY5RbMpPmiCh3mnZEiN9X 9yIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vYT8fSjJDS96ejvL4hWH6OGbqvNo7Bl75pPdJ8Clt8Q=; b=h7Gtjl8e62VEyAPKZeWb0t1Vmtl8peEnReq4/Pa3VQzL5X4pcEyiqBMOyYMGGqjUtR jS7giuqlqhgn2k8Nyu3//70PKAB3lZG/WRo8M6Wep6dI+Jq6QRXxsVOb4R4iqQevo0/7 +5jsvZ4dslRM1OqiMjBlGw930Lyom1PGPHE+EyHyjo3owh/eNByvB4PYfJLfRcwMNHMv 5Nw0LRTEEXuGubALrMCyq3DF5h6qy2uFRADybQgCXGbW903kUd0lYhnP6tjTxmkwX8WE +cYVpE0nMNwSGdg+GfNxG2nF/KxfKHFFewZeW9T8NhiVESOCGgPeJgR2jsOPGcp48aq2 asUw== X-Gm-Message-State: AOAM531ZKmh5mXELWUAaOjuQjiUpCVD0J2kUmAR3oFU3N2KVDamXe9dJ IXeetfh1xtlshFrx4sA2/xQE+g== X-Received: by 2002:a5d:6d50:0:b0:207:c10e:911 with SMTP id k16-20020a5d6d50000000b00207c10e0911mr15640wri.137.1651251056768; Fri, 29 Apr 2022 09:50:56 -0700 (PDT) Received: from srini-hackbox.lan (cpc90716-aztw32-2-0-cust825.18-1.cable.virginm.net. [86.26.103.58]) by smtp.gmail.com with ESMTPSA id a16-20020a056000051000b00207b5d9f51fsm2848941wrf.41.2022.04.29.09.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Apr 2022 09:50:56 -0700 (PDT) From: Srinivas Kandagatla To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Lad Prabhakar , Steev Klimaszewski , Bjorn Andersson , Srinivas Kandagatla Subject: [PATCH 1/2] slimbus: qcom-ngd-ctrl: Use platform_get_irq() to get the interrupt Date: Fri, 29 Apr 2022 17:50:50 +0100 Message-Id: <20220429165051.6187-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20220429165051.6187-1-srinivas.kandagatla@linaro.org> References: <20220429165051.6187-1-srinivas.kandagatla@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 From: Lad Prabhakar 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(). Signed-off-by: Lad Prabhakar Tested-By: Steev Klimaszewski Reviewed-by: Bjorn Andersson Signed-off-by: Srinivas Kandagatla --- drivers/slimbus/qcom-ngd-ctrl.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index 7040293c2ee8..0f29a08b4c09 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -1526,13 +1526,11 @@ static int qcom_slim_ngd_ctrl_probe(struct platform_device *pdev) if (IS_ERR(ctrl->base)) return PTR_ERR(ctrl->base); - res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); - if (!res) { - dev_err(&pdev->dev, "no slimbus IRQ resource\n"); - return -ENODEV; - } + ret = platform_get_irq(pdev, 0); + if (ret < 0) + return ret; - ret = devm_request_irq(dev, res->start, qcom_slim_ngd_interrupt, + ret = devm_request_irq(dev, ret, qcom_slim_ngd_interrupt, IRQF_TRIGGER_HIGH, "slim-ngd", ctrl); if (ret) { dev_err(&pdev->dev, "request IRQ failed\n"); -- 2.21.0