Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp551777pxm; Wed, 2 Mar 2022 04:05:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJx/d8lKrp1PX40wyJp4mPVolW0ZAKgGYzPfG5xM23g4q0swJQt1Zuu0Fnlt7Qr40vTibXK2 X-Received: by 2002:a17:906:58c5:b0:6da:81ae:9eb0 with SMTP id e5-20020a17090658c500b006da81ae9eb0mr165451ejs.611.1646222712867; Wed, 02 Mar 2022 04:05:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646222712; cv=none; d=google.com; s=arc-20160816; b=V+AH9ZqfbSGAiykHZtV77yW1+ezvyEGfep1SeWPsXb0prXoBMisDM/a1mIFn7hotzF fDbkngflke/RS57Qq6QUDLu2Vik3SixZ5sprVZna1K07Cfk/fJxBMFLVhyJ0QsqGJMyi QPOzh6a5HNQSFcG8CDVd1cBDR88gCUDgOUKVSyws/qpVCY+HxQIAsXRQNEiAU344pXBD PUfJpIKplt75cmnmJzE7Nk9N+fxUruV8yP+QSck3rXdVbbWK/7XFjuUQ4EVD4DqlaeJ6 b0DKFZihYj0u+aU84VMk+ZycpDUue4E608GiZ4QSRwkPiEBOYfnZEGq3qfbyErInnoRb E1bA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Nd58NVz8EP0X71bk8hRn43++GIxC42P10sK3Tylkw2g=; b=YrzYANFa6Xb86i+zb/UZs7QbTZeNJxJi72PvJof7P3EE7UYKrfcOLvz21M3cnrCsbY W5JZG4bQopSAc6mS6Av5nuv+V8aX9olN8feECjOUxSW72y9/zFPlfgtaiAX9ple+A3No bSeOFkP7Z3iPpJpXM7d3nG2HYdokDgWY8m4BqOAwvyUSHOAtZ0PBNnrfvivHmLc5FjOO 4/eOzHrE0fN5yK3vu7snH1nEUcmO/8P8ug1CDhX5H8mUqDY5iBbXBCFpmIgqROB9qGek AAGlOgp4SCIXEeQBGNzyZtZAHu83ZFT5reOQ4gEszY+oqMqsIoDCW6y9yyorSwrCQNRH VSyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m22-20020a056402431600b00415c8fb52edsi119448edc.171.2022.03.02.04.04.48; Wed, 02 Mar 2022 04:05:12 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241450AbiCBLlg (ORCPT + 99 others); Wed, 2 Mar 2022 06:41:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233173AbiCBLlf (ORCPT ); Wed, 2 Mar 2022 06:41:35 -0500 X-Greylist: delayed 348 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Wed, 02 Mar 2022 03:40:52 PST Received: from honk.sigxcpu.org (honk.sigxcpu.org [24.134.29.49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3638D8F9B5 for ; Wed, 2 Mar 2022 03:40:52 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 192CAFB03; Wed, 2 Mar 2022 12:35:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Le1pHLclBSLN; Wed, 2 Mar 2022 12:34:59 +0100 (CET) Date: Wed, 2 Mar 2022 12:34:57 +0100 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Liu Ying Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, robert.foss@linaro.org, linux-imx@nxp.com Subject: Re: [PATCH] drm/bridge: nwl-dsi: Remove superfluous write to NWL_DSI_IRQ_MASK register Message-ID: References: <20220216085842.1973868-1-victor.liu@nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220216085842.1973868-1-victor.liu@nxp.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Hi Liu, On Wed, Feb 16, 2022 at 04:58:42PM +0800, Liu Ying wrote: > 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); Works fine here. I thought it was due to some hw quirk but can't find any note in it so: Reviewed-by: Guido G?nther Thanks, -- Guido > > return nwl_dsi_clear_error(dsi); > } > -- > 2.25.1 >