Skip to contentSkip to conversation

linux-yocto: Remove Rock Pi 4 patch for serial

PATCH In review Joshua Watt 2 participants 4 messages Jan 23, 2021 – Jan 25, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 linux-yocto: Remove Rock Pi 4 patch for serial

Upstream OE Core has moved to Kernel 5.10 which fixed this problem, so remove the patch for 5.8

---
 ...-resolve-supply-after-creating-regul.patch | 53 -------------------
 recipes-kernel/linux/linux-yocto_5.8.bbappend |  4 --
 2 files changed, 57 deletions(-)
 delete mode 100644 recipes-kernel/linux/linux-yocto/0001-Revert-regulator-resolve-supply-after-creating-regul.patch
 delete mode 100644 recipes-kernel/linux/linux-yocto_5.8.bbappend
recipes-kernel/linux/linux-yocto/0001-Revert-regulator-resolve-supply-after-creating-regul.patch deleted +0 -53
deleted file mode 100644
index 3dd336b..0000000
@@ -1,53 +0,0 @@
-From a414d39b848002e15531f2538d2b6427ce51d07d Mon Sep 17 00:00:00 2001
-From: Joshua Watt <[email protected]>
-Date: Thu, 10 Dec 2020 15:59:47 -0600
-Subject: [PATCH] Revert "regulator: resolve supply after creating regulator"
-
-This commit prevents the serial console from working on the Rock Pi 4
-for some reason. It *appears* to possibly be fixed by some other commit
-upstream, but after a lot of head scratching and bisecting, I was unable
-to find which one, so just revert it for now and we can deal with it
-later.
-
-This reverts commit 96c6b5d5775637b3095ef934f871044811fd4db7.
-
----
- drivers/regulator/core.c | 21 ++++++++-------------
- 1 file changed, 8 insertions(+), 13 deletions(-)
-
-diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
-index 25e601bf9383..be8c709a7488 100644
---- a/drivers/regulator/core.c
-+++ b/drivers/regulator/core.c
-@@ -5187,20 +5187,15 @@ regulator_register(const struct regulator_desc *regulator_desc,
- 	else if (regulator_desc->supply_name)
- 		rdev->supply_name = regulator_desc->supply_name;
- 
-+	/*
-+	 * Attempt to resolve the regulator supply, if specified,
-+	 * but don't return an error if we fail because we will try
-+	 * to resolve it again later as more regulators are added.
-+	 */
-+	if (regulator_resolve_supply(rdev))
-+		rdev_dbg(rdev, "unable to resolve supply\n");
-+
- 	ret = set_machine_constraints(rdev, constraints);
--	if (ret == -EPROBE_DEFER) {
--		/* Regulator might be in bypass mode and so needs its supply
--		 * to set the constraints */
--		/* FIXME: this currently triggers a chicken-and-egg problem
--		 * when creating -SUPPLY symlink in sysfs to a regulator
--		 * that is just being created */
--		ret = regulator_resolve_supply(rdev);
--		if (!ret)
--			ret = set_machine_constraints(rdev, constraints);
--		else
--			rdev_dbg(rdev, "unable to resolve supply early: %pe\n",
--				 ERR_PTR(ret));
--	}
- 	if (ret < 0)
- 		goto wash;
- 
--- 
-2.29.2
-
recipes-kernel/linux/linux-yocto_5.8.bbappend deleted +0 -4
deleted file mode 100644
index 5a31842..0000000
@@ -1,4 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-SRC_URI_append_rock-pi-4 = " file://0001-Revert-regulator-resolve-supply-after-creating-regul.patch"
-
Signature · 1 line
2.30.0
#1 lore raw
Quoted 2 lines · Joshua Watt

Upstream OE Core has moved to Kernel 5.10 which fixed this problem, so remove the patch for 5.8

Thanks, I've already pushed a patch for this one.

#2 lore raw
Quoted 4 lines · Trevor Woerner
Quoted 2 lines · Joshua Watt

Upstream OE Core has moved to Kernel 5.10 which fixed this problem, so remove the patch for 5.8

Thanks, I've already pushed a patch for this one.

Ya, I saw that. We should probably remove the .patch file also.

#3 lore raw
Quoted 8 lines · Joshua Watt
Quoted 4 lines · Trevor Woerner
Quoted 2 lines · Joshua Watt

Upstream OE Core has moved to Kernel 5.10 which fixed this problem, so remove the patch for 5.8

Thanks, I've already pushed a patch for this one.

Ya, I saw that. We should probably remove the .patch file also.

D'oh! Thanks.