From patchwork Sat Nov 25 18:20:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alain Volmat X-Patchwork-Id: 17102 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce62:0:b0:403:3b70:6f57 with SMTP id o2csp2093085vqx; Sat, 25 Nov 2023 10:22:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IEUeSY3dBip33C+Yt8EC1WqK0+X+scbwzYE6MGareicqCR4mn4qKKJt6dSazwSk5TA8DNO7 X-Received: by 2002:a17:903:2286:b0:1cf:ba46:e402 with SMTP id b6-20020a170903228600b001cfba46e402mr1541382plh.54.1700936567879; Sat, 25 Nov 2023 10:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700936567; cv=none; d=google.com; s=arc-20160816; b=o1+3cLp9NFuEMbnAnvft3dS7ybRIXmwIRlq/rwzp0emlBcUfsPDXuD1v9PZFGlhxsf sF7TEEdApRYYgz2uewD0Me7qPaWThiNrWU6xNBD1Xx52NHhxbO7Bw0x6ff7Zw19Ojmt1 KO/XUx9msW2jVqdjXpC+ga6am42PmItFoz2sg9NoMSMCbvrusUCcZP3sIOb3DiG8l0ja h4r7p9aVYymeY7cpcNHdcY7KB96UTX8T9NYlIpNQj7kM/WXbwGgrlDzTcrxj1wqpgx77 Fky8fMbCvQEvAzQHCApvCNxnANzdqrQFiuxgIE4wW7bZb5W4lIoJnkXcchwH5SWvreXU 8now== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=inDdaKDBJ7Lk9j8vpS8o5PFTDNd1Ufx2FGDjeXB/H1Y=; fh=aATIuJQBPIMUXucEnWXDVLrPAQTYMg8TXITJvQquOpU=; b=ONsOe/qDH3RV9fbhlu32jdPoy9sbvlLD8D5RDSHvwVBRGYcX/rDLFmqs90BU4Bc2sS KO99myHhqzDuHShqFOrIJc5SuyFC1TAol3XsPEm/IzZasxjsksUXzcaYo7bWvGef8qWr I17cjNU2P8qCvpuzc2fZWll7BC2feNff2tT5aVhvLc4nhvw+/bGIXwBKTRUBPhNKNGdB UGnW9gkrun3gyp0UhKTsGNaj0KmRYjeaUu516xApkgBNFsoLh4T1waR+khX8TS8R2O3N BosPJYL9YkcCBBEwNv0yziigUWjh9NuKQe3DoQkCdIFE3je51pYlphHFUwIBQNqwYLG+ OQ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=zARPnbEd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ju12-20020a170903428c00b001cf58065627si5925002plb.303.2023.11.25.10.22.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Nov 2023 10:22:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@foss.st.com header.s=selector1 header.b=zARPnbEd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=foss.st.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 8AE658061B41; Sat, 25 Nov 2023 10:22:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231904AbjKYSWa (ORCPT + 99 others); Sat, 25 Nov 2023 13:22:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbjKYSW1 (ORCPT ); Sat, 25 Nov 2023 13:22:27 -0500 Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EEAC7F0; Sat, 25 Nov 2023 10:22:33 -0800 (PST) Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3AP1kUfe029211; Sat, 25 Nov 2023 19:21:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding:content-type; s=selector1; bh=inDdaKD BJ7Lk9j8vpS8o5PFTDNd1Ufx2FGDjeXB/H1Y=; b=zARPnbEdk4XzEM6YPPCDmOw fWGhSHkmUWWhSBR57y6625RMqWaJAQ/zC5cvw6t82WL2zucisa8AcO2qS4NXgwdV bGvbrAfONCsk/nc8SoETVTD8iM2zN9IC6GUwgsJ16Ff7OZPzAGkx/W4a5uYuxP0j QzFDH7u9zARLOki8K2oOYQOq0TVfyiV4Lh7VrmNd7AWIVydlC6TRVfmmtJ6ea5c/ ULeZKvNh8+sUEe2opcJdNakW09d925bRjOoWNQ5F1LxLOA3CeBE8fmKq3BcoZi3I jKbHCpSic0IAGImzKZidnXewgY65tFR/koM4Y+HvSHGQwX9iaXvEOU+2L3bm7Sg= = Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3uhr8amwcj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 25 Nov 2023 19:21:33 +0100 (CET) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B202D10002A; Sat, 25 Nov 2023 19:21:32 +0100 (CET) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id A757B23C6A4; Sat, 25 Nov 2023 19:21:32 +0100 (CET) Received: from localhost (10.129.178.213) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Sat, 25 Nov 2023 19:21:33 +0100 From: Alain Volmat To: Mauro Carvalho Chehab , Benjamin Mugnier , Sylvain Petinot CC: Sakari Ailus , Alain Volmat , , Subject: [PATCH 0/7] media: i2c: st-mipid02: improvements / cleanups Date: Sat, 25 Nov 2023 19:20:48 +0100 Message-ID: <20231125182057.1379357-1-alain.volmat@foss.st.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Originating-IP: [10.129.178.213] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-25_17,2023-11-22_01,2023-05-22_02 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Sat, 25 Nov 2023 10:22:40 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1783561262668277534 X-GMAIL-MSGID: 1783561262668277534 Various improvements of the st-mipid02 bridge such as usage cci_* helpers, active state, v4l2_get_link_freq ... Alain Volmat (7): media: i2c: st-mipid02: add usage of v4l2_get_link_freq media: i2c: st-mipid02: don't keep track of streaming status media: i2c: st-mipid02: use cci_* helpers for register access. media: i2c: st-mipid02: use active state to store pad formats media: i2c: st-mipid02: use mipi-csi macro for data-type media: i2c: st-mipid02: removal of unused link_frequency variable media: i2c: st-mipid02: add Y8 format support drivers/media/i2c/Kconfig | 1 + drivers/media/i2c/st-mipid02.c | 481 +++++++++++---------------------- 2 files changed, 153 insertions(+), 329 deletions(-)