From patchwork Mon May 30 07:47:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Qian X-Patchwork-Id: 12864367 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 20CA7C433F5 for ; Mon, 30 May 2022 08:04:34 +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: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:In-Reply-To:References: List-Owner; bh=KeSAUQskEEXmwBihyHhWhw406LzqClc962vcGm3zR1E=; b=ZER3JtLqpIzu31 9vApWexWxdlhG1982avkIAL/F2DBQe83f/LbfQL+rIhTAJA72cAaZ1Y36Giuzt9y1+/bZOtJEJdtK b5d4zCAhZn4Z0h3fDTH+n3DeGBsTAMCMnxAZcXarhzCXl2AtV3o3mXg2+JXzU7dPPykoVC6Abecfs AoF8NrG7xuTYnf7sTlME5kFjR81V3MrJ+pi9vJx7HOHQraPZB32OXOpF7WaWWx+TPN/fe+nIBmg8t ZciZofDCz2SQGYz4Zeq2VHheql5wypzsRIJuJ1Weh4oqu1hkYJTMigap95VjcUhAfNWCEAux2IW1x CPl9aybFkCxJvEzAb/3w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvaMp-005pXN-FI; Mon, 30 May 2022 08:03:11 +0000 Received: from mail-am6eur05on20600.outbound.protection.outlook.com ([2a01:111:f400:7e1b::600] helo=EUR05-AM6-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nvaMm-005pWA-Bm for linux-arm-kernel@lists.infradead.org; Mon, 30 May 2022 08:03:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i0gmVX5UNyFk1UkuZiNyAwnsVxjnETDm7cTad0uJ/k9Ej6aZAyj0MyfSeybEgKOE4vGokcsC3m9eKoDboq25GUIQ2UJR0NxKWli+aidnhZsIwKXflfohH/R3t8Y+o4BEpqTos3zIuOY6HFJbbnlBs4bU4z25ciXXfxMXy2+wtXa0tLStrEH+p3M0mYB+da1Jvc7O3XSnF/WeebVt6nLR2tShfMZAJD8O9OZhkjxhSx+VcQvWAf5furPdNhj33FxpisKTLUypZcX3hTaMdADeD6upVGMOceW7v9P0KTiarX0qquch4srDqD1xFJrDbQYuGFmaz7gb/1NaZicXME0/7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=1J5FeEi9RojFrcKDnPZHW0Ccpa/LtoF3FGam6JHrsSc=; b=QJQlIJ8L3meDKugpBT1992jQaWnIJukhOiik/33+CEkDXZDdphRTGL1kBf+wqKy4gq783KEQMJYkqA+nOumPE31M5gbsbcBZKBNTFG6CD+BndoFWUtpjCKD113tFd3nGG1MEHuM2CjKRB8xSR9nB1OW0LF6yQKVLl11azb47wapnJEq9lqs3ycnONvWqS77jDHveMcCMzzWdY+B4Kxr40VWCoGC08hUglosG0QBVpK9k1THKRzqcgPV2wdA2uU7/PvbQEF7aW8n6N1N8CmBu02rlpqfWIQtUTXx0guxq1SwuzZStlPhMcNwSxGYe/w0r05FzBPwTBPPFl61Ajn0CoA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1J5FeEi9RojFrcKDnPZHW0Ccpa/LtoF3FGam6JHrsSc=; b=i8o7cEdCCicoGNPINDaOBTJCWWvn/gCsujSniwjC7sv4L2SJzjCOLbhJH5A0PUXWp7DHomqREi20nK9CCJ/BwUDl7a05vw3N71BHHGE5yp49gB09BzEdFwuaDe+erZgNYln6XwKL6lwDZnDtABcmYnT7dG6kKTTWzihYGUosFc8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) by DB7PR04MB5452.eurprd04.prod.outlook.com (2603:10a6:10:84::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5293.19; Mon, 30 May 2022 07:48:11 +0000 Received: from AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::bc48:7565:c619:62c3]) by AM6PR04MB6341.eurprd04.prod.outlook.com ([fe80::bc48:7565:c619:62c3%7]) with mapi id 15.20.5293.018; Mon, 30 May 2022 07:48:11 +0000 From: Ming Qian To: mchehab@kernel.org, mirela.rabulea@oss.nxp.com, hverkuil-cisco@xs4all.nl Cc: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v2] media: imx-jpeg: Disable some unused interrupt Date: Mon, 30 May 2022 15:47:56 +0800 Message-Id: <20220530074756.14585-1-ming.qian@nxp.com> X-Mailer: git-send-email 2.36.1 X-ClientProxiedBy: SI2PR01CA0019.apcprd01.prod.exchangelabs.com (2603:1096:4:192::12) To AM6PR04MB6341.eurprd04.prod.outlook.com (2603:10a6:20b:d8::14) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 091b43e1-d142-422b-6446-08da4210bea7 X-MS-TrafficTypeDiagnostic: DB7PR04MB5452:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: /yv/aFM4NBX6b20HNK0hh/KunDUZxOCIcLUuok3SElbL1WZZJZPcG6gy+sWh2TqJnG4qj1Vz7a1yFzmD5vVCaIk+9KLccX+IjVml5pwnevIxunbNenkZAd3D9/jdpdx+3Ag1FQSOioji4vU6vAK/fjTBPtLdD9KWVnFOzZhu3tDWR2R+s80tSUO0kzL2HEeGJ9ff90e/tC+4bRGa1hRSUVcI5rbNFQmQebMdHx8aXxJtNkCnCtp37aI2MtAa0iFG78Ts11h6VLl8gKlhsl0+v8xb8sjJJ+leAzlt6TgPjEbKyh5GPmwGv4LTMGh7jXrLhrQpw5gRJ6PeKTGf7GHhuBSRh+5crj/8FCchTR6B2BkLkcEuuy6tGrPYgUNukfu3tD8M24jpEc2hv/Zoa32vUU3gS2EnnQrFmZCderb5kmTwW5z6SnwGXVoa0OH5+nXR+OKCfkN4WO/myEopBXaiHNF35gkC/Nay7rH0BuZQOvsrVdamu8xN8HNB+oYy7agrKK/dYCgl3m3q3mojItbxkxDCrnf4CeUHm+ykN1OZLvf9UoFd/SHriHd/TBCNeCpfUqKCBXl/rv0i/jxUS/aR1sWkGDazHYhq8CpFq+wkWML9J8LzYCsE7wVATmCS+mrZXpkIHRrAI6AGR1O4DIUSs95qBgb2byVKxKKvVGHnczbBusBRCEhgegJ+Cebv2FmuRUrD33h7UB9ifM1Bi4rt1w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM6PR04MB6341.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(38350700002)(66556008)(66946007)(66476007)(36756003)(38100700002)(7416002)(6666004)(316002)(8936002)(1076003)(86362001)(186003)(5660300002)(52116002)(2616005)(2906002)(4326008)(8676002)(508600001)(83380400001)(26005)(6506007)(6512007)(44832011)(6486002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: F6qYULY7aIB0bhyVe3k4N5GRnmf8/XfffT7G9cbH+HCSt1mb79ngy9q7f6R2/fEIGIVYnfHk+ash1/cuE+us+xZbWSxauLrqfOHP8/oSSax/o2+6z4Pxbkl6PNPVsTYHecgFFQUlVbdqBpjbGxSVYAYcY9Q58RgjWmj1pLKkCd40KKquSU1Vz3vVTLbSO5c2R+6U9rkBJlvrQWdmyaQ5ndblqFMwkLEktSCJ/xaN4XXHgHLB8wwqvvOi0yyhgvH4X3TFyRAFtMSXNRru3/0Nv33RlMoy03Lk7Zo4Tg2uAlqWFNR6IzyJF28r+u/OLC+KQ3kbm6mmUm43HaJR6hHF+hXZSNtWsh7G8n7mixbzU2MELNWvc/8xURvXnm5O+RVH5zikvDzilWiNTS/VkA39EM4fIW+hni0QE6XmI0ua3bWnDFYTXDJO82UG+1Yz44SmR0NHHGUNLfHUcedy7/BdHeUQYrU0yyXk7gbCG3C+8RBKJizO5Wi1iqqMMOHMGJ006cdDNsoUtTqEa2HssxnHFXo1jwCvVIOE7QjRfp2TA2/1fG7m6L7n7b/lTORxEzcNJmkn3eDxsMAWJTDgo7pplgN8RZCVKKQjsQGD6QCBMrJKfy2OUIpigVmMqdnHdgMnjNFDAr4IPo0vc+DMi838x9SpVxkMLZaJUc7smV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-Exchange-CrossTenant-Network-Message-Id: 091b43e1-d142-422b-6446-08da4210bea7 X-MS-Exchange-CrossTenant-AuthSource: AM6PR04MB6341.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2022 07:48:11.4710 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: PV7oXLafYolwSLIXxm7CHwxsFtW7qtCvJ3yOkPT+1eoJlM0LGVXUYoDhICm+nnuBaYzCFU0vMjiiBvhE6bwKag== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR04MB5452 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220530_010308_617354_112CFFB9 X-CRM114-Status: GOOD ( 10.78 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The interrupt STMBUF_HALF may be triggered after frame done. It may led to system hang if driver try to access the register after power off. And interrupt STMBUF_HALF and STMBUF_RTND have no other effect. So disable them and the unused interrupts. Fixes: 2db16c6ed72ce ("media: imx-jpeg: Add V4L2 driver for i.MX8 JPEG Encoder/Decoder") Signed-off-by: Ming Qian --- v2 - add Fixes tag drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c index c482228262a3..258fbee7ab66 100644 --- a/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c +++ b/drivers/media/platform/nxp/imx-jpeg/mxc-jpeg-hw.c @@ -76,7 +76,7 @@ void print_wrapper_info(struct device *dev, void __iomem *reg) void mxc_jpeg_enable_irq(void __iomem *reg, int slot) { - writel(0xFFFFFFFF, reg + MXC_SLOT_OFFSET(slot, SLOT_IRQ_EN)); + writel(0xF0C, reg + MXC_SLOT_OFFSET(slot, SLOT_IRQ_EN)); } void mxc_jpeg_sw_reset(void __iomem *reg)