All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state
@ 2022-05-10 15:12 Jimmy Su
  2022-05-18 17:15 ` Sakari Ailus
  0 siblings, 1 reply; 5+ messages in thread
From: Jimmy Su @ 2022-05-10 15:12 UTC (permalink / raw)
  To: linux-media; +Cc: sakari.ailus, andy.yeh, jimmy.su, yhuang, akeem.chen

To skip OTP read function while enable non-zero ACPI D state.
This OTP read only influences streaming output with 3280x2464 &
1640x1232 resolution.

Signed-off-by: Jimmy Su <jimmy.su@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
---
 drivers/media/i2c/ov8856.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/drivers/media/i2c/ov8856.c b/drivers/media/i2c/ov8856.c
index 8785764b7a74..f1bb7d882183 100644
--- a/drivers/media/i2c/ov8856.c
+++ b/drivers/media/i2c/ov8856.c
@@ -1448,6 +1448,9 @@ struct ov8856 {
 
 	/* True if the device has been identified */
 	bool identified;
+
+	/* True for skipping otp read */
+	bool acpi_skip_otp;
 };
 
 struct ov8856_lane_cfg {
@@ -1692,7 +1695,7 @@ static int ov8856_identify_module(struct ov8856 *ov8856)
 {
 	struct i2c_client *client = v4l2_get_subdevdata(&ov8856->sd);
 	int ret;
-	u32 val;
+	u32 val, width;
 
 	if (ov8856->identified)
 		return 0;
@@ -1708,6 +1711,10 @@ static int ov8856_identify_module(struct ov8856 *ov8856)
 		return -ENXIO;
 	}
 
+	width = ov8856->cur_mode->width;
+	if (ov8856->acpi_skip_otp & ((width == 3280) | (width == 1640)))
+		goto otp_skip;
+
 	ret = ov8856_write_reg(ov8856, OV8856_REG_MODE_SELECT,
 			       OV8856_REG_VALUE_08BIT, OV8856_MODE_STREAMING);
 	if (ret)
@@ -1750,6 +1757,11 @@ static int ov8856_identify_module(struct ov8856 *ov8856)
 
 	ov8856->identified = true;
 
+	return 0;
+
+otp_skip:
+	ov8856->identified = true;
+
 	return 0;
 }
 
@@ -2499,6 +2511,8 @@ static int ov8856_probe(struct i2c_client *client)
 			dev_err(&client->dev, "failed to find sensor: %d", ret);
 			goto probe_power_off;
 		}
+	} else {
+		ov8856->acpi_skip_otp = true;
 	}
 
 	mutex_init(&ov8856->mutex);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state
  2022-05-10 15:12 [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state Jimmy Su
  2022-05-18 17:15 ` Sakari Ailus
