Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp327092pxm; Wed, 2 Mar 2022 16:28:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJxL/pkdTv/HowWnmotkORKsMU18i6OHSr59fI5hsNb+64nttjn18YXtv9eK7tJzTl2+ztVZ X-Received: by 2002:a17:903:2292:b0:151:a0f3:da7b with SMTP id b18-20020a170903229200b00151a0f3da7bmr3212336plh.95.1646267326284; Wed, 02 Mar 2022 16:28:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646267326; cv=none; d=google.com; s=arc-20160816; b=cy47zdKaz/f3C+friZ+tnhwE8w069ReLr5rk2K5KDLdtVEmIyEVIQRhuwK3yvq8o09 WrX3LvdCMS499LXqKcwmLnxBpYakV0BmtV6GzWGiR4EGHiFYmbfIfy8c/UeESpiNkD/6 wMLmO2SaM55XtNOr69CY+XMZKkPmoKduF6+qwgGwDbS961IYxAtb3aSxhKDc2EMMf1l1 Xr6r8UJAQaGUZ1KQ//AQKbDozZu9PbeqXOfHAvyBm5CUPP2O3Irwc1qgT/khqlsa71aC qL7NhEv+Cyvr8Uq4aQ+DUEVoyoWt8xjhkGy4FQFgd+PppDoD2vH7sqUtzUooudW1PuX6 7mHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=iFzdXtEzQ/C71Rve7zBflg7ThV86ZkzCxCmfW7T42tw=; b=NUKMCmIt1/+HIwUQtn66UUKUX1lwe9LuTcjIjyKBN1ojkUO3w8NwDPkt7+6meNnZk9 FCmhNlposc60l0J2XIbAMDqGHs9f0IN+RjMK7gaxaswoLyDUPGyN5lfBF6qy1ABaA8yB Rua5rdItWLb0T6iDXJWnY2cJi8jB6vzRPeHRidTpo7E0+zo/6H5FgXNfc+IV4WWmWguy bfLJ/ZLOG/U1sLRl4P0nQ959Kr6yCncy+PKIzC14XHINyiR4xs9d+4kYJdgPX3W7vr3t mPsvgnAxkC/+h0f7P+LbSQrEvrmGZiaWZu4bo+I4UUaZ2+eE5nvN1jnJJaV1AhejQAjf In5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=AMAOABWA; 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=linaro.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id g24-20020a635658000000b003788f039ce7si522519pgm.345.2022.03.02.16.28.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Mar 2022 16:28:46 -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=@linaro.org header.s=google header.b=AMAOABWA; 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=linaro.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 40C30210441; Wed, 2 Mar 2022 15:40:21 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240034AbiCBNNs (ORCPT + 99 others); Wed, 2 Mar 2022 08:13:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232516AbiCBNNr (ORCPT ); Wed, 2 Mar 2022 08:13:47 -0500 Received: from mail-yb1-xb2f.google.com (mail-yb1-xb2f.google.com [IPv6:2607:f8b0:4864:20::b2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76709434A4 for ; Wed, 2 Mar 2022 05:13:03 -0800 (PST) Received: by mail-yb1-xb2f.google.com with SMTP id w16so3215211ybi.12 for ; Wed, 02 Mar 2022 05:13:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=iFzdXtEzQ/C71Rve7zBflg7ThV86ZkzCxCmfW7T42tw=; b=AMAOABWANU8dJtCSDqHudLvUJKMvPmZCh6uSOOTfcN8gTsmKY4epdjVCB5mzkdZuEL A5WgMtmVLqyggWiG/EwmIoPNC9OTB1Vcsf85fLUVIe4wCOeFoMFIJ/Xq9uR4ulyXHNcC /v0qIoj/YGhDSC8XUdeo2+Fn14EH+BrxRngjYdxaKr9yxum0WXZ+Jvor6C+TJqJhLUZJ UPtZsclHm6UV5HNVbCG4czs+ZYmxws6zuAlCiixIJgEz2nuA3NlpGSzIVnop5ccz7Yqq MQQQmR+8XhXI0L+CNN+JOc8XZkTfBMSzG4sLKna+gVByGuSav30sXqbxJyAr/o53o5v2 z3LA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=iFzdXtEzQ/C71Rve7zBflg7ThV86ZkzCxCmfW7T42tw=; b=k3FBOy27YhKsmAezckxRy6pRnzz5XZi06nKHO1zV2HTwFOSuE45J1pWsHdH8YkSXyF XZ/tp4NMNM3AnCi6vVbOSAUBNQBuNqYn8A/OT2oMp/56vop5iYIuFDjetoCCvgDaAFL7 KQ9Xhi1NT2aJtG7M0pXyN75uc7nyslmrnVb0EvLuwSYj5TKKj7Iud3pLkkGpyYY+OJgn IChHP/Lc03nKD/W1Mu0E7YE70ZDNHqHc2wRX0xVRSION7Hz/PljnOz3ZTc4rWw0vjuuY NGsDXp++aE4Sd7DnzEB6rTVIFkav8Uv04p0SqcTTc51O2xQCYNrt5uTt2HyB2SVD+g5h HVCQ== X-Gm-Message-State: AOAM531QOkyMpJWvDefKXx9+hisd+JPSfA88O/P3zpiVkaaaE5fvR9o4 V3NUlfBH1bQ3Stx9kIMKOOR0SlOiOS4M2BWxTKPVwA== X-Received: by 2002:a25:296:0:b0:623:a267:ab94 with SMTP id 144-20020a250296000000b00623a267ab94mr28901467ybc.430.1646226782705; Wed, 02 Mar 2022 05:13:02 -0800 (PST) MIME-Version: 1.0 References: <20220216085842.1973868-1-victor.liu@nxp.com> In-Reply-To: From: Robert Foss Date: Wed, 2 Mar 2022 14:12:51 +0100 Message-ID: Subject: Re: [PATCH] drm/bridge: nwl-dsi: Remove superfluous write to NWL_DSI_IRQ_MASK register To: =?UTF-8?Q?Guido_G=C3=BCnther?= Cc: Liu Ying , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-imx@nxp.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Wed, 2 Mar 2022 at 12:35, Guido G=C3=BCnther wrote: > > 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 =3D ~(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 =3D ~(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=C3=BCnther > > Thanks, > -- Guido Applied to drm-misc-next