Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2902060lqz; Wed, 3 Apr 2024 11:48:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWK/F/Ge0+rUq89f3y73ENl5BafiTpjznqIximtj+AumJCO5uQniWT+epGDqq/J3oe//1JCcVNKuj31qWRtnSGjQCbKKHhd5tbxNy2TdA== X-Google-Smtp-Source: AGHT+IES+cUnUle/X+gwI5mX+rHx3n+sdbHCTzKd9m7bJLrEI4eovIOfGGSI+eTne1ytlAGJ84BJ X-Received: by 2002:a05:6a21:2720:b0:1a7:1787:d486 with SMTP id rm32-20020a056a21272000b001a71787d486mr495567pzb.60.1712170117248; Wed, 03 Apr 2024 11:48:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712170117; cv=pass; d=google.com; s=arc-20160816; b=WkK7fiWqwWCPSH4wfcI5c4jqpjzOvlO2SeftbpISn+87BQilzJ+V8XqILz/MBWu7ad 8FJc+BygQLyKjK+2MBEU+SBVIXjPVKUqiFPFQmYsGlayiQE3lsuhYNeZzJnHEBUNNd5y EgAPkmSTgojQoh2Err9i7rfeAqi6dgaSbMR/tLxl3q/G1S8EJqajQNUCwwFHCi44Q835 ARYZjBpa8eFCseeBbEiy0b5D/7jfz28/3NmlATrZuaRICFaKWRiBZCu7NwUZstXx3pUT WiFgL3fpVjA2pfq9RNAild7YPAcTBlzp3d0LP4sQiD5xmr/zouO3cJMiTfSENVFgvSU4 M4AA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=paT4YqJAMwkZlVJkVbExyZAdVySI9UAMlsKbRN2SBQE=; fh=CYKjRwzHuXFVQ90W+Dsknol5m7Cf83kQGFHCqwoV5rQ=; b=eCYlPx0IbqFa7Or27+So2kMLOfkWg/E4JgkOWju8vFJi/IyRFEtTdkmh4ngjeRi33P YhwDli0r7aD2cZR1dGkEbNuJcaz+CoBzQvz8SFPOu0gnnGIgat8D/GRPPvoWPwshrur1 cFPwizwgjpcbPIeZf1UKrTW7KKRgiGwR6hxNNw1DavMYr3w69aNpssSJxvFV/nD1pXfi E8MPWE6CHpSi7LjveORSgNJj2z47RufeaGJIOV+6TjiC431VULSPWAAlDmc02O/EGo9m R/7SIc/jAF6igki1LXl9fkW6/hph4tJueHDVH4D6O14+NccW40Li4laPiuYpQ210/Xu1 eEOQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=qMKKUSZV; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-130468-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id le19-20020a056a004fd300b006ea6d65ec89si14047864pfb.168.2024.04.03.11.48.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 11:48:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-130468-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b=qMKKUSZV; arc=pass (i=1 spf=pass spfdomain=ucw.cz dkim=pass dkdomain=ucw.cz dmarc=pass fromdomain=ucw.cz); spf=pass (google.com: domain of linux-kernel+bounces-130468-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-130468-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ucw.cz Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 1E81428BAD8 for ; Wed, 3 Apr 2024 18:48:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B8B5154458; Wed, 3 Apr 2024 18:48:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b="qMKKUSZV" Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6585B152E11; Wed, 3 Apr 2024 18:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712170099; cv=none; b=l0VVw0K700jWjKfHG9+fP98+SQZa/0gOEfbEm84x4Cw7UWhiAJbZuKEn6jXp96B+bbVJXHZq5oEtG/P9In911oN0A+B9O+RyceKDlgdOKLcOvCANvQdApWMn0a4Qw7hXO+1nRFX1WJ0mcL0Dnlgim5ngk9t9lYmlv48SNcAcnz4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712170099; c=relaxed/simple; bh=K/mEWGGHah9AHjNaQJWc15nYOsNrbxisnfb/Qbn4y+Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Rh7R0+QZOjLpt9T72/LdBzzEcgm4oBd4Helkoyhd02lzcq5xlbkER3L8hyvZoE8prFgJD1lurexpqWje5d3xheySlei9Fejv/uW9VAQozNHBQ5tpKYF8AIj9bM1FztgG158BGFV9FBJeAyM4q/TSCi7ogXWXHpYAXtfe7XG8D1Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz; spf=pass smtp.mailfrom=ucw.cz; dkim=pass (1024-bit key) header.d=ucw.cz header.i=@ucw.cz header.b=qMKKUSZV; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=ucw.cz Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ucw.cz Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id E54841C0084; Wed, 3 Apr 2024 20:48:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1712170096; 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=paT4YqJAMwkZlVJkVbExyZAdVySI9UAMlsKbRN2SBQE=; b=qMKKUSZVjKyIXhLKRbToX7OWbT98VFx0kPXAWcoqK8PBKk4Pt7/AbaMAspO/SfVBl69qHW GKJdrDjBMrFRe4wIuqTkmemGonOyf40YhJWegW5Zp1qDpql3h/X40M/Dgb9gkz0JmnQtXA f3vv5ZFlR47toYEpTGCZ/EzsoL17aKU= Date: Wed, 3 Apr 2024 20:48:16 +0200 From: Pavel Machek To: git@luigi311.com Cc: linux-media@vger.kernel.org, dave.stevenson@raspberrypi.com, jacopo.mondi@ideasonboard.com, mchehab@kernel.org, robh@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, sakari.ailus@linux.intel.com, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, phone-devel@vger.kernel.org Subject: Re: [PATCH v3 12/25] media: i2c: imx258: Allow configuration of clock lane behaviour Message-ID: References: <20240403150355.189229-1-git@luigi311.com> <20240403150355.189229-13-git@luigi311.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1OdbHON6Ov4LarD5" Content-Disposition: inline In-Reply-To: <20240403150355.189229-13-git@luigi311.com> --1OdbHON6Ov4LarD5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The sensor supports the clock lane either remaining in HS mode > during frame blanking, or dropping to LP11. >=20 > Add configuration of the mode via V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK. > + ret =3D imx258_write_reg(imx258, IMX258_CLK_BLANK_STOP, > + IMX258_REG_VALUE_08BIT, > + imx258->csi2_flags & V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK ? > + 1 : 0); !! can be used to turn value into 1/0. I find it easier to read than ? 1 : 0 combination, but possibly that's fine, too. Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --1OdbHON6Ov4LarD5 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZg2kcAAKCRAw5/Bqldv6 8tkWAJ9GsEARZ8KugFSLPWIezuc14sMwlQCfTUh6JxGCkAI/h9MaZY6O+/OE3jM= =uuSL -----END PGP SIGNATURE----- --1OdbHON6Ov4LarD5--