Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com [209.85.167.47]) (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 C57DF3EFD02 for ; Wed, 10 Jun 2026 10:22:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781086930; cv=none; b=lAbyD9kE2zBw/EBoTdN27RQ84fdsklxBxm5YOxVg3xiOt3i//+7oSXt7bKh/G1ihoFFcCcDa4+4li7WoWUHrwu6gN+bL+MAzPMcYwLln9pyvoAVl3njD4difWMS9l+exV9LFdxGSLAHVrl9ttr0KOz0nce0TnoVekRAQZay5IW8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781086930; c=relaxed/simple; bh=4oupHqRhfmKgaNh7Ugk99JSUj7UE/gZXIdaYS1QWCfU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: Content-Type:MIME-Version; b=YvbIi8C8cVNqXerFE/IC0PPBrk2Y7yXvRQLb/ruru2ZoyAnhUr4PGe4mcyTeSfK4uIxFoXJ7a0FZWE6mTewv6butv7RrwednEk+k0A3aDmxv5+pV9VqEqnrpM+t9xayKaJWk5xjCWwRlPMrRBMSvwQuCJMHRPdrsFU6JXbYw6eE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EhC9/tLd; arc=none smtp.client-ip=209.85.167.47 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EhC9/tLd" Received: by mail-lf1-f47.google.com with SMTP id 2adb3069b0e04-5aa7bf3d512so6326623e87.2 for ; Wed, 10 Jun 2026 03:22:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1781086927; x=1781691727; darn=vger.kernel.org; h=mime-version:content-transfer-encoding:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=4oupHqRhfmKgaNh7Ugk99JSUj7UE/gZXIdaYS1QWCfU=; b=EhC9/tLdeFxgHSNeCqwKmq5C2AdSvKA5CPSX/8b1UuaMNhLsEocp7lbR0nxaV2JdRJ BHRVoWidRDdaGTP3o/YeIkhV2ib0a0wKAdAYtbimvk2OOnYGn1aIIupT1YMNPJPcW9T/ fPt3S2LE8WG444YEr+JToAhF+Yc4au1NtaXXA5vhkjn17954WrVjAn4qYHHqtxvh7J9O W48NbzcS49medL/a3AG9gTOIjELDJVVSmgoJluEC9wKNLc4I7PLqD2m2eek2jpwHOStm 9kcFVv0zCvLldG4djR1GxbdpoYDLe20hDeedWIs5RPSP/+QOFIu49CDO8gIDhRgpYbta 7umA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781086927; x=1781691727; h=mime-version:content-transfer-encoding:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=4oupHqRhfmKgaNh7Ugk99JSUj7UE/gZXIdaYS1QWCfU=; b=W7UumYFS5z57mAhWEZC/d7cXycGnXUeLSD/KUdlrwCsitj+M5OgKOS5Gi9ex4obkA0 BEhXrHfWe8ChkMrNrbmnluiI0UZJNctGBAXHoU3OkS5udLNSqbNz/xlc5H5A5ES352Dv 8nlNJl1GC0eUq1EJSU+UJa9sUOG+Lh73fl7igHRIDNE3oV8Ye7/gdFOkkIu/A02SbnGD ftURLXxPdOn+KrZVojbZ2ca+Dkx6JdyQ9Z/dxEHC1MhEQv/q0oh/9yGaRLiZHd68HyoV d6JdnSHrOscavaayy/4hYfE+6ERZxYUAjLGg892UqBljSwNNq80hnvOKL3eVexMA9STE ZhZA== X-Forwarded-Encrypted: i=1; AFNElJ9vWEkkvfGQwzECd7x00W08z1WZMyH/VI148QYaXhlzK/afCAv+OTOFsVhvYhfSOJxPAO6PkXG10qIeyg==@vger.kernel.org X-Gm-Message-State: AOJu0YwehzORmvlXhgvV7B7Cdq6vWzLrmhIiDaLCGvGVQ8JDtghlTHaU RBqTWk0buiiu/hx1P7uMG2IzDNsoWCOGMlcp6BU4DD9LmbRSKRU4PR6Ow9RzP2Dc X-Gm-Gg: Acq92OFYuJsunXCpdA14da86MbPVFpqA6UczBzIH4abJS2+1H/WLGTAaa5scOrmQ3fM 54IAxzVQGOPyxe6aoE0cz45g3zp6b/dBhj5phmaCu8VPC29Fl596PbxgqEAObSTCLMfVw2aH/B5 5YXMbcWO6AGntwj4l94ob5J50ZY8BD5Rz9tKP76gVd83yH3L/SBYbXPkSL/JkEZ1FQcDcO3kHDq LETD3totNJKxO4S7Ozn4Bp7t9e9NqLXRNGTn1qE7Vvfuwi8FiRKUoz6G3SSgcgGOJLQBnnc5cUa ha2qAvwz4ynA7W1H1nFilnqvhgEzXhoDv3O10z3M3NJhnKj7CEv57kPRt3+f0OdeEsf1dKhDHC1 e7sZP6S7BCrF50qwYLFK2OD+JPrpFwcg7JIWHtpEHawUsMHjBqdfCj1TvY/fc7zL8qwn4y44P9x sUMcna058J2Is4A+SkJGqEb1eB1WDYN9ldqwgmY10bv6C4Df7Jd9XrLCx9nSB2R3w7xmt6U4Vdz Wvp5ToLsZwvRSIwdn9X4w== X-Received: by 2002:a05:6512:2215:b0:5ad:a04:e62a with SMTP id 2adb3069b0e04-5ad0a04e713mr1965406e87.33.1781086926795; Wed, 10 Jun 2026 03:22:06 -0700 (PDT) Received: from [127.0.1.1] ([79.106.123.139]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5aa7b8ed718sm5200547e87.14.2026.06.10.03.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2026 03:22:06 -0700 (PDT) From: Jurison Murati To: Sakari Ailus Cc: Daniel Scally , Hans de Goede , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: Re: [PATCH 1/2] media: i2c: ov8865: Program the mode on stream start if needed In-Reply-To: References: <20260609232255.13559-1-eng.juri@gmail.com> Date: Wed, 10 Jun 2026 12:22:05 +0200 Message-ID: <178108692522.7090.10506614009429499848@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Sakari, Thanks for the review. > We'd rather like to get rid of state outside sub-device state, not add more > of it. > > Could you simply write the configuration to the sensor when it changes? Right, that's nicer. I've done it the way Dan suggested in his reply: the configuration is now written unconditionally at stream start, and the runtime PM resume handler only writes it when resuming with the stream already started. No new driver state needed. Sent as v2, retested on the Surface Book 2 in the original failing configuration. Regards, Jurison