Received: by 2002:ab2:7a55:0:b0:1f4:4a7d:290d with SMTP id u21csp347660lqp; Thu, 4 Apr 2024 15:29:45 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVDD50rM8FsXIXIG3DgV54jgSaoJ0zY0E0ZoFL/uWUsRbKfwhHHHPgcOMhpSxYHWIot09rKScAwAeomf7K/Y4PQVddJEljPCpot11JLoQ== X-Google-Smtp-Source: AGHT+IFGhqpT5BXjFWcKHRKzT1Alrh6KIsKOk2MLt88O5qDgknBEqVFflUml+CLedQBRVAnj4Hne X-Received: by 2002:a19:6a12:0:b0:516:d1cf:d9d9 with SMTP id u18-20020a196a12000000b00516d1cfd9d9mr426968lfu.62.1712269785541; Thu, 04 Apr 2024 15:29:45 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712269785; cv=pass; d=google.com; s=arc-20160816; b=MkSHGIirJO/gapZD68SbLoxJI99rJzbyqCswauYPoxKw0Mijil3CjWvBdZ8y3idiXj VyzBxKo9/arHMYsFHdsL4Y1Cmugcs4AmVSzx+FVyOyDudX3V2Yuu2lHqVB9cbsQFv1K4 XM+rptK6FaGPH/17SNDXAqz92oiZnha5jHzS8P4Gi4CTXcbLfM69A/7L8kDe+huh/XIn Z0ecyNA3CSCqphqtf56XbX/ba9EUAubXdHwOZRlMRbWc+FFOcNEf79i1BYannb65rowl 1eJGKYUwXbMEggYI6n9/7rCOcxwSrDhWtLQEU4oliZFiVG8AKPCorP4DlYKIv37ELBaZ ebsA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=b0vJntwX4Lap8ep/ms4s2qljGex8NbqYYt5JzOJnwNk=; fh=t1jCORON07ObHtItRRLLCBr5/XfEXiqF38NOxmhBuVc=; b=an60wCfy4Kx2uXwwdeInVO7wf4KslZ6HNYJVfbPPdNEAuG3NvCMBti71qw7UoJkL5S vcJrRsX8fFsQ9Vd/q/6R/VRivSwSZ/Z6QXdWYbvRTwF4SibTw+m7YZT8vbY/DSPVUk5y Lu317G57hbym3YQPX1tHOpivCuL6rGK0tFyZwpEWhuJMxM0mZYk2hGjggWjyFaALxpu4 AIFcF38RsG0P8oO6lwPqjrdSuj0CYPLuTXCEcPH9x8e+764SykOBI0nCmlE3qL1sJ3rI Dg1YRXBXwclKF9Dm6YjUzQi6yZMD8g8ZsGsmw5W3+SdyGv0wl/wd6EyzSYZWVTOS3myx A4sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=VT8yPpxE; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-132204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132204-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g11-20020a1709063b0b00b00a4e37adb9edsi72406ejf.895.2024.04.04.15.29.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 15:29:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-132204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=fail header.i=@luigi311.com header.s=x header.b=VT8yPpxE; arc=pass (i=1 spf=pass spfdomain=luigi311.com dkim=pass dkdomain=luigi311.com); spf=pass (google.com: domain of linux-kernel+bounces-132204-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-132204-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 43AF91F23765 for ; Thu, 4 Apr 2024 22:29:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8337013C672; Thu, 4 Apr 2024 22:29:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b="VT8yPpxE" Received: from mail-108-mta0.mxroute.com (mail-108-mta0.mxroute.com [136.175.108.0]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 07EC113C3DE for ; Thu, 4 Apr 2024 22:29:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=136.175.108.0 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712269765; cv=none; b=JxW4tBLa716hpVzF5fBAGAxLJbviZmgwz9t031dHeIc0abGM+8D6cJE1coIXG4WSAbcfZFfzsPstQHey8KKcgqVb7gJn5ZM7VPeaGj6JUwdCCzXOA/NkJ7QTWvj2KXRpZHPk18GND630BrLt9MH90J/rtQEM4UPUc0pXnsgXcMs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712269765; c=relaxed/simple; bh=7gOnPN1J8zc+sOjKnhu29RZ/HZGY4Msw0cPdBeM4CQw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZN2YZC3cdSScTftiKXSBM78U8gEn3HYIiPx2XF5iWN1B6IzDRgxlMqNulFnZVQ71wKJspzro0a0SXFNiKiOg0Nx9WtPBglO5u5tGhaUWuV/yPuSiz8qHM9TeUt1l+MoJRrDOt7qMcLZLCAmPVoV4cWVEv8vahmGzIYAXP5/e0hY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com; spf=pass smtp.mailfrom=luigi311.com; dkim=pass (2048-bit key) header.d=luigi311.com header.i=@luigi311.com header.b=VT8yPpxE; arc=none smtp.client-ip=136.175.108.0 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=luigi311.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=luigi311.com Received: from filter006.mxroute.com ([136.175.111.2] filter006.mxroute.com) (Authenticated sender: mN4UYu2MZsgR) by mail-108-mta0.mxroute.com (ZoneMTA) with ESMTPSA id 18eab3b056b0003bea.010 for (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384); Thu, 04 Apr 2024 22:29:15 +0000 X-Zone-Loop: ad945ab57d7fbfae2dbfb73d6889e480d0a8a3f0fa75 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=luigi311.com; s=x; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=b0vJntwX4Lap8ep/ms4s2qljGex8NbqYYt5JzOJnwNk=; b=VT8yPpxETHdqpbnHBBV74VKE38 LlhHBt61GXAtPGRCgkd4bAC67Inwzf7tnU0sITgWiXRDE8BiQ0wlxsrSqk+DuZcaO4aaBvRva9Jzz hNPVirkAFp3MeQP9Xq8U/bABDC+FiQQt5JdX3pmeOkOu8c1m4T0ysTALzEQ7VvAVlrXWk8Kpm1yCU pUN6eCaFwnAivyDEs0pYjb4qiXpgazk1D2v6o4RXFVlwJc2CPlay5JN40sCigInJXO5G5Vevslv+i nM6iO21uhfOR4dTxVooMzNJg7SqX1BKf/MY+A3WTgO9+HUBdDGC9aTfC2GK2LlRHw1f1b2w5jZ0Vn wajJm28Q==; Message-ID: <6c15e492-411a-40aa-b02e-83b8a6d107da@luigi311.com> Date: Thu, 4 Apr 2024 16:29:11 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v3 12/25] media: i2c: imx258: Allow configuration of clock lane behaviour To: Pavel Machek 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 References: <20240403150355.189229-1-git@luigi311.com> <20240403150355.189229-13-git@luigi311.com> Content-Language: en-US From: Luigi311 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Authenticated-Id: git@luigi311.com On 4/3/24 12:48, Pavel Machek wrote: > Hi! > >> The sensor supports the clock lane either remaining in HS mode >> during frame blanking, or dropping to LP11. >> >> Add configuration of the mode via V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK. > >> + ret = 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 > I assume you mean by using !!(imx258->csi2_flags & V4L2_MBUS_CSI2_NONCONTINUOUS_CLOCK) I can go ahead and use that instead