Message ID | 20230124071158.5503-2-manivannan.sadhasivam@linaro.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp2010546wrn; Mon, 23 Jan 2023 23:16:43 -0800 (PST) X-Google-Smtp-Source: AMrXdXtRIrHkTTkxQ1608AS8B/vb6lGEOfRjaYmJ2EMIm4Mn3a/w2fSoiO/cFgwbBJLF3z0grueR X-Received: by 2002:a17:906:5f82:b0:871:45b2:19fb with SMTP id a2-20020a1709065f8200b0087145b219fbmr27267066eju.25.1674544602836; Mon, 23 Jan 2023 23:16:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674544602; cv=none; d=google.com; s=arc-20160816; b=NVlc5YLiGiEF4MTbt9wbQZogYtixWy623qrtaHOnuRnfJCC43Ri3srXAZwJ2AJuuro PWhHH7pXFj30b5pMZLIHWA6MtlQ/LIROCXXCx7jtETKYHVDpy9895Cs+5K+qpcWrSOMm wLN82L5zy81cpbj5F9/ianLLwBMd5wxtXzdOfZBN55yK4wdd9oo5aT/h8KGSI4IEbNtP Oyh3Svh+K8eqAqRHZU0aaJha23+K4JzSPoghvUs0RkjDAV0/O7n4qJo2/AFtLJuaJI5e bFXcu5+Lje05/hmC7M1qK+2+4wfxOsUa/aV7Fcthr/1kUPUM1ZRZCSaOnwGKasP53Yis 1oIg== 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=1hyDFi6BwQQxvnWgZlqZn5l8SdU7JiBSKsGQ5Uy8Nc4=; b=xEt7wE626W1RDE5BonKFDDP1VDNFtFRb9yeAc7Gh87w/rYyteLAV2fChm4p18B3IKm uADnTTTecxuIECcywhRLR6cygnHHU3a7rLq8qgluD7l+QJ9iF0QBKehE699Regh8AQoB WPDS5vNXd21HsY93SOgUJvP9kgUglZSTsXMDqlr2PYocfBmYm43cqr0RJL5t4cxy0qNO zA15ybZe6PFkJWZ4zzV63PN1iEKmL+rB3SbDgNMEn6F1TCO4fzbCjKYFI6Hy0yDzya09 FkohsPRObbiL8s8EZhyVLMxpQW07weSQYpkXAGZfG01hPd4/xX21hf4whZBhv7Caa7dh x2eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EMi6+ex7; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id az4-20020a170907904400b008711359b923si1432439ejc.237.2023.01.23.23.16.18; Mon, 23 Jan 2023 23:16:42 -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; dkim=pass header.i=@linaro.org header.s=google header.b=EMi6+ex7; 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 S233442AbjAXHM3 (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Tue, 24 Jan 2023 02:12:29 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45706 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233405AbjAXHM2 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 24 Jan 2023 02:12:28 -0500 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DDAF33EC68 for <linux-kernel@vger.kernel.org>; Mon, 23 Jan 2023 23:12:25 -0800 (PST) Received: by mail-pj1-x1032.google.com with SMTP id h5-20020a17090a9c0500b0022bb85eb35dso8806469pjp.3 for <linux-kernel@vger.kernel.org>; Mon, 23 Jan 2023 23:12:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=1hyDFi6BwQQxvnWgZlqZn5l8SdU7JiBSKsGQ5Uy8Nc4=; b=EMi6+ex7LzvEf+4jAa4H1gDNLyufeXIPS3/cQkdUnOQT3uSqT+hHVa6hxSDUL8gPee Th/9VuQ5pV8OYO1p7QPrpnSsS2KusxlEKxmEovQ2hd8MUrtTgWOgPm8PN9WkwZ/Wao+a 7rWQl7tuLVJRSVVTyyYPzHQF4AFsbAnoNEsnbk0SBx3mbMRbFfbIM5JV8sZINxhQJCtL kWZK94ri9PpSkD2x7ALbqXqp0e9gIKQ3YAiAyDijsMRMPRol57KKDBthJX30QQcgXXMA y3GSdGoWFZD1IwJJaZ40AlZ9GqHXMMG7Wwsdo5fxLCNaZLTozQZ4hliIzeoTzbBZBbsj uI5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=1hyDFi6BwQQxvnWgZlqZn5l8SdU7JiBSKsGQ5Uy8Nc4=; b=bG1LOf3JBJuEHLInn+w+LKQndhuGsMuCYJG/S98yiEl9FKczYkK7nW3ItlvyJyhVgU 4kWc/Uod+z4TCtnnE9eU3usJHLiS192jPvNK3CmBOkNka89Cn9J0PYzYwvoRLLMSDfPA h3USrgZRA9FWxje2b7uVU53RQWBGbBnYEF96jxi6QDhg3IwcyUlJ+8N5SmEwsbli5kfl En7x4DNI7dCFUmziX+5Jp2yQ0pp842bUv3B79pFf+eRF/vxi6MPi5LskMe5BtYwWva7V GmSrif/oM+1DhXUz87OIesNY7z2smz62tVLVjNpzgpmCc007Y4WYU7BK+uXDR4FKyAu6 O4bg== X-Gm-Message-State: AO0yUKW9ZRuAYnGZJXiPOoaUHk3juJ5nCVZGCkUOvK1+d8FtvvBFImOq e7I4zQ/4J5Ll7jgi7sS5GDMK X-Received: by 2002:a17:90a:191a:b0:22b:e59c:d50d with SMTP id 26-20020a17090a191a00b0022be59cd50dmr2804915pjg.15.1674544345302; Mon, 23 Jan 2023 23:12:25 -0800 (PST) Received: from localhost.localdomain ([117.193.209.165]) by smtp.gmail.com with ESMTPSA id 7-20020a17090a174700b00219220edf0dsm736041pjm.48.2023.01.23.23.12.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 23:12:24 -0800 (PST) From: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> To: kishon@kernel.org, lpieralisi@kernel.org, bhelgaas@google.com Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, kw@linux.com, robh@kernel.org, vidyas@nvidia.com, vigneshr@ti.com, Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>, Kishon Vijay Abraham I <kishon@ti.com> Subject: [PATCH v5 1/5] PCI: dra7xx: Use threaded IRQ handler for "dra7xx-pcie-main" IRQ Date: Tue, 24 Jan 2023 12:41:54 +0530 Message-Id: <20230124071158.5503-2-manivannan.sadhasivam@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230124071158.5503-1-manivannan.sadhasivam@linaro.org> References: <20230124071158.5503-1-manivannan.sadhasivam@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=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755887281395837225?= X-GMAIL-MSGID: =?utf-8?q?1755887281395837225?= |
Series |
PCI: endpoint: Rework the EPC to EPF notification
|
|
Commit Message
Manivannan Sadhasivam
Jan. 24, 2023, 7:11 a.m. UTC
The "dra7xx-pcie-main" hard IRQ handler is just printing the IRQ status and calling the dw_pcie_ep_linkup() API if LINK_UP status is set. But the execution of dw_pcie_ep_linkup() depends on the EPF driver and may take more time depending on the EPF implementation. In general, hard IRQ handlers are supposed to return quickly and not block for so long. Moreover, there is no real need of the current IRQ handler to be a hard IRQ handler. So switch to the threaded IRQ handler for the "dra7xx-pcie-main" IRQ. Acked-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> --- drivers/pci/controller/dwc/pci-dra7xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/controller/dwc/pci-dra7xx.c b/drivers/pci/controller/dwc/pci-dra7xx.c index 38462ed11d07..4ae807e7cf79 100644 --- a/drivers/pci/controller/dwc/pci-dra7xx.c +++ b/drivers/pci/controller/dwc/pci-dra7xx.c @@ -840,7 +840,7 @@ static int dra7xx_pcie_probe(struct platform_device *pdev) } dra7xx->mode = mode; - ret = devm_request_irq(dev, irq, dra7xx_pcie_irq_handler, + ret = devm_request_threaded_irq(dev, irq, NULL, dra7xx_pcie_irq_handler, IRQF_SHARED, "dra7xx-pcie-main", dra7xx); if (ret) { dev_err(dev, "failed to request irq\n");