From patchwork Wed Oct 23 05:51:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shyam Sundar S K X-Patchwork-Id: 13846483 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68A95D2E019 for ; Wed, 23 Oct 2024 05:52:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:CC:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=W6Df9hWmrAQ08076ijMn5ZKHMzQjY+l8cvoxpRjtHRw=; b=eUma2Em6O7aCfU Z0XjDtUEEDJVZIDCOdTL1pS4CPwtJSjVu2X/wx9I9/pZ5MbPW9SD3QBVgfB9P6VGDrAWRLRaB5pF9 4PUtc03mq6RWh1bFou1L9VlhkZq37m42iLGLH1LxZbovOSFdWnLuQA2uY+g5ys0ooNb4I5/5uoigO W9y59V+caS2ipAqSSUWiK+2w2D/eiuNUa1M1eA0Oy/Dpu3oHmGYKYgCsM1yzHxg+Q89UhG+R5nOz8 CeXNdaaKrFq2AA5xzDcvvQ47WrultQ4g/T8T4jvdy59fR/oie5XhGvhRIhenuadNLB9+93heltB4j 8CySj8fifFwruGmspr+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1t3UIX-0000000D7Bf-3qdp; Wed, 23 Oct 2024 05:52:45 +0000 Received: from mail-mw2nam10on20615.outbound.protection.outlook.com ([2a01:111:f403:2412::615] helo=NAM10-MW2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1t3UHr-0000000D6xI-3x9H for linux-i3c@lists.infradead.org; Wed, 23 Oct 2024 05:52:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=IOo1Xcztk6kuubV+2zQdcfPGWTrQw0tKW4MJIidI5VmgHUqJ83kTrrQPpPFvMelFL1tVMusu++WcKaj1w7UJEyxexjuus+7BGlP6S47O6zTobXq8WUVRqEotfxAfg+MJ69/oSLYyRxWZowzD0l7/wfqZftK1Y6Ln2xPnd2FuwJd/b4TvmGzbYfyfHmlUc2X5V5TcMPbIhVsEgKCiEKEyh+McLy0iZ/Bw76y9t+M1itjZ9ql9rBFnSktn0MVHKh9O0gdyLl4krFXmRa4VYUcRA0crUBywRwGGKl6dSKea8XomALlN3zqy6rWwKWnGeXBvi7oHkdCo+GFBHkwAcP/Yow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=2eS3WcoEO94epiLm8nqRo+FQ7Vh0tmifhbEMUh1CaXA=; b=iTMAPc5hNXlEpOUunUhuL/qUSeWN/yFbo8GRmHIkwJ8TYXGHKcmfO8Mc2jAEjvakV3qUPR0BeL+0H5qn7wFU36gBGRjeLlmuXszlKXhS0fPNAOXogjApOFR1GGokRf5uMwrQJniNhgcLCTVQDDzcjChw7+Y2inXsn+0S2WJrsKmCxVJGEMBfXkqzt4CeE/F446WSCm7b6qREB4ai+8VCD+hjOwLSheRl9NMBuqgkxq6Aw6GHt5gaDjZbKD1VIkEm5qzw2KgxoPA/rp9vOIH9leCxSsz0rs8LV0C5SYzqZhnj9n4ejcQA4cUArC9CeXPaFDxyJ9ArGzkRY9Mg69IDHA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=bootlin.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2eS3WcoEO94epiLm8nqRo+FQ7Vh0tmifhbEMUh1CaXA=; b=E5jpzhWiBPl7xSmWfra33yufoQx1kp5eWvYr+/fo0PQqj9v3F0uE6G1r985TmyCCaEt0FjUbcHtyIZEf0prkpXM7QDiRdGvDQzsGnfpzyy5V1SmFC6K+aiTO/JGUygilyM/8ecwYH19SMFSHrLzjddHWKyvd1k70Gin54zTlf2w= Received: from DS7PR03CA0236.namprd03.prod.outlook.com (2603:10b6:5:3ba::31) by CY8PR12MB8196.namprd12.prod.outlook.com (2603:10b6:930:78::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16; Wed, 23 Oct 2024 05:51:54 +0000 Received: from CY4PEPF0000E9DC.namprd05.prod.outlook.com (2603:10b6:5:3ba:cafe::e8) by DS7PR03CA0236.outlook.office365.com (2603:10b6:5:3ba::31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.16 via Frontend Transport; Wed, 23 Oct 2024 05:51:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CY4PEPF0000E9DC.mail.protection.outlook.com (10.167.241.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.8093.14 via Frontend Transport; Wed, 23 Oct 2024 05:51:53 +0000 Received: from airavat.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 23 Oct 2024 00:51:50 -0500 From: Shyam Sundar S K To: Alexandre Belloni , Jarkko Nikula CC: , , , Shyam Sundar S K Subject: [PATCH v2 2/6] i3c: dw: Use IRQF_SHARED flag for dw-i3c-master Date: Wed, 23 Oct 2024 11:21:14 +0530 Message-ID: <20241023055118.1400286-3-Shyam-sundar.S-k@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241023055118.1400286-1-Shyam-sundar.S-k@amd.com> References: <20241023055118.1400286-1-Shyam-sundar.S-k@amd.com> MIME-Version: 1.0 X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PEPF0000E9DC:EE_|CY8PR12MB8196:EE_ X-MS-Office365-Filtering-Correlation-Id: 3eabae4b-8b96-4832-ebf7-08dcf326cc24 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|36860700013|376014|1800799024; X-Microsoft-Antispam-Message-Info: o4zBTDn9V6AOAGqJt5fWpgwW66QD3ZuyIJhRFQLeypSXLUEgZTrOHbBxgIQvi8G3/PlLzULOe7Hf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dZE7IJM+9hP2SsL+ogq1/I1vtJw2w9/y58elY1E/mb27KjcorXyuRGZ+dZRT8X1yi+JHTPPdjfhEc9upy+XpRbIrp+qJJZggGuNnQOJsi6t5zmWjqJuIv9969tnbGwsT2kpB0Z+QYFQ8IRy3FLNxsgDycRp8DheSpqfZYWkfWg9x6n0m0HXjHQXO38gz54uLn7eVgCHlzOdsbIblyuXh3tQj4pnnlF/wmvVm0y3L67aG3rUrewH8smOLzByaTjtCnfIy5gZGof6W0w== X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(36860700013)(376014)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2024 05:51:53.7327 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3eabae4b-8b96-4832-ebf7-08dcf326cc24 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CY4PEPF0000E9DC.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8196 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241022_225204_010583_DC6CB896 X-CRM114-Status: GOOD ( 10.68 ) X-BeenThere: linux-i3c@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-i3c" Errors-To: linux-i3c-bounces+linux-i3c=archiver.kernel.org@lists.infradead.org On AMD platforms, the IRQ lines are shared between two instances of I3C. Add IRQF_SHARED flag during the interrupt registration process. Co-developed-by: Sanket Goswami Signed-off-by: Sanket Goswami Signed-off-by: Shyam Sundar S K --- drivers/i3c/master/dw-i3c-master.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c-master.c index 1a7c300b6d45..fd58a95ae1c3 100644 --- a/drivers/i3c/master/dw-i3c-master.c +++ b/drivers/i3c/master/dw-i3c-master.c @@ -1578,7 +1578,7 @@ int dw_i3c_common_probe(struct dw_i3c_master *master, writel(INTR_ALL, master->regs + INTR_STATUS); irq = platform_get_irq(pdev, 0); ret = devm_request_irq(&pdev->dev, irq, - dw_i3c_master_irq_handler, 0, + dw_i3c_master_irq_handler, IRQF_SHARED, dev_name(&pdev->dev), master); if (ret) goto err_assert_rst;