Received: by 2002:ac8:5349:0:b0:427:7d78:cd45 with SMTP id d9csp808053qto; Wed, 20 Dec 2023 04:41:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHOr6E9sKgvUWkUMO4D9iOYHLHY8s/baWVTY8Cv1n+uLRstLhgBUd2267qdqlEFK/nSRb3b X-Received: by 2002:a81:d54e:0:b0:5d7:1940:f3d2 with SMTP id l14-20020a81d54e000000b005d71940f3d2mr14361529ywj.58.1703076062869; Wed, 20 Dec 2023 04:41:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703076062; cv=none; d=google.com; s=arc-20160816; b=kkNIkiIEURfuWVSThiErbcPdOM/X5HgjJwsB9GmPipDf6WTR/dg/Wis7DYmlF7M/CI 0vmFRBOjeyjj7q1j9ghIISk0ueGs2DpvblGg9oJMFZVyIr5qd8Ap6PftHHo+wz+UXEdf mJzoPZESK9k8roFw32ByWXwJChD3aAoLkI4ZWAp9PFt8rWZsacI1losgDelKQ+res0++ FR2rsbAYeTRj2aUpxDg9N7ohxAtpDf0WWwFClrfSegLtLauJZlQxiqch8WMV7LRalS4M hwbu6iFxGlGApuzwiePo3fHBMqqMA0Y2dwjMOT97ody5C6e7sgS/W/7Ntdjp57siAxu+ 20PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=tansLYwKFrwLf+FTBCmiECyWjLm6vQt3tnch7uslfG0=; fh=Di7l8feqr9yKAAJO9eq1aHGXvDNugNJ25/WDuv2vymc=; b=qtSpW5K8cTQSkVB3J5fn2BUaJaPHJ0YFgQqBPayF5QY0Tc5ZdRcodUXZCx29HBqUPW Oi+l4PSjEh0/OVVqJhoCaM/3Gx1uK635qXCaypu74DhTU9o6qB0rDbnggfjUyQhYzIwg eCnzJ1rjd+5AYP+tI7TQXm6NvWszNi4kxjo2ml12wk0WO2iDAVqCfOen6965761Mpryl V1pyVrc1O6IdJ3WuX1y38xekW/aMZ9No1l0ZtQ3zd7QBFAkfDmXFehCE3zyjK2B0TxG3 RAHZ7Y0t8r8YMmsaG07HP7BYNt+X6RWL7+8ZnhUjrmbLqT4qSBB1/iAGkfXjwhrFs+ro riSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUGt3Roa; spf=pass (google.com: domain of linux-kernel+bounces-6906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id l15-20020a05620a0c0f00b007810bac8cc2si2214374qki.749.2023.12.20.04.41.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 04:41:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-6906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=gUGt3Roa; spf=pass (google.com: domain of linux-kernel+bounces-6906-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-6906-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 97ABD1C22C87 for ; Wed, 20 Dec 2023 12:41:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ACDC92577D; Wed, 20 Dec 2023 12:40:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="gUGt3Roa" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f51.google.com (mail-ej1-f51.google.com [209.85.218.51]) (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 752D224A00; Wed, 20 Dec 2023 12:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ej1-f51.google.com with SMTP id a640c23a62f3a-a23566e91d5so461544466b.0; Wed, 20 Dec 2023 04:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703076025; x=1703680825; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tansLYwKFrwLf+FTBCmiECyWjLm6vQt3tnch7uslfG0=; b=gUGt3RoaipSL0PMhRDOozYfUmlv1jUnIcwym+mTd2AqFONvhUuKwvFvDOgs5ryrOTL DPbJ1oNSvBqmZKPAUqRvn4JtM+zC3wajw2XXXd2U/ur7Kj/gdFg6WhqkB++GLcaTnaq6 lS7UV518LHX8Uo4eReAHgK7FFxQaS5YcZ9ROql88vWNhJXuwCHlLzmvzloANvcYikgQa B6vXNoksGA27Jc7LBDve0cC9yCer44fjMK7KBn2PqsvvA9+gHA5EGddPnjLzhAioPprG jb2pdOOIRbF5/9JAaATUAu1kGvL5Z7zWeokHvF5zZZD06lyRA8jdSdCZLqXY2NACGs/9 gWAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703076025; x=1703680825; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=tansLYwKFrwLf+FTBCmiECyWjLm6vQt3tnch7uslfG0=; b=LJZv4KAPRYXdd2lBrNhYrXH4ntSt7/NIdmC0eQx9OEkUaQr9Mv79o69k3k6jlJiSG0 uyJRaALcJLI1BYUvl1Thn5L17icOmCnSFXCLwxfYviX/J/Uil/D4tup9WLjc5r2R42eF ySKbvDkbNKbanqTlJi4x96JXZgQtah322o5V9XeQBoQXe3bbruyhRDvb9ACHQV5Y4/nf 1gUy0Va3ofhSDP1KxRBxGUy2nNRchY3KWekpiMSYteANHih4voUKZfat+e4KnH6I6y52 JZifSEzotvPjzAr4UsLO6pcCo6GwhMF7XatzC5IXav2HYjGIc3bT+l1TzmInCWq595Cd ukHw== X-Gm-Message-State: AOJu0Yzny79NxZt4bK2HP1Awf5M9qlYyVxIWbQfU6TRp6DMjVLP4Hc04 RUlFMpmOmqSpzqa3mjhAAQU= X-Received: by 2002:a17:906:20d4:b0:a23:3571:6c8b with SMTP id c20-20020a17090620d400b00a2335716c8bmr2180336ejc.123.1703076025439; Wed, 20 Dec 2023 04:40:25 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation.station (net-188-217-59-229.cust.vodafonedsl.it. [188.217.59.229]) by smtp.gmail.com with ESMTPSA id d22-20020a170906345600b00a269597d173sm604258ejb.135.2023.12.20.04.40.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Dec 2023 04:40:25 -0800 (PST) From: Tommaso Merciai To: Cc: linuxfancy@googlegroups.com, sakari.ailus@linux.intel.com, laurent.pinchart@ideasonboard.com, martin.hecht@avnet.eu, tomm.merciai@gmail.com, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v3 0/5] media: i2c: alvium: store frame interval in subdev Date: Wed, 20 Dec 2023 13:40:18 +0100 Message-Id: <20231220124023.2801417-1-tomm.merciai@gmail.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi All, The goal of this series as suggested by LPinchart is to remove the following data from alvium_dev struct: - struct v4l2_fract frame_interval; - u64 dft_fr; - u64 min_fr; - u64 max_fr; - u64 fr; And use instead the the newly added storage for frame interval in the subdev state. Last patch fix req_fr check into alvium_s_frame_interval(). This series is made on top of the media_stage tree[1]: - media: i2c: mt9m114: use fsleep() in place of udelay() (02d4e62ae245) - [1] https://git.linuxtv.org/media_stage.git/log/ Tommaso Merciai (5): media: i2c: alvium: removal of dft_fr, min_fr and max_fr media: i2c: alvium: remove the fr field of the alvium_dev structure media: i2c: alvium: inline set_frame_interval into s_frame_interval media: i2c: alvium: store frame interval in subdev state media: i2c: alvium: fix req_fr check into alvium_s_frame_interval() drivers/media/i2c/alvium-csi2.c | 99 +++++++++------------------------ drivers/media/i2c/alvium-csi2.h | 5 -- 2 files changed, 27 insertions(+), 77 deletions(-) -- 2.34.1