Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp429713pxv; Thu, 8 Jul 2021 05:58:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjgToYyS/hu6P6vIAG9o7F95LW1VGEExLex9lNK9STaXw01qS5pd3FxB2c66RpBFfccptN X-Received: by 2002:a05:6402:5214:: with SMTP id s20mr11375726edd.128.1625749135987; Thu, 08 Jul 2021 05:58:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1625749135; cv=pass; d=google.com; s=arc-20160816; b=AG3T8mpxNnSq+rBSUdy7K+H/+sRf6OY35rJ3qKrHZZmyCQ+TjyPPX17tmAVBIDP6Zl djcewpQ9EX/4Q0kWJFjjWzUyVML1YQRECnsAgoHtE4XbdM1cRaLq1edYoG1Bs+agUdna BoYulr1QiW5a9lWzONpofBvOZGfBWEqtCpdj2nQGnrJUebMVGqvhysWQqliv/t3mJYXJ 0ycMIiz/BE4UKsuELVGGH6HLCrtHuY6yysJYhMWtlSGg9IcGq8ivoe2WC94eJ7d2EQgq OrhEuMbB9ik5GSJhtpOarispNxyeWpQRJFXQ28WT8UsYozEfcYrF1dgnr1ZA6V9Gmqcc wRbw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=vHwc2iN6bUv/poqxKz5vkCUvi9lnsC7e2XhitOKa43I=; b=ciwDgHQqkds3Uw1MxtCnPxM6rvsvXLpKieu3U4vsDt92vO1QFMMMtYKg/soFlBai4H 91DBmgXa1rSPkUn4jdyeak9NtwZLeQTGTySEMWrS/skQ94Hw1a+Y65nZulyGfc03B9HN MTV+NGe0lB/9PZdcLPnE+eQmJkzyRDghLjkyAQG9lCZ+sLPA/gYJEjcJE3C+p8s1JnGG UR+VAfQ9GUAYfzWhJ7HYr0FYS/rsPXhR0GLOE1viLDa29rJuK7FN/BioBe0tpkbQKGqR /Nb9M6cHUpIdkUkwVNG8bYYFFHDqoMyRc75t55wAw/L6mXWxUJsVB8/Tvs86sttvYmdg Wa5A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@iki.fi header.s=meesny header.b=GWi5fWrC; arc=pass (i=1); 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 i25si3146879edq.83.2021.07.08.05.58.33; Thu, 08 Jul 2021 05:58:55 -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=@iki.fi header.s=meesny header.b=GWi5fWrC; arc=pass (i=1); 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 S231773AbhGHNAR (ORCPT + 99 others); Thu, 8 Jul 2021 09:00:17 -0400 Received: from meesny.iki.fi ([195.140.195.201]:38204 "EHLO meesny.iki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231404AbhGHNAQ (ORCPT ); Thu, 8 Jul 2021 09:00:16 -0400 Received: from hillosipuli.retiisi.eu (89-27-100-251.bb.dnainternet.fi [89.27.100.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sailus) by meesny.iki.fi (Postfix) with ESMTPSA id BC3AF200B9; Thu, 8 Jul 2021 15:57:30 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1625749050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vHwc2iN6bUv/poqxKz5vkCUvi9lnsC7e2XhitOKa43I=; b=GWi5fWrCoNrEnmEO0n68V+MuIf83Pa5GMCwu5NuWaTX32pOylrfWybNp/kULITG189ltIB gUNC7CXtUA1P7OGjGn3YzGdmIPAoJjS2Pq3DHDlXkgmdeTH6fiHDTxGkC64WGQz8vn6S9z R3ZOsbD2+5uNPXlTA8okxTiQiNkuJss= Received: from valkosipuli.localdomain (valkosipuli.localdomain [IPv6:fd35:1bc8:1a6:d3d5::80:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by hillosipuli.retiisi.eu (Postfix) with ESMTPS id 84BC3634C87; Thu, 8 Jul 2021 15:56:51 +0300 (EEST) Received: from localhost ([127.0.0.1] helo=valkosipuli.retiisi.eu) by valkosipuli.localdomain with esmtp (Exim 4.92) (envelope-from ) id 1m1Tar-0001zl-RD; Thu, 08 Jul 2021 15:57:29 +0300 Date: Thu, 8 Jul 2021 15:57:29 +0300 From: Sakari Ailus To: Martin Kepplinger Cc: krzysztof.kozlowski@canonical.com, laurent.pinchart@ideasonboard.com, devicetree@vger.kernel.org, kernel@puri.sm, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org, paul.kocialkowski@bootlin.com, pavel@ucw.cz, phone-devel@vger.kernel.org, robh@kernel.org, shawnx.tu@intel.com Subject: Re: [PATCH v6 3/5] media: i2c: add driver for the SK Hynix Hi-846 8M pixel camera Message-ID: <20210708125729.GZ3@valkosipuli.retiisi.eu> References: <20210628101054.828579-1-martin.kepplinger@puri.sm> <20210628101054.828579-4-martin.kepplinger@puri.sm> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210628101054.828579-4-martin.kepplinger@puri.sm> User-Agent: Mutt/1.10.1 (2018-07-13) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=meesny; t=1625749050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=vHwc2iN6bUv/poqxKz5vkCUvi9lnsC7e2XhitOKa43I=; b=ZV4eWNlQPCaPsWHai36aWk9In7eCXZhzu8MlWbZnCOzZu3rSIIVknOhIFKJLfOf0pXZ5fw i8VD7HF2Qvny9E1VbkkIMCNfCZUIm29Dlpg9taEhD89X3IB18TZJpskUGb0BlraKUqm1zs Fz2MWDr08EvKhHWWRarbYTnmskUF7LY= ARC-Seal: i=1; s=meesny; d=iki.fi; t=1625749050; a=rsa-sha256; cv=none; b=SVlRZG8gSwlNfhqRWff+uM6gDMT78kKvN757zxdz904VbX53rSUDseGtrOzNZUgvTB9RHa yODmLtsDAypE8WVV0xg0qJrK47ZpSjqjI6Kk9nxnNMMAnustMGfPkL5Ryhl7rtA3DVgvNH 7JZ8SNab3gxjOTv25rpSCOXY3n1iOx8= ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=sailus smtp.mailfrom=sakari.ailus@iki.fi Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Martin, On Mon, Jun 28, 2021 at 12:10:52PM +0200, Martin Kepplinger wrote: ... > + hi846->clock = devm_clk_get(&client->dev, NULL); > + if (IS_ERR(hi846->clock)) { > + dev_err(&client->dev, "failed to get clock: %pe\n", hi846->clock); > + return PTR_ERR(hi846->clock); > + } > + > + mclk_freq = clk_get_rate(hi846->clock); > + dev_dbg(&client->dev, "clk rate: %u\n", mclk_freq); You'll need to check this is the value you expect it to be. The register lists are specific to that value. Could you also check Documentation/driver-api/media/camera-sensor.rst regarding the assigned-clocks etc. properties, and align the bindings with that? -- Sakari Ailus