Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp715397pxb; Tue, 5 Apr 2022 20:02:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxeCOKPjofHjtlPEJS6pX82ZLeAifMhq2OigowGDaZcKmO1YatVJ0VH8Jb6RjKFNTG+1QIZ X-Received: by 2002:a17:902:bc8c:b0:156:bc64:fa47 with SMTP id bb12-20020a170902bc8c00b00156bc64fa47mr6439671plb.135.1649214138117; Tue, 05 Apr 2022 20:02:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649214138; cv=none; d=google.com; s=arc-20160816; b=fv7RBPj5bhsyEx39JucZGc8omOLaqBalZzu/eVGyr5/zsTl/S9hGdVh4vZQi50PO5B SIm8XjpmFXpZvbsoW3hGiWvDi85O5bJE/54sIFRJevwZAFMxKdqpdZJaugSaEztak6H/ 0cror0Uz4QdDjQHtJk6wBnYCuC54h4oeOFIEUJLlplBt7MBzhWJ8Vq9llQ+wSzqXIU4r HGo8SM1wkKagVZdyqRf9QgeZZ+7maPShEu8zLfH/9erv/FABnPAJRy0QB2wVTOjKNRuN BzOvCQ1+tYtWOg4cqVQzKOeT9N/zZluHgvLOKjmHnJzPmmkWF7j0BsNuHsyvDKKJWMED +fAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qyrTWDN7Y+wnXubHhiNUZz732NQCXcaH4mGic5I3Y0A=; b=j9oUMAgNfy0+TPpl+ThOsHQWgCyd3uqoT0AuWT28Akj0jL/J2YDFGnhuCsKytUylyc TpPcz0aYMwXv6cT8y1OJM2C7Qsq73QL3Ex/fgdmLajY71B+5TcSxsSVDkzS0X6ajzqBe +oqJ1um0YZlnQCg4qwVLtEPr1Y1aoCbqObnNKqLhavzD1PBJRqNYlOAS83b4NJsvESRT 0t2sZSYFGGq/Q7Ye84IEXTNY4phiZp4NZrExhsQwkMUTxzM+cu8ypTfELGkijjN+FsxI /NWbaFGeTH89QZMddExLxb976b0UyQbnLBdIyPHGdJdwIjzOdBgj40OUuvzSURV+oQ+k xUSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=kjZCyML7; 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=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w1-20020a636201000000b003816043ef3fsi14927967pgb.308.2022.04.05.20.02.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:02:18 -0700 (PDT) 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=@linuxfoundation.org header.s=korg header.b=kjZCyML7; 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=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 850BB1E0174; Tue, 5 Apr 2022 19:47:29 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379191AbiDELkc (ORCPT + 99 others); Tue, 5 Apr 2022 07:40:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46804 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244793AbiDEIwj (ORCPT ); Tue, 5 Apr 2022 04:52:39 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 400D11EAF6; Tue, 5 Apr 2022 01:44:06 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E5FE5B81BC5; Tue, 5 Apr 2022 08:44:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D180C385A1; Tue, 5 Apr 2022 08:44:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148243; bh=5a4w0X02E9XeqceD8KGfG2dRL/J743LjSjuw3PThuj0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kjZCyML79APX6pjzoGZ+PZHut//OIGB5SiwGq1wHOh2uBaiVoi/pAzQdYc6ItQxHt +HrB6x4RhtB9OXjm3U2KHT6zXv/l/dNpBqPCCbl4NLWOhbo6wtYTCD+QQQNPbMiTF2 mK9t8pNTcwJXsR+l0dSkpopZSE6MkhRXmAwiX1GE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Kepplinger , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.16 0286/1017] media: imx: imx8mq-mipi-csi2: remove wrong irq config write operation Date: Tue, 5 Apr 2022 09:19:59 +0200 Message-Id: <20220405070402.760885065@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, 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 From: Martin Kepplinger [ Upstream commit 59c2b6d51803ad6b7af28f2a60a843b24374e692 ] The place where this register writel() that masks one interrupt is placed does not guarantee that the device is powered so that's not allowed. Moreover imx8mq_mipi_csi_start_stream() masks the interrupt anyway so the write is not even needed. Remove it as this is a mistake that slipped in with the driver. Fixes: f33fd8d77dd0 ("media: imx: add a driver for i.MX8MQ mipi csi rx phy and controller") Signed-off-by: Martin Kepplinger Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/imx/imx8mq-mipi-csi2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/media/imx/imx8mq-mipi-csi2.c b/drivers/staging/media/imx/imx8mq-mipi-csi2.c index 7adbdd14daa9..8f3cc138c52c 100644 --- a/drivers/staging/media/imx/imx8mq-mipi-csi2.c +++ b/drivers/staging/media/imx/imx8mq-mipi-csi2.c @@ -398,9 +398,6 @@ static int imx8mq_mipi_csi_s_stream(struct v4l2_subdev *sd, int enable) struct csi_state *state = mipi_sd_to_csi2_state(sd); int ret = 0; - imx8mq_mipi_csi_write(state, CSI2RX_IRQ_MASK, - CSI2RX_IRQ_MASK_ULPS_STATUS_CHANGE); - if (enable) { ret = pm_runtime_resume_and_get(state->dev); if (ret < 0) -- 2.34.1