Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1359060pxb; Fri, 24 Sep 2021 02:46:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIrw4ouxi7y/9o3ZvFtcsTFsXPwIe6xjR85TUi+/fKzyj+3+F8rkyOTO2yZBMRdA5RJG1v X-Received: by 2002:a17:906:341b:: with SMTP id c27mr10411750ejb.61.1632476804966; Fri, 24 Sep 2021 02:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632476804; cv=none; d=google.com; s=arc-20160816; b=eKjt5EMyFUBgaLzcRCRiZNFixXTfr6w/NOe/HGroA2zUQt5pgg0hoMDbjPkzSn4dHu Sf3iVtOQ25oKiEjwQkb5rMiXWhTUHzdzLAWHthGSudC4VwxCQJ+pycgnFCIx+gwmARH+ sZ6WOrHNfjQqgaBYOk8VNELKmWG+56HWzEQESBLIQBPboPlHvBM0bO1aANlt8d90jduj sWGwAaW4Cst+3i4ynVRP/xa7deH3FMZl1gAzbyaXb9fA1nfs99WV7sFFllbmZdG+fJUM HF7Qkr0AACxfBfpYQ9TLtfgWE0ZVZFCCHe2h2iKzdMPehEziilkoB7kT33j8FTelY7Be uDFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4gC2MA1kaMM1U9IpPCmK8iL7sHRAzGczxEav4KBXmlg=; b=P1EwSxH6PVeU/35Xa/YiC9GvdUcUh7ELPkaIG9d0Ies+ZvCRAQVj6ROZ7n5nMJwVuh MDuSYU0jc7Y0KiT7DXF/R9IfWB9YDHv9xMelhoJ7KA37WstYzuG/0+CkBQc+hV3zXjzP ZlIPZ0tGRl2Dce2RjFBXlROB1pnRY/HdXjw+iMR598w8sChN2YE28xoOYtFhwboxY3Wl wVVzznvL8bd/PMfKJ6IXmUG2PwzpPSfZ/CL9fbhcHKyp0+8l8BeN01kFhT1/nd4ttQ5S yFn9UZENG86opvo5ghPJylLo395VckqUoK8IXWEPZ/FUeBSkzeL8f2qQxC4G2gqw0H4r Jb6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ragnatech-se.20210112.gappssmtp.com header.s=20210112 header.b=wx9RrcuE; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u29si9377850edi.557.2021.09.24.02.46.21; Fri, 24 Sep 2021 02:46:44 -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=@ragnatech-se.20210112.gappssmtp.com header.s=20210112 header.b=wx9RrcuE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245323AbhIXJp4 (ORCPT + 99 others); Fri, 24 Sep 2021 05:45:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245377AbhIXJps (ORCPT ); Fri, 24 Sep 2021 05:45:48 -0400 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3CC0C0613D9 for ; Fri, 24 Sep 2021 02:43:59 -0700 (PDT) Received: by mail-lf1-x131.google.com with SMTP id b20so38204062lfv.3 for ; Fri, 24 Sep 2021 02:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ragnatech-se.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to; bh=4gC2MA1kaMM1U9IpPCmK8iL7sHRAzGczxEav4KBXmlg=; b=wx9RrcuEoObEevTHeX+zAy5eWZlSts/ilq9UQKzeEE0dgRMf2gNPzyh7eTSEkcLQ0z QmVjMGzn4btdg4LJd11HDTj1n5kv7t7upBG/NsHatsWBimUFkP+4xW+svXV1egWAk6ic Jr4t0ZwOitWcfCMGMajLfPPeGZIslyywMNWw4AVFBZ4LD8NV1sRCw6xYCvjNtqQnB6ml PiOSzneKtaajrpYYS+fD8CGqy2u9fRUZIjcTFbfO9fuzLc4RzHaOHGByovC8sUNPlWXw osaMYUgCjrOJY09dRrjamHNBtQ8zOZFDBEO+ZTlCNfwyzD6RDUP0kVMAY1JqVlKZZ/7b w0SA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=4gC2MA1kaMM1U9IpPCmK8iL7sHRAzGczxEav4KBXmlg=; b=ubWwFaSlywpJFqlSPIPzPeq+l3v7wbF5tRLugt8QXYl15J+K82OCDMFQ+3nVI3e0B9 LQuZmip7AoYCJfDJevgIrkIrfKesEm2PHxJxN0MQ6f3hWeQRD7yDyOSU32Sx1Hiv6SJ2 KDg4fDkUUzcbK+Iu1GGafSXPLbwGUB36BXxGvHA2+YO5UJFoyhYd1pBr0gHSCEZrt2Jk ukCfGP+KJ+TGJiA2TR5tqYxarBO0/bNNln1pBUrjn00fOsbZKsjwAu4uY9enBVe6C06z ylNlBNYqOZMDWg9Gn/vgSw01g2tDOD6SMDJohXwIwIFax8lL0PDm1XEpofNe6KkQAh2g 0M3Q== X-Gm-Message-State: AOAM531MMyPfSHUHQk7z71v8vme38R3y7kNMsL+hyTlG73GKt0Sr9M/E ysFaalURO7ggsdqAQXXBL6zYRQ== X-Received: by 2002:a05:6512:3f16:: with SMTP id y22mr948743lfa.499.1632476638179; Fri, 24 Sep 2021 02:43:58 -0700 (PDT) Received: from localhost (h-46-59-88-219.A463.priv.bahnhof.se. [46.59.88.219]) by smtp.gmail.com with ESMTPSA id q5sm702069lfo.225.2021.09.24.02.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Sep 2021 02:43:57 -0700 (PDT) Date: Fri, 24 Sep 2021 11:43:57 +0200 From: Niklas =?iso-8859-1?Q?S=F6derlund?= To: Nikita Yushchenko Cc: Mauro Carvalho Chehab , Rob Herring , Sergei Shtylyov , Hans Verkuil , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Vladimir Barinov Subject: Re: [PATCH] media: rcar-csi2: fix R8A77980 support Message-ID: References: <20210924090244.3459-1-nikita.yoush@cogentembedded.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210924090244.3459-1-nikita.yoush@cogentembedded.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Nikita and Vladimir, Thanks for your work. On 2021-09-24 12:02:45 +0300, Nikita Yushchenko wrote: > From: Vladimir Barinov > > Add missing initialization of num_channels field. The num_channels field is intentionally left out here, and therefore initialized to 0. The reason for this is that tho even if the VCDT and VCDT2 register exists on V3H the datasheet states that the value written to them should always be 0. As the only usage of num_channels is to create the content to write to these registers in rcsi2_start_receiver() setting it to 0 does the correct thing for V3H. Nacked-by: Niklas S?derlund > > Fixes: 3ba37c2bcb0c ("media: rcar-csi2: add R8A77980 support") > Signed-off-by: Vladimir Barinov > Signed-off-by: Nikita Yushchenko > --- > drivers/media/platform/rcar-vin/rcar-csi2.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/platform/rcar-vin/rcar-csi2.c b/drivers/media/platform/rcar-vin/rcar-csi2.c > index e28eff039688..f4d3c6dead30 100644 > --- a/drivers/media/platform/rcar-vin/rcar-csi2.c > +++ b/drivers/media/platform/rcar-vin/rcar-csi2.c > @@ -1146,6 +1146,7 @@ static const struct rcar_csi2_info rcar_csi2_info_r8a77980 = { > .init_phtw = rcsi2_init_phtw_h3_v3h_m3n, > .hsfreqrange = hsfreqrange_h3_v3h_m3n, > .csi0clkfreqrange = 0x20, > + .num_channels = 4, > .clear_ulps = true, > }; > > -- > 2.30.2 > -- Regards, Niklas S?derlund