From patchwork Tue Jun 25 09:35:16 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: You-Sheng Yang X-Patchwork-Id: 1952019 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.ubuntu.com (client-ip=185.125.189.65; helo=lists.ubuntu.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=patchwork.ozlabs.org) Received: from lists.ubuntu.com (lists.ubuntu.com [185.125.189.65]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4W7fpK588Wz20X1 for ; Tue, 25 Jun 2024 19:35:53 +1000 (AEST) Received: from localhost ([127.0.0.1] helo=lists.ubuntu.com) by lists.ubuntu.com with esmtp (Exim 4.86_2) (envelope-from ) id 1sM2aa-0001yO-9i; Tue, 25 Jun 2024 09:35:48 +0000 Received: from mail-pg1-f178.google.com ([209.85.215.178]) by lists.ubuntu.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1sM2aY-0001ve-TX for kernel-team@lists.ubuntu.com; Tue, 25 Jun 2024 09:35:47 +0000 Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7178ba1c24bso2559484a12.3 for ; Tue, 25 Jun 2024 02:35:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719308144; x=1719912944; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9ox99+AAE8Oz5TmUNkeX5TqxZpygCN3McP8auQYXD98=; b=GVep2OYd0i0zJYhIQGkx4yzTzUjZlYiifTPMI+aiqRcs9l7rY2Oe8/iepOUnGgFwro ZER25yDbALGC8G4ffrCE4csodMthCXLFwsD8M/uyVWd7evCoQrXkWL77QCK3qj4B4uw4 iSGKsTxvNOI17oEFZhe8gXjfCcFjCtWerz1L5v/1tGd/KiPOrbqSfB1tzdaw8kQ3Cvn1 idaudgaC5dMVAO8j/rPiYbljMNVZgrW9JKv0M/9h9CCOcKGUPcCixM+bL7dSti/8VWjk 38q5MyNnvCuP+Bxb7tD8aqY8tEgHBNaGyf1HbNvHNd6t4FysGGiIqVmY/zmNarAJaijP 5YlQ== X-Gm-Message-State: AOJu0Yxbh85p+jMwCZSgotyq+OlG0M0AHwzKtIgIhSipvPUmoks+S6Y6 CoF7zqgVKwSC8OAWcexXl2omxHJIjCnEenNT41V7ptsy95xmv5+OnhfnWndb X-Google-Smtp-Source: AGHT+IFBm2NrWAm5S6dLhA2zvp0XjQVHFyg4z5oGY6yjegZJHoKfzL0SMwURNJrZUXhXmz/VS3tg+w== X-Received: by 2002:a17:90b:4f49:b0:2c4:e2cd:9216 with SMTP id 98e67ed59e1d1-2c861246bfemr6506135a91.16.1719308144433; Tue, 25 Jun 2024 02:35:44 -0700 (PDT) Received: from localhost.localdomain (125-229-129-140.hinet-ip.hinet.net. [125.229.129.140]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2c819db9803sm8176683a91.45.2024.06.25.02.35.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jun 2024 02:35:43 -0700 (PDT) From: You-Sheng Yang To: kernel-team@lists.ubuntu.com Subject: [PATCH 3/7][Unstable] UBUNTU: SAUCE: media: ivsc: csi: remove privacy status in struct mei_csi Date: Tue, 25 Jun 2024 17:35:16 +0800 Message-ID: <20240625093520.3804382-4-vicamo.yang@canonical.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240625093520.3804382-1-vicamo.yang@canonical.com> References: <20240625093520.3804382-1-vicamo.yang@canonical.com> MIME-Version: 1.0 Received-SPF: pass client-ip=209.85.215.178; envelope-from=vicamo@gmail.com; helo=mail-pg1-f178.google.com X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" From: Wentong Wu BugLink: https://bugs.launchpad.net/bugs/2067364 The privacy status is maintained by privacy_ctrl, on which all of the privacy status changes will go through, so there is no point in maintaining one more element any more. Reported-by: Hao Yao Signed-off-by: Wentong Wu Tested-by: Jason Chen (cherry picked from https://lore.kernel.org/r/all/20240607132547.2820515-4-wentong.wu@intel.com) Signed-off-by: You-Sheng Yang --- drivers/media/pci/intel/ivsc/mei_csi.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/media/pci/intel/ivsc/mei_csi.c b/drivers/media/pci/intel/ivsc/mei_csi.c index 16791a7f4f15..2a9c12c975ca 100644 --- a/drivers/media/pci/intel/ivsc/mei_csi.c +++ b/drivers/media/pci/intel/ivsc/mei_csi.c @@ -138,9 +138,6 @@ struct mei_csi { u32 nr_of_lanes; /* frequency of the CSI-2 link */ u64 link_freq; - - /* privacy status */ - enum ivsc_privacy_status status; }; static const struct v4l2_mbus_framefmt mei_csi_format_mbus_default = { @@ -271,10 +268,9 @@ static void mei_csi_rx(struct mei_cl_device *cldev) switch (notif.cmd_id) { case CSI_PRIVACY_NOTIF: - if (notif.cont.cont < CSI_PRIVACY_MAX) { - csi->status = notif.cont.cont; - v4l2_ctrl_s_ctrl(csi->privacy_ctrl, csi->status); - } + if (notif.cont.cont < CSI_PRIVACY_MAX) + v4l2_ctrl_s_ctrl(csi->privacy_ctrl, + notif.cont.cont == CSI_PRIVACY_ON); break; case CSI_SET_OWNER: case CSI_SET_CONF: