mirror of
https://github.com/armbian/build.git
synced 2025-08-09 12:46:58 +02:00
* sunxi-6.0: initial state: add megous patches to series * sunxi-6.0: Switch to v6.0.1 * wifi: Limit the version 6.0 for Realtek 88x2cs chipsets * Adjust kernel configs * Remove not needed patches * Adjust broken patches Co-authored-by: Igor <igor@armbian.com>
29 lines
851 B
Diff
29 lines
851 B
Diff
From 783b5bcbadca9eacde7717ce1bd4535eb1436b6e Mon Sep 17 00:00:00 2001
|
|
From: Ondrej Jirman <megi@xff.cz>
|
|
Date: Sat, 21 May 2022 15:09:17 +0200
|
|
Subject: [PATCH 315/486] media: i2c: imx258: Powerdown the sensor if clock
|
|
enable fails
|
|
|
|
This was missing.
|
|
|
|
Signed-off-by: Ondrej Jirman <megi@xff.cz>
|
|
---
|
|
drivers/media/i2c/imx258.c | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/drivers/media/i2c/imx258.c b/drivers/media/i2c/imx258.c
|
|
index 2570b51e4..4491c3d44 100644
|
|
--- a/drivers/media/i2c/imx258.c
|
|
+++ b/drivers/media/i2c/imx258.c
|
|
@@ -1040,6 +1040,7 @@ static int imx258_power_on(struct device *dev)
|
|
ret = clk_prepare_enable(imx258->clk);
|
|
if (ret) {
|
|
dev_err(dev, "failed to enable clock\n");
|
|
+ gpiod_set_value_cansleep(imx258->pwdn_gpio, 1);
|
|
regulator_bulk_disable(IMX258_SUPPLY_COUNT, imx258->supplies);
|
|
return ret;
|
|
}
|
|
--
|
|
2.35.3
|
|
|