diff --git a/patch/kernel/archive/rk3399-4.4/general-add-overlay-configfs.patch b/patch/kernel/archive/rk3399-4.4/general-add-overlay-configfs.patch index 00e1575b1e..21de5729fe 100644 --- a/patch/kernel/archive/rk3399-4.4/general-add-overlay-configfs.patch +++ b/patch/kernel/archive/rk3399-4.4/general-add-overlay-configfs.patch @@ -1,68 +1,15 @@ -Below patch is a squash of following 4 commits borrowed from ayufan's -https://github.com/ayufan-rock64/linux-kernel repo: - From 10df3e207f75a748c1b05e7af09d0b2f2b12eba6 Mon Sep 17 00:00:00 2001 From: Pantelis Antoniou Date: Wed, 3 Dec 2014 13:23:28 +0200 Subject: [PATCH] OF: DT-Overlay configfs interface +Below patch is a squash of following 4 commits borrowed from ayufan's +https://github.com/ayufan-rock64/linux-kernel repo: + This is a port of Pantelis Antoniou's v3 port that makes use of the new upstreamed configfs support for binary attributes. -Original commit message: - -Add a runtime interface to using configfs for generic device tree overlay -usage. With it its possible to use device tree overlays without having -to use a per-platform overlay manager. - -Please see Documentation/devicetree/configfs-overlays.txt for more info. - -Changes since v2: -- Removed ifdef CONFIG_OF_OVERLAY (since for now it's required) -- Created a documentation entry -- Slight rewording in Kconfig - -Changes since v1: -- of_resolve() -> of_resolve_phandles(). - -Originally-signed-off-by: Pantelis Antoniou -Signed-off-by: Phil Elwell - -DT configfs: Fix build errors on other platforms - -Signed-off-by: Phil Elwell - -DT configfs: fix build error - -There is an error when compiling rpi-4.6.y branch: - CC drivers/of/configfs.o -drivers/of/configfs.c:291:21: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] - .default_groups = of_cfs_def_groups, - ^ -drivers/of/configfs.c:291:21: note: (near initialization for 'of_cfs_subsys.su_group.default_groups.next') - -The .default_groups is linked list since commit -1ae1602de028acaa42a0f6ff18d19756f8e825c6. -This commit uses configfs_add_default_group to fix this problem. - -Signed-off-by: Slawomir Stepien - -From 7c930d0617b295e2fafe4a8bc502ef4cd5c45468 Mon Sep 17 00:00:00 2001 -From: Pantelis Antoniou -Date: Thu, 22 Oct 2015 23:30:04 +0300 -Subject: [PATCH] configfs: implement binary attributes - -From 36498b7595961a04acaa389b310d4d215944e4c6 Mon Sep 17 00:00:00 2001 -From: Octavian Purdila -Date: Wed, 23 Mar 2016 14:14:48 +0200 -Subject: [PATCH] configfs: fix CONFIGFS_BIN_ATTR_[RW]O definitions - -From a3c38f867bfbc6a16b1a5230c52ac309c64937e4 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= -Date: Sat, 6 Jan 2018 16:02:37 +0100 -Subject: [PATCH] ayufan: backport of/configfs support for 4.4 - -Change-Id: I848b91dadc837775c3d5b1ddaf8162840fc69a2d +<... snip...> diff --git a/Documentation/devicetree/configfs-overlays.txt b/Documentation/devicetree/configfs-overlays.txt new file mode 100644