Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2816296rwo; Thu, 3 Aug 2023 15:50:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlEjH27lu2Olb0PT10Q2InNRTYt0F5cFmob5zhoqfqgXFsqWvc3hIQv7Zim2JDlTur2actFe X-Received: by 2002:a05:6a20:32aa:b0:137:23a2:2b3c with SMTP id g42-20020a056a2032aa00b0013723a22b3cmr17619731pzd.49.1691103048790; Thu, 03 Aug 2023 15:50:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691103048; cv=none; d=google.com; s=arc-20160816; b=ulbvp9C9f0GhlMGqXLdar9atL3C5KqG2WuGnz5Hb2sMCUsD8WrBaUYesNSnZiT6szP J/Eqv8jbZ9Aw4HI8rbFygybbvcPlvqR4ha0gOXOPrZoo2EG+f7OgnSWsNl52q4CjDm2B nj7Tk4f9g1vWiQAfZHNjPqSA/AI1PkR/uHAczTGiej2BVaa+DcRQDb7y13ZZz7I0Sb6g amiX3W/vcxWW2bQZ0dXqQmrxotqRu61SLlVFyUZN5SDW8s3/2+TUWSvok+w76w6Wit6w D0mOTm5Z2OwrGstMsOsOm4DqfYUjR5pPlBS2aSPgKtPeoebxVyIKZ1KyKeWmHAyqh+wX YLyg== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=MaxDQMq/+zDgMjPtz6kBW2p/6Z8Y6KJDhYdzjh5KXMQ=; fh=2zqi7ymCZwszeO2Yh1clEmrJCZWoZAFAbdcDf+QVqwQ=; b=k/gIJXdh++elztu9tIMg7xn+Qv9VcgJ8RFNsOoTaiNCoZO9h2eWWEVQIZ0tIazpPp1 cpGI5Jx8gkEVknj/tUEEmeoUcNxmULEdZSNVgNX+OejRT9dtizPl/pMrgrS6BZ4XGnFV 8Jw9N8KH5VJybxxQbamaRPgsJ7Z/IX73k/qJdnzb9bP7qyeD+5z1TjlBQrN7bIicMq4q 2TEBwBBzgBVVZ4cYTeYgKfVpFLhwSXNdr6pGH4693HBYmSt+hm3lhmLnmBRAyft116tr kRzsGYyt4O0WFV63Zywk4zhs2XnTwWNVV7RDmOTjU/MNybjmd1PmwwWxIn43JWlSl/+u lbAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=I+ngpATu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bu13-20020a056a00410d00b0066733d71d01si605576pfb.317.2023.08.03.15.50.36; Thu, 03 Aug 2023 15:50:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=I+ngpATu; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231537AbjHCVxh (ORCPT + 99 others); Thu, 3 Aug 2023 17:53:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48424 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229959AbjHCVxg (ORCPT ); Thu, 3 Aug 2023 17:53:36 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 359072D7E; Thu, 3 Aug 2023 14:53:31 -0700 (PDT) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 23B0AC67; Thu, 3 Aug 2023 23:52:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1691099546; bh=ZqDmGTJU5wYQKOmk6F4NuUrXtBi0FAI5NAPCvoFr3Ew=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=I+ngpATuJZoM5K1OKuk4FjG7sQCuFQHwVmlnjGM47vS91kb6ur0lf4oSjanmhiTGV yeHZItElUXcbjrP6vykbKdatqn5KSqpsZ8gW3DFWtb8WX4bIsEDsY2Pe1sunlkBXMV Jw2zARH0Q/fezSuUvD/m2K1KcHAk1ONomy0dKrQ8= Date: Fri, 4 Aug 2023 00:53:36 +0300 From: Laurent Pinchart To: Tomi Valkeinen Cc: Mauro Carvalho Chehab , Sakari Ailus , Andy Shevchenko , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 3/3] media: i2c: ds90ub960: Fix PLL config for 1200 MHz CSI rate Message-ID: <20230803215336.GI27752@pendragon.ideasonboard.com> References: <20230803-ub9xx-uninit-vars-v2-0-512570ecb798@ideasonboard.com> <20230803-ub9xx-uninit-vars-v2-3-512570ecb798@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230803-ub9xx-uninit-vars-v2-3-512570ecb798@ideasonboard.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 On Thu, Aug 03, 2023 at 03:15:47PM +0300, Tomi Valkeinen wrote: > smatch reports: > > drivers/media/i2c/ds90ub960.c:1788 ub960_init_tx_ports() error: uninitialized symbol 'pll_div'. > > This is caused by 'pll_div' not being set for 1200 MHz CSI rate. Set the > 'pll_div' correctly. > > Fixes: afe267f2d368 ("media: i2c: add DS90UB960 driver") > Reported-by: Hans Verkuil > Closes: https://lore.kernel.org/all/8d6daeb1-b62a-bbb2-b840-8759c84f2085@xs4all.nl/ > Signed-off-by: Tomi Valkeinen My Reviewed-by: Laurent Pinchart from v1, send before I noticed v2 was on the list, still applies. > --- > drivers/media/i2c/ds90ub960.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/media/i2c/ds90ub960.c b/drivers/media/i2c/ds90ub960.c > index 4833b39b9178..4ab45e326d80 100644 > --- a/drivers/media/i2c/ds90ub960.c > +++ b/drivers/media/i2c/ds90ub960.c > @@ -1763,6 +1763,7 @@ static int ub960_init_tx_ports(struct ub960_data *priv) > break; > case MHZ(1200): > speed_select = 1; > + pll_div = 0x18; > break; > case MHZ(800): > speed_select = 2; > -- Regards, Laurent Pinchart