* Update buildroot-patches for 2020.11-rc1 buildroot * Update buildroot to 2020.11-rc1 Signed-off-by: Stefan Agner <stefan@agner.ch> * Don't rely on sfdisk --list-free output The --list-free (-F) argument does not allow machine readable mode. And it seems that the output format changes over time (different spacing, using size postfixes instead of raw blocks). Use sfdisk json output and calculate free partition space ourselfs. This works for 2.35 and 2.36 and is more robust since we rely on output which is meant for scripts to parse. * Migrate defconfigs for Buildroot 2020.11-rc1 In particular, rename BR2_TARGET_UBOOT_BOOT_SCRIPT(_SOURCE) to BR2_PACKAGE_HOST_UBOOT_TOOLS_BOOT_SCRIPT(_SOURCE). * Rebase/remove systemd patches for systemd 246 * Drop apparmor/libapparmor from buildroot-external * hassos-persists: use /run as directory for lockfiles The U-Boot tools use /var/lock by default which is not created any more by systemd by default (it is under tmpfiles legacy.conf, which we no longer install). * Disable systemd-update-done.service The service is not suited for pure read-only systems. In particular the service needs to be able to write a file in /etc and /var. Remove the service. Note: This is a static service and cannot be removed using systemd-preset. * Disable apparmor.service for now The service loads all default profiles. Some might actually cause problems. E.g. the profile for ping seems not to match our setup for /etc/resolv.conf: [85503.634653] audit: type=1400 audit(1605286002.684:236): apparmor="DENIED" operation="open" profile="ping" name="/run/resolv.conf" pid=27585 comm="ping" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
59 lines
2.0 KiB
Diff
59 lines
2.0 KiB
Diff
From 4897262a71cbf55d726d9174f5f646897dc13704 Mon Sep 17 00:00:00 2001
|
|
From: Enric Balletbo i Serra <enric.balletbo@collabora.com>
|
|
Date: Wed, 26 Aug 2020 10:15:25 +0200
|
|
Subject: [PATCH 4/5] drm/bridge: ps8640: Print an error if VDO control fails
|
|
|
|
Print an error message inside ps8640_bridge_vdo_control() function when
|
|
it fails so we can simplify a bit the callers, they will only need to
|
|
check the error code.
|
|
|
|
Reviewed-by: Sam Ravnborg <sam@ravnborg.org>
|
|
Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
|
|
---
|
|
drivers/gpu/drm/bridge/parade-ps8640.c | 13 ++++++-------
|
|
1 file changed, 6 insertions(+), 7 deletions(-)
|
|
|
|
diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridge/parade-ps8640.c
|
|
index ce3e8b2da8c9..9f7b7a9c53c5 100644
|
|
--- a/drivers/gpu/drm/bridge/parade-ps8640.c
|
|
+++ b/drivers/gpu/drm/bridge/parade-ps8640.c
|
|
@@ -82,8 +82,11 @@ static int ps8640_bridge_vdo_control(struct ps8640 *ps_bridge,
|
|
ret = i2c_smbus_write_i2c_block_data(client, PAGE3_SET_ADD,
|
|
sizeof(vdo_ctrl_buf),
|
|
vdo_ctrl_buf);
|
|
- if (ret < 0)
|
|
+ if (ret < 0) {
|
|
+ DRM_ERROR("failed to %sable VDO: %d\n",
|
|
+ ctrl == ENABLE ? "en" : "dis", ret);
|
|
return ret;
|
|
+ }
|
|
|
|
return 0;
|
|
}
|
|
@@ -150,10 +153,8 @@ static void ps8640_pre_enable(struct drm_bridge *bridge)
|
|
}
|
|
|
|
ret = ps8640_bridge_vdo_control(ps_bridge, ENABLE);
|
|
- if (ret) {
|
|
- DRM_ERROR("failed to enable VDO: %d\n", ret);
|
|
+ if (ret)
|
|
goto err_regulators_disable;
|
|
- }
|
|
|
|
/* Switch access edp panel's edid through i2c */
|
|
ret = i2c_smbus_write_byte_data(client, PAGE2_I2C_BYPASS,
|
|
@@ -175,9 +176,7 @@ static void ps8640_post_disable(struct drm_bridge *bridge)
|
|
struct ps8640 *ps_bridge = bridge_to_ps8640(bridge);
|
|
int ret;
|
|
|
|
- ret = ps8640_bridge_vdo_control(ps_bridge, DISABLE);
|
|
- if (ret < 0)
|
|
- DRM_ERROR("failed to disable VDO: %d\n", ret);
|
|
+ ps8640_bridge_vdo_control(ps_bridge, DISABLE);
|
|
|
|
gpiod_set_value(ps_bridge->gpio_reset, 1);
|
|
gpiod_set_value(ps_bridge->gpio_powerdown, 1);
|
|
--
|
|
2.25.1
|
|
|