Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp649943pxb; Wed, 16 Feb 2022 01:00:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJz2deL8rknuN+rLPdL9U2TNqiteaHnSBcerVme4FaffXQYrdqx5MW4cBjmhT0DFHYCY6UzN X-Received: by 2002:a63:130a:0:b0:372:e02a:5010 with SMTP id i10-20020a63130a000000b00372e02a5010mr1464824pgl.144.1645002019833; Wed, 16 Feb 2022 01:00:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1645002019; cv=pass; d=google.com; s=arc-20160816; b=mWADPA6ke6LQPfusuAhn2i7h4Y4hgTVWtixdjTEAZTE4+//QuHlsXkAgOA8yUuT7Bl oAKmEMqlOUSHNbEzXSSu/pwQIJVPRKIRmw5aAK5Um9SV/7y4/vXK7V0bAxo4sOtxSLXG 2EWTDxKV2pRvAOR09SAHvnE5zUojl5kvWh+mScilbSQzR2tW2v3sNRLQf2Q+huLemp2O ET3dtq0+hS2h2nkMY27ikrbSc+hdLOEEJEYOJqklgceWXQXO5Ni2gHvLJI3XFFSBux8r j4IpLPn8SELdH5PFc2Dy3umwRQzk4DRJfRhEVQMvpc5ZeO9T/uKV3M7AD/u9b6CuzI4X IP0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from:dkim-signature; bh=VOnawplqAuAvBAeYlX8xriQ7Rq6wHLANn1LuB6a9yy8=; b=JhI7S+V8lsBXlr3kfQ8jiilckf95Jdj23VfPgjH2I6MOC/v0nGWl0o6/eF4UX6SJJz WC8DGKA+7vOz1Oh4oNCaMH/6ycAImULOrlNTwRHn/nqMR/KYhWcOgLheDmDsV8ZD6LKl DkjvwxTHBHT7ODM9czj3RUGD0WXxS5sMzzoF9FgrhvRI0NcrD3yJy2cO4piShNjaaDyA jEZMGFxt2Bhv5Ty/rdfGmcggK8q97We1dvnf4dYjGybLtAMQ55fZGRnfLUNkRfWhDOGA 5/jq/yaDECMZ+9Fx0RXOep6unNlivf81V4KBHfUH7Log1zKOLqLE1+zETiEJ0tP4RQD5 CtoA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OVoyBuRH; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q2si3272158pfk.174.2022.02.16.01.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 16 Feb 2022 01:00:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector2 header.b=OVoyBuRH; arc=pass (i=1 spf=pass spfdomain=nxp.com dkim=pass dkdomain=nxp.com dmarc=pass fromdomain=nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5F4472AC925; Wed, 16 Feb 2022 00:59:47 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231206AbiBPI7z (ORCPT + 99 others); Wed, 16 Feb 2022 03:59:55 -0500 Received: from gmail-smtp-in.l.google.com ([23.128.96.19]:44866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230518AbiBPI7w (ORCPT ); Wed, 16 Feb 2022 03:59:52 -0500 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2051.outbound.protection.outlook.com [40.107.21.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 925822AC917 for ; Wed, 16 Feb 2022 00:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=R6WrWP/hv+2FDmWK37kaixbQdPKeh1BR4tErh58D3mS1m4+MWSEukIViRFJhm19BcczSBjHDaKrDE1+DW9oWBBTMQDk3VFvr4yo/99s98h7fDD4Z0ffFRFeIKPJ6XCGbqBt3QYUrbW7D/cMrhmb0bxJ3hIR7E+kz/oFNKSYoQ4pRCrSve9LjZRNcuAPggiOp8D33x98UAW6o3BXSKY8HyoT+7up6fQWW+YhErmlSduArKhJdqw0XoXQtUvz3kcwSI9jQEkkzLdp4VHYny8UBRoBGrMKh/+Dk7t5fCriQ4zLde1Ixt4urFgchHfJRzoIoY2w4fwQCIOy4Mk/RsUdFwQ== 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=VOnawplqAuAvBAeYlX8xriQ7Rq6wHLANn1LuB6a9yy8=; b=oFvKZoIxxd94iNJam5te675fEFbM3DoQiOcdA9+mzbqsW5v39xg3Osh8rvnwLX0KcGJ/qF5Ph3QU2MdBrqUMNtFJS4H0qin4jRH/Zd3ZzU20Nduw9TvDqS3Uy57BsDTCUkvMlgy0uXA5ybjEALzXXR8TLaPQ+XtczpcO+hhBkBjMzcIwV7Fdfi84JWsKc1yd2xUKP0WtuLdE80x5zsoqZXfA9DQn3kZ+MV4vAIxA1FYfqBiVIWIf6cvOVKeeQGINHGi31xzhJhovoaa4Y50XyGFOwjKB9G2BkUaUJ2yUzS1Ppfs5T8iH8XriuxfCAbycCa5sA7eBdRRW1Ycls7+r6Q== 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=VOnawplqAuAvBAeYlX8xriQ7Rq6wHLANn1LuB6a9yy8=; b=OVoyBuRHw53ZtmnGWIIVTF5IuA9XKm5dh6qvtEkxvMo9n2O2M3pb3z137sdRs0fsWkCkqxzjHWNv61ntYYDZRRt10eilmc06fueHD3Y6cwCXoFc4gPnny5XsbN768OESG1vAM2JjnPmHvPJYKK1yXErnCgo8UnG8vSxz12W82go= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com; Received: from AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) by VI1PR04MB4078.eurprd04.prod.outlook.com (2603:10a6:803:4e::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4995.16; Wed, 16 Feb 2022 08:59:38 +0000 Received: from AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::ddca:beb1:95b0:1ae1]) by AM7PR04MB7046.eurprd04.prod.outlook.com ([fe80::ddca:beb1:95b0:1ae1%4]) with mapi id 15.20.4995.016; Wed, 16 Feb 2022 08:59:38 +0000 From: Liu Ying To: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Cc: agx@sigxcpu.org, robert.foss@linaro.org, linux-imx@nxp.com Subject: [PATCH] drm/bridge: nwl-dsi: Remove superfluous write to NWL_DSI_IRQ_MASK register Date: Wed, 16 Feb 2022 16:58:42 +0800 Message-Id: <20220216085842.1973868-1-victor.liu@nxp.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: SI2PR02CA0041.apcprd02.prod.outlook.com (2603:1096:4:196::20) To AM7PR04MB7046.eurprd04.prod.outlook.com (2603:10a6:20b:113::22) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7378318f-5d53-49c3-ad30-08d9f12aa910 X-MS-TrafficTypeDiagnostic: VI1PR04MB4078:EE_ X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2089; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ItmIqHp4FRBVUC2vfEAdWX2Y3gd3aF/8206Z5/5g22U6i/XkkYCkC94IA2ugqlnp78KPcWLSip1j5+oC2c0f23AjRVENNUQLZBXfBEn3AbuaeP0ImUKC/lDPM4RSBUevWaDjNFrTZnyWPfTFhKJ7/I5yXakkAmgZpVcY7Gls5O48nYaalfUDWORHgfBuwLeI+GhM/uCt0YB2jIHLehe/tSB+HppnlICAjwSUZBqdJJNr5wdAbiqYs0G0PYQHjfLFnG3cEd787AMTAgl7fX01x1glgkWjxJeY1lCaWhvDR174DccMSs/MGARTuRQ8L+NjSRGls6YtrawsJRCWB/Fra7QVHmXpbOyYT2vbdf2eSqKHSTbil2uQFElokEYAt/BvyoxHmoSEf6Oc4RJvLnz6TI0Xc8BRo6MKvQ4PKHOp0qghq9MAs3e3QuaGs4ZBfUMH2KS077lrrN/eFW80ZXWAuEkYcw93GN7nshdbgBqmm9szIHZqWO6BPATg77ZdyyHS5/P/JTTSKjqgbUZ0t6V3ZCxIiEYSPhkgPghuszKcQe+2goB2GLtXxF+HrqEXF1e7UQHnQ+IM6Nx4cuC98uaPwuNxtROrKtb1X3CZsGuKqBE8GwMeQxf77xgoQIsGPBRw57foBaz11OUAbZj+Wdvqfo+ryemys6LUWvMeLCUcBDhSULXbjfYLHgMjfn8fDCDdgl0jkYkwensj+Yj0OnnC/A== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM7PR04MB7046.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(6486002)(508600001)(26005)(1076003)(186003)(2616005)(38100700002)(52116002)(6512007)(6666004)(36756003)(6506007)(8936002)(38350700002)(66946007)(5660300002)(8676002)(66556008)(4326008)(66476007)(86362001)(316002)(2906002)(83380400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?Dqis+ct8IK+K1ZTngO9z2UbKm4MYmS8hMQp9iZ23FLVDW1ltOWAEHiRoyitj?= =?us-ascii?Q?moc2hn9wj26HtLkfz4OzdaBwDEno/LnIj15oCeip/52OYmS53P0jCADEDR3Y?= =?us-ascii?Q?kFNGGvzECWsPC+7sjTArOcXIYeCbRnVjiNJpnQ7IXAJK8U9Xn3PxhMLqp7cV?= =?us-ascii?Q?MNyF1j6kuEm/kya3sT5SR+aOE6UiDe2d6eg8lnd634KW334IVP2u09QB4t6A?= =?us-ascii?Q?LkvXUxgLLSMmMmlFV8jAnva5nCYx0DLL3l91Xpoal5fnWBBdqtnRO2oOqx9x?= =?us-ascii?Q?8SqqN7wuaWb1YLMc2JO11gPsPZBqH7yy30Y+ayc+BDxJbjPXoSzcgxCiDbjI?= =?us-ascii?Q?XJeJCFX5jfr0H0FBiHp0c1kt2MfG5iiMGGwHUEiz+5HWmbrcYzIqY5Gppyf4?= =?us-ascii?Q?k8R6aVjFL7+ZeImgPSLZQFUO5ycFNdeipSmss9qNYKxd00R4D9vXGq6st9kQ?= =?us-ascii?Q?AcaIy+Ghcm84J8qY9OUCJIUFJ/GkWs4ahV+5pvZ3ZZmFr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tvkOO6Yc/MgzG5FemMIeTNpj4Q5cqvapbFHTdY?= =?us-ascii?Q?C7Gyf7KUkcBI+Ed20E0XFhBR6tgDARcvM6IIyYlAzPtwH0r2dQErGvt58TL+?= =?us-ascii?Q?pxrxL+qddDoUrQhMERQsXnH3CS4UuAxGgJTg8bvOV/+lW0i4kfh2zWybo4t4?= =?us-ascii?Q?9nIfI5aHcgG6oNWZkcjLdaOBsgDqsvAbWFT8o2zNK5Rd8/VdE+q1sGX0rT5Z?= =?us-ascii?Q?9BVnxNS2rC5dj2PBRRVjMN0=3D?= X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 7378318f-5d53-49c3-ad30-08d9f12aa910 X-MS-Exchange-CrossTenant-AuthSource: AM7PR04MB7046.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Feb 2022 08:59:38.0278 (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: ABcY6EPFsZh8MfbT8TbYiH7RxvVMU14JwnFsQJa8hw0fCUIgnBrXTaofjadGSrhXeYrTQN8Afhr+Nq/iDIKvTw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4078 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 To initialize register NWL_DSI_IRQ_MASK, it's enough to write it only once in function nwl_dsi_init_interrupts(). Signed-off-by: Liu Ying --- drivers/gpu/drm/bridge/nwl-dsi.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index af07eeb47ca0..fcc4a2889ad4 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -333,17 +333,13 @@ static int nwl_dsi_config_dpi(struct nwl_dsi *dsi) static int nwl_dsi_init_interrupts(struct nwl_dsi *dsi) { - u32 irq_enable; - - nwl_dsi_write(dsi, NWL_DSI_IRQ_MASK, 0xffffffff); - nwl_dsi_write(dsi, NWL_DSI_IRQ_MASK2, 0x7); - - irq_enable = ~(u32)(NWL_DSI_TX_PKT_DONE_MASK | - NWL_DSI_RX_PKT_HDR_RCVD_MASK | - NWL_DSI_TX_FIFO_OVFLW_MASK | - NWL_DSI_HS_TX_TIMEOUT_MASK); + u32 irq_enable = ~(u32)(NWL_DSI_TX_PKT_DONE_MASK | + NWL_DSI_RX_PKT_HDR_RCVD_MASK | + NWL_DSI_TX_FIFO_OVFLW_MASK | + NWL_DSI_HS_TX_TIMEOUT_MASK); nwl_dsi_write(dsi, NWL_DSI_IRQ_MASK, irq_enable); + nwl_dsi_write(dsi, NWL_DSI_IRQ_MASK2, 0x7); return nwl_dsi_clear_error(dsi); } -- 2.25.1