Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796378139; b=Y4aGOEP/HZ+t89J6T4FFF4kx5gvjGCpVxsD7NnQF8rrYZYvz5rnQX2dWiOBOTeUBEB9i G65q6ZdxlTx/o1w6kGI2pjq0w1gF+zXEYibXKrcF2hVc7FqiVijQEmyD+lAtqGzas3uHI 6+EUbTX/AM0HgtzNwgsrQpE2Wb3HuExXNstHvDwn6XokzmwFx3/3znhZCZypoak7thisU zDPgbBcb2eSrybrHVzAmnutER2G/GM0NQ2XMLmdCg0J+VkaplTXdBOyw8WERPVmaseNI5 xKlUj7OJkKM71LO98G1GILgOxcDSId0TYcFjsg2W+rpiHt/WXC3aPRexv9EX+/p3NBw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796378139; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date: Organization:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=/L0BvwlwuGVkYmcyuN3YDl07etYLQw7tbwuiqfFrt3w=; b=bijK7H/oYiiUMPlrrgs5sWlqaPiQTqlseVBav00hhVaeTwobzbZPHDvVPqtRXfOx4G/u lR0siHUvCzTff+xysrSyIXFBwWExX0Favr+XrAd5etN73iRZKG7WCcDcIaZ2ecxxcqIyQ MRP4Nq6ZsMF8qWHyfBjNqjxiwF6Xpg30LRp2KxKmoioyv1ELWAFv8JlBaV3KPGVMSEbcI zcY0rU11AR5Zuf496kJ0bWbFtHouo+MT3F2UyfbBf4b4ofY+a3tzT3SBTeHX0Nm7+pWxm xeQ+NLYOU6Uqbpc5bJpvPpPhjvVMFqJB90EboCC0C9rva0BEBRzgKTOjGEgdLgDpP9Q== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=linux.intel.com; spf=pass smtp.mailfrom=linux.intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=SkC83CAD; arc=none smtp.remote-ip=198.175.65.13 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B6559606A32C for ; Fri, 4 Dec 2026 09:55:38 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B6559606A32C Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=SkC83CAD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796378139; x=1827914139; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=/L0BvwlwuGVkYmcyuN3YDl07etYLQw7tbwuiqfFrt3w=; b=SkC83CADVOs9ZBb3aZyJaA8toGciQzxohtBBxe8UgMNBYiceXsdDZQor IuHfNTYSyZR/813OF8LqpHVtiDWp+9DEWb2cjFAm1uwgAhoTZkpWGBpr7 L8mPz+AH44hooJlDGRFNQZS0ggVxMwvpDDKEIOKFq9p0PviMei80pntzD OCDBI3R2AmaZSiC2T5T5WxAWo0c0e406WBnqdzYiSui+F8SIf3Ni5FJCg ug7AlyZF4KlzQK2jvFKrF9aS1FJJCiH1w7+ZvJQBeG+3wBm7rzyeyp0eR A9oW6B4Z1nQTbtv09sp3NJgCpTpe3EVTiW22i82xWkLrJmJwwYD6CHXBf w==; X-CSE-ConnectionGUID: S+hpbuk9THSb9MKgepDKgQ== X-CSE-MsgGUID: PDYsMayqRLyUO9eR3rtw1w== X-IronPort-AV: E=McAfee;i="6800,10657,11985"; a="5268754" X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="5268754" Received: from orviesa001.jf.intel.com ([10.64.159.141]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:55:39 -0800 X-CSE-ConnectionGUID: DvASGddKS9muE6+2CfRQhg== X-CSE-MsgGUID: 6khDjlmJTjWecuj4vGBZLA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.29,78,1794902400"; d="scan'208";a="14240362" Received: from ettammin-mobl2.ger.corp.intel.com (HELO kekkonen.fi.intel.com) ([10.245.244.252]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Dec 2026 01:55:37 -0800 Received: from kekkonen.localdomain (localhost [IPv6:::1]) by kekkonen.fi.intel.com (Postfix) with SMTP id 12CFA121B40; Fri, 04 Dec 2026 11:55:36 +0200 (EET) Date: Fri, 4 Dec 2026 11:55:36 +0200 Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: "Sodhi, Vunny" Cc: "linux-media@vger.kernel.org" , "dave.stevenson@raspberrypi.com" Subject: Re: [PATCH v5 2/2] media: i2c: add isx031 sensor driver Message-ID: References: <20261203052944.1059314-3-vunny.sodhi@intel.com> X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Vunny, On Fri, Dec 04, 2026 at 05:10:39AM +0000, Sodhi, Vunny wrote: > > > +static int isx031_resume(struct device *dev) { > > > + struct i2c_client *client = to_i2c_client(dev); > > > + struct v4l2_subdev *sd = i2c_get_clientdata(client); > > > + struct isx031 *isx031 = to_isx031(sd); > > > + int ret; > > > + > > > + ret = isx031_power_on(isx031); > > > + if (ret) > > > + return ret; > > > + > > > + return cci_multi_reg_write(isx031->regmap, isx031_init_reg, > > > + ARRAY_SIZE(isx031_init_reg), NULL); > > > > Are there cases where the init register sequence doesn't need to be written to > > the sensor? > > > > Yes. On boards with no reset GPIO. > With a reset GPIO the registers are cleared on every power off, so the > sequence is always needed. > Without a reset GPIO, a runtime suspend only puts the > sensor into standby, so rewriting is likely redundant. However, the That's not quite true. When the device is in RPM_SUSPENDED state, it is probably powered off -- whether there's a reset GPIO or not. Btw. someone said the reset framework should also work on ACPI but I haven't tested it. We probably should make it work on ACPI if it doesn't but that's out of scope of this I think. -- Regards, Sakari Ailus