@ 2022-05-16 11:30 ` Dan Carpenter
  0 siblings, 0 replies; 5+ messages in thread
From: kernel test robot @ 2022-05-13  3:48 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 6681 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
In-Reply-To: <20220510151241.12435-1-jimmy.su@intel.com>
References: <20220510151241.12435-1-jimmy.su@intel.com>
TO: Jimmy Su <jimmy.su@intel.com>
TO: linux-media(a)vger.kernel.org
CC: sakari.ailus(a)linux.intel.com
CC: andy.yeh(a)intel.com
CC: jimmy.su(a)intel.com
CC: yhuang(a)ovt.com
CC: akeem.chen(a)ovt.com

Hi Jimmy,

I love your patch! Perhaps something to improve:

[auto build test WARNING on media-tree/master]
[also build test WARNING on v5.18-rc6 next-20220512]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]

url:    https://github.com/intel-lab-lkp/linux/commits/Jimmy-Su/UPSTREAM-media-ov8856-skip-OTP-read-in-non-zero-ACPI-D-state/20220510-232606
base:   git://linuxtv.org/media_tree.git master
:::::: branch date: 3 days ago
:::::: commit date: 3 days ago
config: nios2-randconfig-m031-20220512 (https://download.01.org/0day-ci/archive/20220513/202205131109.giBGpLnO-lkp(a)intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/media/i2c/ov8856.c:1715 ov8856_identify_module() warn: maybe use && instead of &

vim +1715 drivers/media/i2c/ov8856.c

879347f0c258cf Ben Kao    2019-01-15  1693  
0e014f1a8d546f Bingbu Cao 2021-12-15  1694  static int ov8856_identify_module(struct ov8856 *ov8856)
0e014f1a8d546f Bingbu Cao 2021-12-15  1695  {
0e014f1a8d546f Bingbu Cao 2021-12-15  1696  	struct i2c_client *client = v4l2_get_subdevdata(&ov8856->sd);
0e014f1a8d546f Bingbu Cao 2021-12-15  1697  	int ret;
25bf233398211c Jimmy Su   2022-05-10  1698  	u32 val, width;
0e014f1a8d546f Bingbu Cao 2021-12-15  1699  
0e014f1a8d546f Bingbu Cao 2021-12-15  1700  	if (ov8856->identified)
0e014f1a8d546f Bingbu Cao 2021-12-15  1701  		return 0;
0e014f1a8d546f Bingbu Cao 2021-12-15  1702  
0e014f1a8d546f Bingbu Cao 2021-12-15  1703  	ret = ov8856_read_reg(ov8856, OV8856_REG_CHIP_ID,
0e014f1a8d546f Bingbu Cao 2021-12-15  1704  			      OV8856_REG_VALUE_24BIT, &val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1705  	if (ret)
0e014f1a8d546f Bingbu Cao 2021-12-15  1706  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1707  
0e014f1a8d546f Bingbu Cao 2021-12-15  1708  	if (val != OV8856_CHIP_ID) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1709  		dev_err(&client->dev, "chip id mismatch: %x!=%x",
0e014f1a8d546f Bingbu Cao 2021-12-15  1710  			OV8856_CHIP_ID, val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1711  		return -ENXIO;
0e014f1a8d546f Bingbu Cao 2021-12-15  1712  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1713  
25bf233398211c Jimmy Su   2022-05-10  1714  	width = ov8856->cur_mode->width;
25bf233398211c Jimmy Su   2022-05-10 @1715  	if (ov8856->acpi_skip_otp & ((width == 3280) | (width == 1640)))
25bf233398211c Jimmy Su   2022-05-10  1716  		goto otp_skip;
25bf233398211c Jimmy Su   2022-05-10  1717  
0e014f1a8d546f Bingbu Cao 2021-12-15  1718  	ret = ov8856_write_reg(ov8856, OV8856_REG_MODE_SELECT,
0e014f1a8d546f Bingbu Cao 2021-12-15  1719  			       OV8856_REG_VALUE_08BIT, OV8856_MODE_STREAMING);
0e014f1a8d546f Bingbu Cao 2021-12-15  1720  	if (ret)
0e014f1a8d546f Bingbu Cao 2021-12-15  1721  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1722  
0e014f1a8d546f Bingbu Cao 2021-12-15  1723  	ret = ov8856_write_reg(ov8856, OV8856_OTP_MODE_CTRL,
0e014f1a8d546f Bingbu Cao 2021-12-15  1724  			       OV8856_REG_VALUE_08BIT, OV8856_OTP_MODE_AUTO);
0e014f1a8d546f Bingbu Cao 2021-12-15  1725  	if (ret) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1726  		dev_err(&client->dev, "failed to set otp mode");
0e014f1a8d546f Bingbu Cao 2021-12-15  1727  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1728  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1729  
0e014f1a8d546f Bingbu Cao 2021-12-15  1730  	ret = ov8856_write_reg(ov8856, OV8856_OTP_LOAD_CTRL,
0e014f1a8d546f Bingbu Cao 2021-12-15  1731  			       OV8856_REG_VALUE_08BIT,
0e014f1a8d546f Bingbu Cao 2021-12-15  1732  			       OV8856_OTP_LOAD_CTRL_ENABLE);
0e014f1a8d546f Bingbu Cao 2021-12-15  1733  	if (ret) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1734  		dev_err(&client->dev, "failed to enable load control");
0e014f1a8d546f Bingbu Cao 2021-12-15  1735  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1736  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1737  
0e014f1a8d546f Bingbu Cao 2021-12-15  1738  	ret = ov8856_read_reg(ov8856, OV8856_MODULE_REVISION,
0e014f1a8d546f Bingbu Cao 2021-12-15  1739  			      OV8856_REG_VALUE_08BIT, &val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1740  	if (ret) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1741  		dev_err(&client->dev, "failed to read module revision");
0e014f1a8d546f Bingbu Cao 2021-12-15  1742  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1743  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1744  
0e014f1a8d546f Bingbu Cao 2021-12-15  1745  	dev_info(&client->dev, "OV8856 revision %x (%s) at address 0x%02x\n",
0e014f1a8d546f Bingbu Cao 2021-12-15  1746  		 val,
0e014f1a8d546f Bingbu Cao 2021-12-15  1747  		 val == OV8856_2A_MODULE ? "2A" :
0e014f1a8d546f Bingbu Cao 2021-12-15  1748  		 val == OV8856_1B_MODULE ? "1B" : "unknown revision",
0e014f1a8d546f Bingbu Cao 2021-12-15  1749  		 client->addr);
0e014f1a8d546f Bingbu Cao 2021-12-15  1750  
0e014f1a8d546f Bingbu Cao 2021-12-15  1751  	ret = ov8856_write_reg(ov8856, OV8856_REG_MODE_SELECT,
0e014f1a8d546f Bingbu Cao 2021-12-15  1752  			       OV8856_REG_VALUE_08BIT, OV8856_MODE_STANDBY);
0e014f1a8d546f Bingbu Cao 2021-12-15  1753  	if (ret) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1754  		dev_err(&client->dev, "failed to exit streaming mode");
0e014f1a8d546f Bingbu Cao 2021-12-15  1755  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1756  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1757  
0e014f1a8d546f Bingbu Cao 2021-12-15  1758  	ov8856->identified = true;
0e014f1a8d546f Bingbu Cao 2021-12-15  1759  
25bf233398211c Jimmy Su   2022-05-10  1760  	return 0;
25bf233398211c Jimmy Su   2022-05-10  1761  
25bf233398211c Jimmy Su   2022-05-10  1762  otp_skip:
25bf233398211c Jimmy Su   2022-05-10  1763  	ov8856->identified = true;
25bf233398211c Jimmy Su   2022-05-10  1764  
0e014f1a8d546f Bingbu Cao 2021-12-15  1765  	return 0;
0e014f1a8d546f Bingbu Cao 2021-12-15  1766  }
0e014f1a8d546f Bingbu Cao 2021-12-15  1767  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state
@ 2022-05-16 11:30 ` Dan Carpenter
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2022-05-16 11:30 UTC (permalink / raw)
  To: kbuild, Jimmy Su, linux-media
  Cc: lkp, kbuild-all, sakari.ailus, andy.yeh, jimmy.su, yhuang, akeem.chen

