From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 834B3C7EE25 for ; Wed, 7 Jun 2023 20:54:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235491AbjFGUyY (ORCPT ); Wed, 7 Jun 2023 16:54:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235487AbjFGUyE (ORCPT ); Wed, 7 Jun 2023 16:54:04 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 964861FDC for ; Wed, 7 Jun 2023 13:53:56 -0700 (PDT) X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="354595184" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="354595184" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 13:53:56 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10734"; a="854046137" X-IronPort-AV: E=Sophos;i="6.00,225,1681196400"; d="scan'208";a="854046137" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga001.fm.intel.com with ESMTP; 07 Jun 2023 13:53:54 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1q70AC-00207z-32; Wed, 07 Jun 2023 23:53:52 +0300 Date: Wed, 7 Jun 2023 23:53:52 +0300 From: Andy Shevchenko To: Hans de Goede Cc: Daniel Scally , Laurent Pinchart , Sakari Ailus , Mauro Carvalho Chehab , Kate Hsuan , linux-media@vger.kernel.org Subject: Re: [PATCH 15/28] media: ov2680: Add support for 19.2 MHz clock Message-ID: References: <20230607164712.63579-1-hdegoede@redhat.com> <20230607164712.63579-16-hdegoede@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230607164712.63579-16-hdegoede@redhat.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org On Wed, Jun 07, 2023 at 06:46:59PM +0200, Hans de Goede wrote: > Most x86/ACPI boards use the ov2680 with a 19.2 MHz xvclk, > rather then the expected 24MHz, add support for this. > > Compensate for the lower clk by setting a higher PLL multiplier > of 69 when using 19.2 MHz vs the default multiplier of 55 for > a 24MHz xvclk. ... > @@ -720,12 +736,19 @@ static int ov2680_parse_dt(struct ov2680_dev *sensor) I believe this call is solely the part of the ->probe() flow, hence... ... > + if (i == ARRAY_SIZE(ov2680_xvclk_freqs)) { > + dev_err(dev, "unsupported xvclk frequency %d Hz\n", sensor->xvclk_freq); > return -EINVAL; return dev_err_probe(...); ? > } -- With Best Regards, Andy Shevchenko