Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp2040056rwo; Thu, 3 Aug 2023 03:58:56 -0700 (PDT) X-Google-Smtp-Source: APBJJlHWknwoE+KMM2TO7cD4wESoe74HAur0pAdDZhGaphHlbKRbhHcsmhkwmabC+ck6gpv9um/G X-Received: by 2002:ac2:532e:0:b0:4f8:49a7:2deb with SMTP id f14-20020ac2532e000000b004f849a72debmr6161863lfh.8.1691060335860; Thu, 03 Aug 2023 03:58:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691060335; cv=none; d=google.com; s=arc-20160816; b=SkrmQqtbY+shQD7GSQ5Bye11tMLXDCtGQk31Y8N2v92Wi51k0sYd4ytQattQ4Ofozm 4tG3sPpOObS+/1kjnMksZisMGH1MNkDIn6vwg0G8qcJNvUSSg7yoGRfjbxbCBJ373bav gmTMIMXjiNodaLBu1ynzb/f4CJBI72KWLvNqQHME0d5h1xjBgMpY69fG+QNxXT9OMFx8 q3QpUvAfHWy3B9Kzgn2Et+LbkX7XX2sWKPTrUJBBCmmDcFHEHsRr+dP0Vza6HLf2RkSq yE6uvvu1v3lkzleyvDAzSrxh8sYOM8Lhc6aPFsiHtd3PdhrbjFycjTxo0Fc0hOV4gan5 DuuA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=3JHocNfFIvImhguOggnzRsvrPhHlenPNGYaxVMeN9Po=; fh=OqXResVBGmKVif32WrPB9+w/XjWhGxZKnootS83aEBI=; b=k4pxqSgfRjUDS5UWpj2bUPXNfcm+rngDblFgpUNJFW0IYbuZYKXwu83TYGYCt4K7LU jWaVi1LLv7joVhR5qwoKolRQU4YG7EDrrZ+xOHBvF5xLqeOW5Ag199+bNJ45fm9K7a+h zciu3Z4p3jndT5c6vWT47mYlkGjW4lTBGF9VxI3fVkmQ65J0Jurvup9kUcQKHS1cw5h6 AiOYv/kkFbOrstUSnrruJ5Sr1Q0o0ceU6e+yNv2kShuSkWKAjNKElArxfAC4tJiV/tcl ZXsUhORCGFvq68bjrwXFQcovZdMiI0VYitRQ+MCCaO199ZIku+iz7k3FMhyJRF9lIgCu 1yYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=qH1DE64u; 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 v18-20020aa7d9d2000000b0052229b2e04fsi8477634eds.671.2023.08.03.03.58.31; Thu, 03 Aug 2023 03:58:55 -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=qH1DE64u; 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 S234515AbjHCImM (ORCPT + 99 others); Thu, 3 Aug 2023 04:42:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232768AbjHCImD (ORCPT ); Thu, 3 Aug 2023 04:42:03 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D346DB0; Thu, 3 Aug 2023 01:42:02 -0700 (PDT) Received: from [127.0.1.1] (91-154-35-171.elisa-laajakaista.fi [91.154.35.171]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 7D645EEA; Thu, 3 Aug 2023 10:40:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1691052056; bh=X/zAB0Jj0qtm9fUujGG3j4YnlOSerudhleIY+ZFE7Pk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=qH1DE64u4YxQCM+dwmrEBINgZ/TmMqlH24BICuVvHn12qvLSOxkSGGIqR9Yglz8vS Sdrq0EeescYNU2YxfqFdqhoSWg74ap6eSCvglBOzdxUjkFozQmtRCwJoDfCYGoXr4b TkzgtFHLBERyr29hO43Bv94Q1EDORIDSLshTqyg4= From: Tomi Valkeinen Date: Thu, 03 Aug 2023 11:41:39 +0300 Subject: [PATCH 2/2] media: i2c: ds90ub960: Fix PLL config for 1200 MHz CSI rate MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230803-ub9xx-uninit-vars-v1-2-284a5455260f@ideasonboard.com> References: <20230803-ub9xx-uninit-vars-v1-0-284a5455260f@ideasonboard.com> In-Reply-To: <20230803-ub9xx-uninit-vars-v1-0-284a5455260f@ideasonboard.com> To: Mauro Carvalho Chehab , Laurent Pinchart , Sakari Ailus , Andy Shevchenko , Hans Verkuil Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Tomi Valkeinen X-Mailer: b4 0.12.3 X-Developer-Signature: v=1; a=openpgp-sha256; l=958; i=tomi.valkeinen@ideasonboard.com; h=from:subject:message-id; bh=X/zAB0Jj0qtm9fUujGG3j4YnlOSerudhleIY+ZFE7Pk=; b=owEBbQKS/ZANAwAIAfo9qoy8lh71AcsmYgBky2hVH4mzodkwHQDT/qFB0cXR6NAIPQ86YdBFQ KAmu7DI6SqJAjMEAAEIAB0WIQTEOAw+ll79gQef86f6PaqMvJYe9QUCZMtoVQAKCRD6PaqMvJYe 9R2BEACAlP22T4NNeiUW0lczthwN5yziGaJMShZlaAoa/AvhqHDrFqEAMBQVNj40TgcWmf4nZBF 7lG4B1P7tOKiZC+4iDylMUQXCDd0wEqFfuqhvQ00HxLIZfR5gKnZ8CsufqRmY4a4qJZRVd9JAle 3Km9ubgxQOA1hNFk2Cgf0lHT0jn+nNKNk0asKXQ2EYJem+JKfvB5Y/C2jKhR3/h++R1hdXcPeg6 7aHc30rZ6IJ/Rllijgp8kCRXSm2HZzfj5rPM2a6SecNBQyyy5xBQRWUlS/wTRKtoOS64Ovzgsbd WRQtoUyfafxDLO4zQ+tt06K7+IIghRS2G7cYqQY3YswpZ7fXt42LXdBvhF/zYhKZIBGRgh1umAs PuLAjcldLmgeJx6AsIXu3cJj59HzmHzjLthzr+bRp3KvF6MLaWZJ9nAPDGQtyC0MS9AOFQEHqi3 lliSJ9jLgmiH6chImqyIcf0LRoDan5m99d3FUuuOvm3tJCagC8Jf7kRwSyUGeEomIYvYTyl4j89 Bk3JRvVBsw39SfBCT47IO2UeX/jIAvJlO0sJVzaf0zn5CwjUqFkPJxiQ51nQog4zU99i4oKFWNe 2KJ5lNJDejaV7C9KEXkBsTiIOiFBYfQnCpb24TJNnuLfDawrKX8cg7iaDfO33mr4g0iXsMTLL9z hdhXW5f7UGYTT8g== X-Developer-Key: i=tomi.valkeinen@ideasonboard.com; a=openpgp; fpr=C4380C3E965EFD81079FF3A7FA3DAA8CBC961EF5 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 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 --- 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; -- 2.34.1