Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3518945pxf; Mon, 15 Mar 2021 11:20:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyO1xACzXlP5L+pcrhFU3uL5/HAOmIbyWGCZl1Kbi+8nOCw+fA1J4JAqEqARbbMKGB7ui16 X-Received: by 2002:a05:6402:512:: with SMTP id m18mr31217926edv.372.1615832442874; Mon, 15 Mar 2021 11:20:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832442; cv=none; d=google.com; s=arc-20160816; b=Xpnf/AjnQkVy76ijIG0VRdQaUILKl9bXsrqKfdayT9n00X228dI19Xi1YnSDMqvwgH IZnecAi4wwq0bPOunYm/GPHjoYFtzJBEePCknt8t1x3sHLHLjfN5ryDxz8qClRcja0Xg cwV0TYKRr7eKwnwl9bwEy7PYf/ONENvjmp3Eh7AkKguxeqh3kaF4OyJfFwZY7GQSvaS0 WY3OpeaCV3rsBi6QOYF9kc0vdQdKyBwvH0G5u9MRzU18qHsYvIhgvmcw9AJgBcSgGzFm q2ZHrnJlQU0EB548AUNWNUp4oLQ58q0E8rnNO2cxswR8SUuagdmr6CdkoMr2KvRMyjaE Zzcg== 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=zH86VTKzuxFVJ2rWJgBC+Z5M40tuRcJ4w9US6vyjVio=; b=bJF90QWBwdt9JqdBo5R9UhGe2uPEDGjXQ0qeozeGTXq4tlTVFJebaCrb4RBgCfwjNY 9bOsyRzuhyw3iwnWLLx40djAc1RJgTC1puVb6ZOa7kgm/zaZby3BG8+Oxv3/mHzGzn/k syncsVymwQrLSxzKLceo9148f3ortsoXgOykPtjBcM6+3fq9ZYPGkgk4B6VmIM2xea/L MDKy6eG9gPSdnTFwQcuTu1OZCdbjCK8rj/IXQe7QoSxCxIMPe+JYWhSdWtul1FtRCuJb f3jnTQd7kKWFTQ55SnLpfDVj6tA1Qd//YgH1ftj8ZvwetZ4LEBcIdoL1DTXXJg4DvjC9 TEWA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UkUU095i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi6si12338508edb.419.2021.03.15.11.20.20; Mon, 15 Mar 2021 11:20:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=UkUU095i; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237629AbhCOOTM (ORCPT + 99 others); Mon, 15 Mar 2021 10:19:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:36594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230436AbhCON7t (ORCPT ); Mon, 15 Mar 2021 09:59:49 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0C04164D9E; Mon, 15 Mar 2021 13:59:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816768; bh=3J5T+51wExoyAnoz49/GEIY5eCDLm7DZch2NxfueNNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UkUU095ikGmCx39s8+j9ySUC/A1M6hS92R9jfPII3SnHRW7KqrKfOD08qqbisQ7IS 5ifNlp1Q2fI2oaOYHGhxqr7Of88j2xEupPiP+VkXkk9Dyz+dprogkHY5MI2AOcuqZ+ LlMqTqmOzrhl1a0cyg+ZN0GXV5lfA6HeHYNoqgxI= From: gregkh@linuxfoundation.org To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Dafna Hirschfeld , Hans Verkuil , Mauro Carvalho Chehab Subject: [PATCH 5.10 103/290] media: rkisp1: params: fix wrong bits settings Date: Mon, 15 Mar 2021 14:53:16 +0100 Message-Id: <20210315135545.396949680@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135541.921894249@linuxfoundation.org> References: <20210315135541.921894249@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman From: Dafna Hirschfeld commit 2025a48cfd92d541c5ee47deee97f8a46d00c4ac upstream. The histogram mode is set using 'rkisp1_params_set_bits'. Only the bits of the mode should be the value argument for that function. Otherwise bits outside the mode mask are turned on which is not what was intended. Fixes: bae1155cf579 ("media: staging: rkisp1: add output device for parameters") Signed-off-by: Dafna Hirschfeld Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Greg Kroah-Hartman --- drivers/staging/media/rkisp1/rkisp1-params.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/staging/media/rkisp1/rkisp1-params.c +++ b/drivers/staging/media/rkisp1/rkisp1-params.c @@ -1291,7 +1291,6 @@ static void rkisp1_params_config_paramet memset(hst.hist_weight, 0x01, sizeof(hst.hist_weight)); rkisp1_hst_config(params, &hst); rkisp1_param_set_bits(params, RKISP1_CIF_ISP_HIST_PROP, - ~RKISP1_CIF_ISP_HIST_PROP_MODE_MASK | rkisp1_hst_params_default_config.mode); /* set the range */