Hi Jimmy,

url:    https://github.com/intel-lab-lkp/linux/commits/Jimmy-Su/UPSTREAM-media-ov8856-skip-OTP-read-in-non-zero-ACPI-D-state/20220510-232606
base:   git://linuxtv.org/media_tree.git master
config: nios2-randconfig-m031-20220512 (https://download.01.org/0day-ci/archive/20220513/202205131109.giBGpLnO-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/media/i2c/ov8856.c:1715 ov8856_identify_module() warn: maybe use && instead of &

vim +1715 drivers/media/i2c/ov8856.c

0e014f1a8d546f Bingbu Cao 2021-12-15  1694  static int ov8856_identify_module(struct ov8856 *ov8856)
0e014f1a8d546f Bingbu Cao 2021-12-15  1695  {
0e014f1a8d546f Bingbu Cao 2021-12-15  1696  	struct i2c_client *client = v4l2_get_subdevdata(&ov8856->sd);
0e014f1a8d546f Bingbu Cao 2021-12-15  1697  	int ret;
25bf233398211c Jimmy Su   2022-05-10  1698  	u32 val, width;
0e014f1a8d546f Bingbu Cao 2021-12-15  1699  
0e014f1a8d546f Bingbu Cao 2021-12-15  1700  	if (ov8856->identified)
0e014f1a8d546f Bingbu Cao 2021-12-15  1701  		return 0;
0e014f1a8d546f Bingbu Cao 2021-12-15  1702  
0e014f1a8d546f Bingbu Cao 2021-12-15  1703  	ret = ov8856_read_reg(ov8856, OV8856_REG_CHIP_ID,
0e014f1a8d546f Bingbu Cao 2021-12-15  1704  			      OV8856_REG_VALUE_24BIT, &val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1705  	if (ret)
0e014f1a8d546f Bingbu Cao 2021-12-15  1706  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1707  
0e014f1a8d546f Bingbu Cao 2021-12-15  1708  	if (val != OV8856_CHIP_ID) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1709  		dev_err(&client->dev, "chip id mismatch: %x!=%x",
0e014f1a8d546f Bingbu Cao 2021-12-15  1710  			OV8856_CHIP_ID, val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1711  		return -ENXIO;
0e014f1a8d546f Bingbu Cao 2021-12-15  1712  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1713  
25bf233398211c Jimmy Su   2022-05-10  1714  	width = ov8856->cur_mode->width;
25bf233398211c Jimmy Su   2022-05-10 @1715  	if (ov8856->acpi_skip_otp & ((width == 3280) | (width == 1640)))

I think Smatch will not print a warning for this if ->acpi_skip_otp is
declared as bool or if Smatch can determine that it is boolean from
the context, but the kbuild-bot does not do cross function analysis.

But to a human, the naming seems pretty likely that ov8856->acpi_skip_otp
so && and & are equivalent.

However && is more readable.

25bf233398211c Jimmy Su   2022-05-10  1716  		goto otp_skip;
25bf233398211c Jimmy Su   2022-05-10  1717  
0e014f1a8d546f Bingbu Cao 2021-12-15  1718  	ret = ov8856_write_reg(ov8856, OV8856_REG_MODE_SELECT,
0e014f1a8d546f Bingbu Cao 2021-12-15  1719  			       OV8856_REG_VALUE_08BIT, OV8856_MODE_STREAMING);
0e014f1a8d546f Bingbu Cao 2021-12-15  1720  	if (ret)
0e014f1a8d546f Bingbu Cao 2021-12-15  1721  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1722  
0e014f1a8d546f Bingbu Cao 2021-12-15  1723  	ret = ov8856_write_reg(ov8856, OV8856_OTP_MODE_CTRL,
0e014f1a8d546f Bingbu Cao 2021-12-15  1724  			       OV8856_REG_VALUE_08BIT, OV8856_OTP_MODE_AUTO);
0e014f1a8d546f Bingbu Cao 2021-12-15  1725  	if (ret) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1726  		dev_err(&client->dev, "failed to set otp mode");
0e014f1a8d546f Bingbu Cao 2021-12-15  1727  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1728  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1729  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state
@ 2022-05-16 11:30 ` Dan Carpenter
  0 siblings, 0 replies; 5+ messages in thread
From: Dan Carpenter @ 2022-05-16 11:30 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 3611 bytes --]

Hi Jimmy,

url:    https://github.com/intel-lab-lkp/linux/commits/Jimmy-Su/UPSTREAM-media-ov8856-skip-OTP-read-in-non-zero-ACPI-D-state/20220510-232606
base:   git://linuxtv.org/media_tree.git master
config: nios2-randconfig-m031-20220512 (https://download.01.org/0day-ci/archive/20220513/202205131109.giBGpLnO-lkp(a)intel.com/config)
compiler: nios2-linux-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>

smatch warnings:
drivers/media/i2c/ov8856.c:1715 ov8856_identify_module() warn: maybe use && instead of &

vim +1715 drivers/media/i2c/ov8856.c

0e014f1a8d546f Bingbu Cao 2021-12-15  1694  static int ov8856_identify_module(struct ov8856 *ov8856)
0e014f1a8d546f Bingbu Cao 2021-12-15  1695  {
0e014f1a8d546f Bingbu Cao 2021-12-15  1696  	struct i2c_client *client = v4l2_get_subdevdata(&ov8856->sd);
0e014f1a8d546f Bingbu Cao 2021-12-15  1697  	int ret;
25bf233398211c Jimmy Su   2022-05-10  1698  	u32 val, width;
0e014f1a8d546f Bingbu Cao 2021-12-15  1699  
0e014f1a8d546f Bingbu Cao 2021-12-15  1700  	if (ov8856->identified)
0e014f1a8d546f Bingbu Cao 2021-12-15  1701  		return 0;
0e014f1a8d546f Bingbu Cao 2021-12-15  1702  
0e014f1a8d546f Bingbu Cao 2021-12-15  1703  	ret = ov8856_read_reg(ov8856, OV8856_REG_CHIP_ID,
0e014f1a8d546f Bingbu Cao 2021-12-15  1704  			      OV8856_REG_VALUE_24BIT, &val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1705  	if (ret)
0e014f1a8d546f Bingbu Cao 2021-12-15  1706  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1707  
0e014f1a8d546f Bingbu Cao 2021-12-15  1708  	if (val != OV8856_CHIP_ID) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1709  		dev_err(&client->dev, "chip id mismatch: %x!=%x",
0e014f1a8d546f Bingbu Cao 2021-12-15  1710  			OV8856_CHIP_ID, val);
0e014f1a8d546f Bingbu Cao 2021-12-15  1711  		return -ENXIO;
0e014f1a8d546f Bingbu Cao 2021-12-15  1712  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1713  
25bf233398211c Jimmy Su   2022-05-10  1714  	width = ov8856->cur_mode->width;
25bf233398211c Jimmy Su   2022-05-10 @1715  	if (ov8856->acpi_skip_otp & ((width == 3280) | (width == 1640)))

I think Smatch will not print a warning for this if ->acpi_skip_otp is
declared as bool or if Smatch can determine that it is boolean from
the context, but the kbuild-bot does not do cross function analysis.

But to a human, the naming seems pretty likely that ov8856->acpi_skip_otp
so && and & are equivalent.

However && is more readable.

25bf233398211c Jimmy Su   2022-05-10  1716  		goto otp_skip;
25bf233398211c Jimmy Su   2022-05-10  1717  
0e014f1a8d546f Bingbu Cao 2021-12-15  1718  	ret = ov8856_write_reg(ov8856, OV8856_REG_MODE_SELECT,
0e014f1a8d546f Bingbu Cao 2021-12-15  1719  			       OV8856_REG_VALUE_08BIT, OV8856_MODE_STREAMING);
0e014f1a8d546f Bingbu Cao 2021-12-15  1720  	if (ret)
0e014f1a8d546f Bingbu Cao 2021-12-15  1721  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1722  
0e014f1a8d546f Bingbu Cao 2021-12-15  1723  	ret = ov8856_write_reg(ov8856, OV8856_OTP_MODE_CTRL,
0e014f1a8d546f Bingbu Cao 2021-12-15  1724  			       OV8856_REG_VALUE_08BIT, OV8856_OTP_MODE_AUTO);
0e014f1a8d546f Bingbu Cao 2021-12-15  1725  	if (ret) {
0e014f1a8d546f Bingbu Cao 2021-12-15  1726  		dev_err(&client->dev, "failed to set otp mode");
0e014f1a8d546f Bingbu Cao 2021-12-15  1727  		return ret;
0e014f1a8d546f Bingbu Cao 2021-12-15  1728  	}
0e014f1a8d546f Bingbu Cao 2021-12-15  1729  

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state
  2022-05-10 15:12 [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state Jimmy Su
@ 2022-05-18 17:15 ` Sakari Ailus
  0 siblings, 0 replies; 5+ messages in thread
From: Sakari Ailus @ 2022-05-18 17:15 UTC (permalink / raw)
  To: Jimmy Su; +Cc: linux-media, andy.yeh, yhuang, akeem.chen

Hi Jimmy,

On Tue, May 10, 2022 at 11:12:41PM +0800, Jimmy Su wrote:
> To skip OTP read function while enable non-zero ACPI D state.
> This OTP read only influences streaming output with 3280x2464 &
> 1640x1232 resolution.

This isn't the right way to fix the problem.

Reading the EEPROM (and thus starting streaming) is a problem since the
receiver has been already set up to receive a proper frame. EEPROM reading
should be instead moved to pre_streamon callback.

I suppose this way the sensor's CSI-2 TX is also set in LP-11 mode, as many
CSI-2 receivers expect.

-- 
Kind regards,

Sakari Ailus

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-18 17:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 15:12 [PATCH v2] UPSTREAM: media: ov8856: skip OTP read in non-zero ACPI D state Jimmy Su
2022-05-18 17:15 ` Sakari Ailus
2022-05-13  3:48 kernel test robot
2022-05-16 11:30 ` Dan Carpenter
2022-05-16 11:30 ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.