Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3519431pxf; Mon, 15 Mar 2021 11:21:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeq3THy1fJPbiLPPS1qp/MMywjdFisdsLmp6U1Amhg4tzkomM7ZxqpwPjt7X42Mz7LLZlk X-Received: by 2002:a17:906:f6ce:: with SMTP id jo14mr25488131ejb.476.1615832485450; Mon, 15 Mar 2021 11:21:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615832485; cv=none; d=google.com; s=arc-20160816; b=VTQHgo7mcNYOAp05Hp+hn36a2z4ekaeSy/K4m+FjVUz3QfB2HMRTqLe9+KZmc4aon0 eOAXx1n1DtbQB1jMCPECu6SWtRyIz2adBgI7Qgv04iSvi7ebLhNolWESWI3bT34K8+VL GdDydCtG8LHMRCOkUATWR7zDbRun+QFJhvNlb3tgdCACanX76POIWeKzBKy+rk7Zg9NK b6B8bfKzOu/SLzK0DcjgK9udgm+GRXc78plhXQkw8/9ypwYgRhkLpQHnX5rOm2OiBotr A+rxfDiCE8dZfq0ckvzvbXdVlfreqqgIUmRUAE3wu/kKiGOeQEysOpJIPjO2T0NnWnx0 99Cg== 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=XeMv89Gl/sHh9hHdsiUfqWGc461sd/LPqghAmsh93uA=; b=RcayVpCoUQksNzVg001piBf2mm5DBnieeI2Ws+bqVApXghMN6z5KHDJCp8Whs6div2 esnBKg61nu7y6pg5C7wVa03Rvf8BXiO/pn9rb8Pa6ICaYiGSpwKjNg94AnZPS7yCzoI2 pLHjtweaeRqt8O3A0yxP9BhEx/LO83UT+2aNSD9GUvwPaPCTt/cxlZNAQlsSZ3v6V2hE kyYZvuymB2ppLcv1SwSe7kaWCpYpsdLS0Nk6E09qZRK1xN6bG/YHlHLaZKGsOZMSN3Se ewGXfhOdyT5EcBMJ2S2JQRl7UszeyqcEMUuw3W0x0mWrshsBBu1jnXwYoLngc1bRmavN i3zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=zj6RVdqA; 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 b1si11709607edq.5.2021.03.15.11.21.02; Mon, 15 Mar 2021 11:21:25 -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=zj6RVdqA; 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 S237754AbhCOOTw (ORCPT + 99 others); Mon, 15 Mar 2021 10:19:52 -0400 Received: from mail.kernel.org ([198.145.29.99]:36788 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232636AbhCON7x (ORCPT ); Mon, 15 Mar 2021 09:59:53 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 4B1FA64F43; Mon, 15 Mar 2021 13:59:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1615816774; bh=X8ky84fth5XNUMunG6WnkG97WsfMloHTJYQtQjZq/2w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zj6RVdqAosKYl4CVt8s+PCwNZJ3lyEwhn/dgPGSqUsVueS92jHmRUP5JmOIbTp/Dm DuJyCBqabxQKXq3M10DDYAN0bcErA1OcqIl3wTcRnzp+PaAXvmjs1YfSfpzb1nhNXP Gognh98bfZXzJZd9HKSNssN5puHi/IkfdCDKTFkU= 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.11 117/306] media: rkisp1: params: fix wrong bits settings Date: Mon, 15 Mar 2021 14:53:00 +0100 Message-Id: <20210315135511.612613542@linuxfoundation.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210315135507.611436477@linuxfoundation.org> References: <20210315135507.611436477@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/media/platform/rockchip/rkisp1/rkisp1-params.c | 1 - 1 file changed, 1 deletion(-) --- a/drivers/media/platform/rockchip/rkisp1/rkisp1-params.c +++ b/drivers/media/platform/rockchip/rkisp1/rkisp1-params.c @@ -1288,7 +1288,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 */