Re: [PATCH] platform/x86: intel_pmc_core: export platform global_reset via sysfs.

2021-04-02 Thread Enrico Weigelt, metux IT consult
chine left the factory ? --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net

Re: [PATCH v1 3/7] PCI: New Primary to Sideband (P2SB) bridge support library

2021-04-02 Thread Enrico Weigelt, metux IT consult
-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v2 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs

2021-04-01 Thread Enrico Weigelt, metux IT consult
Can you find out some more details, what these LEDs really had been intented for ? --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free s

Re: [PATCH v3 3/4] watchdog: simatic-ipc-wdt: add new driver for Siemens Industrial PCs

2021-04-01 Thread Enrico Weigelt, metux IT consult
E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v1 0/3] drivers/char: remove /dev/kmem for good

2021-03-31 Thread Enrico Weigelt, metux IT consult
.. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH RFC 0/3] drivers/char: remove /dev/kmem for good

2021-03-31 Thread Enrico Weigelt, metux IT consult
) --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-19 Thread Enrico Weigelt, metux IT consult
Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v2] leds: apu: extend support for PC Engines APU1 with newer firmware

2021-03-18 Thread Enrico Weigelt, metux IT consult
. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-18 Thread Enrico Weigelt, metux IT consult
card is routed to the m2 slot via gpio. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i

Re: [PATCH] init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM

2021-03-18 Thread Enrico Weigelt, metux IT consult
. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: AHCI SATA Runtime PM

2021-03-18 Thread Enrico Weigelt, metux IT consult
off entirely ? --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Enrico Weigelt, metux IT consult
Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Enrico Weigelt, metux IT consult
oned arm64 boxes). At least for profession embedded boards. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linu

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Enrico Weigelt, metux IT consult
: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH 4/4] PCI/sysfs: Allow userspace to query and set device reset mechanism

2021-03-18 Thread Enrico Weigelt, metux IT consult
senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v8] i2c: virtio: add a virtio i2c frontend driver

2021-03-18 Thread Enrico Weigelt, metux IT consult
-- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v2 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs

2021-03-18 Thread Enrico Weigelt, metux IT consult
manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v2 1/4] platform/x86: simatic-ipc: add main driver for Siemens devices

2021-03-18 Thread Enrico Weigelt, metux IT consult
x -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [RFC PATCH v2 0/7] Extend regulator notification support

2021-03-18 Thread Enrico Weigelt, metux IT consult
rt und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v2 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs

2021-03-18 Thread Enrico Weigelt, metux IT consult
Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v2 2/4] leds: simatic-ipc-leds: add new driver for Siemens Industial PCs

2021-03-18 Thread Enrico Weigelt, metux IT consult
Why not calling it simatic_ipc_led_driver ? + .probe = simatic_ipc_leds_probe, + .driver = { + .name = KBUILD_MODNAME, + }, +}; + +module_platform_driver(led_driver); + +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:" KBUILD_MODNAME); +MODULE_AUTHOR("Henning Schild "); --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: EDAC list as Trojan Horse distribution ??

2021-03-18 Thread Enrico Weigelt, metux IT consult
Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [RFC PATCH 07/12] gpio: amd-fch: add oftree probing support

2021-03-18 Thread Enrico Weigelt, metux IT consult
werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH v9 2/4] pinctrl: pinmux: Add pinmux-select debugfs file

2021-03-12 Thread Enrico Weigelt, metux IT consult
elte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [RFC PATCH 07/12] gpio: amd-fch: add oftree probing support

2021-03-11 Thread Enrico Weigelt, metux IT consult
shouldn't ever be touched. And this specific subset is soc/board specific. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free

Re: [PATCH] init/Kconfig: make COMPILE_TEST depend on HAS_IOMEM

2021-02-24 Thread Enrico Weigelt, metux IT consult
-mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [RFC PATCH 09/12] drivers: base: reintroduce find_bus()

2021-02-24 Thread Enrico Weigelt, metux IT consult
bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: RFC: oftree based setup of composite board devices

2021-02-24 Thread Enrico Weigelt, metux IT consult
, but the likehood that they're applicable in these use cases looks pretty low). --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software

Re: [RFC PATCH 11/12] platform/x86: skeleton for oftree based board device initialization

2021-02-23 Thread Enrico Weigelt, metux IT consult
-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [RFC PATCH 09/12] drivers: base: reintroduce find_bus()

2021-02-23 Thread Enrico Weigelt, metux IT consult
On 13.02.21 11:20, Greg KH wrote: On Mon, Feb 08, 2021 at 11:22:00PM +0100, Enrico Weigelt, metux IT consult wrote: --- drivers/base/bus.c | 14 ++ include/linux/device/bus.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) Um, no. Why not ? Do you have

Re: [PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-23 Thread Enrico Weigelt, metux IT consult
On 17.02.21 14:50, Andy Shevchenko wrote: On Wed, Feb 17, 2021 at 01:15:43PM +0100, Enrico Weigelt, metux IT consult wrote: Under rare circumstances it may happen that a device node's name is NULL (most likely kernel bug in some other place). What circumstances? How can I reproduce

Re: [PATCH v2] leds: apu: extend support for PC Engines APU1 with newer firmware

2021-02-23 Thread Enrico Weigelt, metux IT consult
vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-23 Thread Enrico Weigelt, metux IT consult
lem anyway. And it is better to avoid recursion in this path. thx, going to use it in v2. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT co

Re: of overlay: how to insert new nodes with references to it

2021-02-18 Thread Enrico Weigelt, metux IT consult
On 18.02.21 10:14, Enrico Weigelt, metux IT consult wrote: Hi folks, answering myself ;-) Problem: dtc adds my new 'gpio1' node to the __fixups__ list, which is used for resolving symbols against the live tree - obviously it can't exist there, since it's added by the overlay. Therefore

of overlay: how to insert new nodes with references to it

2021-02-18 Thread Enrico Weigelt, metux IT consult
-- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

[PATCH] lib: vsprintf: check for NULL device_node name in device_node_string()

2021-02-17 Thread Enrico Weigelt, metux IT consult
an extra warning. Signed-off-by: Enrico Weigelt, metux IT consult --- lib/vsprintf.c | 4 1 file changed, 4 insertions(+) diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 3b53c73580c5..050a60b88073 100644 --- a/lib/vsprintf.c +++ b/lib/vsprintf.c @@ -2013,6 +2013,10 @@ char

Re: [PATCH v2] leds: apu: extend support for PC Engines APU1 with newer firmware

2021-02-17 Thread Enrico Weigelt, metux IT consult
ENGINES_APU2\n"); return -ENODEV; } Looks good to me. But don't dare giving official ack, since I don't have an apu1 board for testing. Is Alan Mizrahi (original author) still here ? --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuli

Re: [PATCH] of: property: fw_devlink: Ignore interrupts property for some configs

2021-02-16 Thread Enrico Weigelt, metux IT consult
ULL; wouldn't it be better to #ifdef-out the whole code in this case ? --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and

BUG: broken overlay causes very strange kernel crash

2021-02-12 Thread Enrico Weigelt, metux IT consult
detected stalls on CPUs/tasks: -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [RFC PATCH 11/12] platform/x86: skeleton for oftree based board device initialization

2021-02-12 Thread Enrico Weigelt, metux IT consult
und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: [PATCH] of: base: improve error message in of_phandle_iterator_next()

2021-02-12 Thread Enrico Weigelt, metux IT consult
On 11.02.21 21:13, Rob Herring wrote: On Mon, Feb 8, 2021 at 10:58 AM Enrico Weigelt, metux IT consult wrote: Also print out the phandle ID on error message, as a debug aid. I already have this patch applied in my tree. Why do you keep sending it? Sorry, didn't know that when sending

Re: RFC: oftree based setup of composite board devices

2021-02-11 Thread Enrico Weigelt, metux IT consult
On 11.02.21 12:41, Andy Shevchenko wrote: Hi, On Thu, Feb 11, 2021 at 1:15 PM Enrico Weigelt, metux IT consult wrote: On 10.02.21 11:30, Andy Shevchenko wrote: Use cases are boards with non-oftree firmware (ACPI, etc) where certain platform devices can't be directly enumerated via

Re: [RFC PATCH 12/12] platform/x86/of: add support for PC Engines APU v2/3/4 boards

2021-02-11 Thread Enrico Weigelt, metux IT consult
status = "okay"; nit: That's the default. Okay, dropping it. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: RFC: oftree based setup of composite board devices

2021-02-11 Thread Enrico Weigelt, metux IT consult
uliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

Re: RFC: oftree based setup of composite board devices

2021-02-10 Thread Enrico Weigelt, metux IT consult
e E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering i...@metux.net -- +49-151-27565287

[RFC PATCH 05/12] of: kobj: __of_attach_node_sysfs(): add optional basename parameter

2021-02-08 Thread Enrico Weigelt, metux IT consult
Introduce additional parameter for specifying the name of the base directory underneath /sys/firmware/devicetree. This is for scenarios where we want entirely separate oftree instances. Passing NULL falls back to the existing base name 'base'. Signed-off-by: Enrico Weigelt, metux IT consult

[RFC PATCH 11/12] platform/x86: skeleton for oftree based board device initialization

2021-02-08 Thread Enrico Weigelt, metux IT consult
, probes the devices that are defined by them. For the time being, we just support matching on DMI_BOARD_NAME and DMI_SYS_VENDOR - other criteria, even bus- or ACPI-id's can be added later, when needed. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/platform/Kconfig | 2 + drivers

[RFC PATCH 06/12] of: kobj: introduce of_attach_tree_sysfs()

2021-02-08 Thread Enrico Weigelt, metux IT consult
Introduce helper for attaching an (separate) oftree into sysfs. This is useful, when drivers use their own internal device trees, separate from the platform's global one, and wanna make it visible to userspace via sysfs. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/kobj.c

[RFC PATCH 12/12] platform/x86/of: add support for PC Engines APU v2/3/4 boards

2021-02-08 Thread Enrico Weigelt, metux IT consult
Add oftree based support for PC Engines APUv2/3/4 board family. This is entirely separate from the existing pcengines-apuv2 driver. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/platform/of/Kconfig | 15 drivers/platform/of/Makefile | 2 + drivers/platform

[RFC PATCH 09/12] drivers: base: reintroduce find_bus()

2021-02-08 Thread Enrico Weigelt, metux IT consult
--- drivers/base/bus.c | 14 ++ include/linux/device/bus.h | 2 ++ 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index 450d3ed6cf1f..a06ae2786092 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -754,13

[RFC PATCH 01/12] of: base: improve error message in of_phandle_iterator_next()

2021-02-08 Thread Enrico Weigelt, metux IT consult
Also print out the phandle ID on error message, as a debug aid. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 161a23631472..8a348f0d3c5e 100644

[RFC PATCH 07/12] gpio: amd-fch: add oftree probing support

2021-02-08 Thread Enrico Weigelt, metux IT consult
ings/gpio/amd-fch-gpio.h new file mode 100644 index ..7a47e6debcdb --- /dev/null +++ b/include/dt-bindings/gpio/amd-fch-gpio.h @@ -0,0 +1,36 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ + +/* + * AMD FCH gpio platform data definitions + * + * Copyright (C) 2020 metux IT con

[RFC PATCH 10/12] export bus_get() / bus_put()

2021-02-08 Thread Enrico Weigelt, metux IT consult
--- drivers/base/bus.c | 6 -- include/linux/device/bus.h | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/drivers/base/bus.c b/drivers/base/bus.c index a06ae2786092..2ef92a3c5d7b 100644 --- a/drivers/base/bus.c +++ b/drivers/base/bus.c @@ -39,7 +39,7 @@ static

[RFC PATCH 08/12] drivers: base: introduce bus_remove_device_by_name()

2021-02-08 Thread Enrico Weigelt, metux IT consult
Introduce a helper for detaching a named device from bus and unregistering it. This is helpful eg. if some board specific driver needs to remove an unwanted device that had been probed via firmware, but should be handled differently. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers

[RFC PATCH 03/12] of: base: record root node in interator and use it for phandle lookup

2021-02-08 Thread Enrico Weigelt, metux IT consult
that in the detached case, phandle cache can't be used, so we have a little performance penalty on repeated phandle lookups. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/base.c | 13 - include/linux/of.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) diff --git

[RFC PATCH 04/12] of: base: introduce of_match_string()

2021-02-08 Thread Enrico Weigelt, metux IT consult
Introduce a new helper function that looks up a given propery and matches all string elements against a given string. This is useful if we want to check wether one string element of some property matches a given string. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/base.c | 32

RFC: oftree based setup of composite board devices

2021-02-08 Thread Enrico Weigelt, metux IT consult
Hello folks, here's an RFC for using compiled-in dtb's for initializing board devices that can't be probed via bus'es or firmware. Use cases are boards with non-oftree firmware (ACPI, etc) where certain platform devices can't be directly enumerated via firmware. Traditionally we had to write

[RFC PATCH 02/12] of: base: introduce of_find_node_by_phandle_from()

2021-02-08 Thread Enrico Weigelt, metux IT consult
with oftree overlays. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/base.c | 14 +- include/linux/of.h | 7 ++- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 8a348f0d3c5e..6b3d1e817808 100644 --- a/drivers

[PATCH] of: base: improve error message in of_phandle_iterator_next()

2021-02-08 Thread Enrico Weigelt, metux IT consult
Also print out the phandle ID on error message, as a debug aid. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 161a23631472..8a348f0d3c5e 100644

[PATCH] firmware: Kconfig: fix indentions

2021-01-15 Thread Enrico Weigelt, metux IT consult
Make the indentions consistent with everywhere else in the kernel. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/firmware/Kconfig | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/drivers/firmware/Kconfig b/drivers/firmware/Kconfig

[PATCH] of: base: improve error msg in of_phandle_iterator_next()

2021-01-14 Thread Enrico Weigelt, metux IT consult
Also print out the phandle ID on error message, as a debug aid. Signed-off-by: Enrico Weigelt, metux IT consult --- drivers/of/base.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index 161a23631472..8a348f0d3c5e 100644

[PATCH] scripts: kconfig: fix HOSTCC call

2021-01-14 Thread Enrico Weigelt, metux IT consult
The change c0f975af1745391749e4306aa8081b9a4d2cced8 introduces a bug when HOSTCC contains parameters: the whole command line is treated as the program name (with spaces in it). Therefore, we have to remove the quotes. Fixes: c0f975af1745391749e4306aa8081b9a4d2cced8 Signed-off-by: Enrico Weigelt

[PATCH v2] arch: consolidate pm_power_off callback

2020-12-27 Thread Enrico Weigelt, metux IT consult
Move the pm_power_off callback into one global place and also add an function for conditionally calling it (when not NULL), in order to remove code duplication in all individual archs. Reported-by: kernel test robot Signed-off-by: Enrico Weigelt, metux IT consult changes v2: * fix

Re: [PATCH] arch: consolidate pm_power_off callback

2020-12-22 Thread Enrico Weigelt, metux IT consult
On 22.12.20 19:54, Geert Uytterhoeven wrote: Hi, > On Tue, Dec 22, 2020 at 7:46 PM Enrico Weigelt, metux IT consult > wrote: >> Move the pm_power_off callback into one global place and also add an >> function for conditionally calling it (when not NULL), in order to remove &

Re: [PATCH v3] drivers: clk: make gpio-gated clock support optional

2020-12-22 Thread Enrico Weigelt, metux IT consult
ver(). Okay, I'll rework it and post a v4. thx. --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded e

[PATCH] arch: consolidate pm_power_off callback

2020-12-22 Thread Enrico Weigelt, metux IT consult
Move the pm_power_off callback into one global place and also add an function for conditionally calling it (when not NULL), in order to remove code duplication in all individual archs. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/alpha/kernel/process.c| 6 -- arch/arc

[PATCH 07/23] arch: parisc: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/parisc/include/asm/hardirq.h | 2 +- 1 file changed, 1

[PATCH 02/23] arch: alpha: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/alpha/kernel/irq.c | 1 - 1 file changed, 1 deletio

[PATCH 03/23] arch: arm: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/arm/include/asm/hw_irq.h | 1 - 1 file changed,

[PATCH 10/23] arch: sh: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/sh/kernel/irq.c | 1 - 1 file changed, 1 deletion(-)

[PATCH 08/23] arch: powerpc: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/powerpc/include/asm/hardirq.h | 5 + 1 file

[PATCH 12/23] arch: x86: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/x86/kernel/irq.c | 3 --- 1 file changed, 3 deletion

[PATCH 14/23] kernel: generic counter for interrupt errors

2020-12-18 Thread Enrico Weigelt, metux IT consult
the counter in all call sites of ack_bad_irq() * subsequent patches will transform the individual archs one by one Signed-off-by: Enrico Weigelt, metux IT consult --- include/asm-generic/irq-err.h | 17 + kernel/irq/dummychip.c| 2 ++ kernel/irq/handle.c | 4

[PATCH 15/23] arch: mips: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/mips/include/asm/hw_irq.h | 4 arch/mips/kernel/irq-gt641xx.c | 3 ++- arch/mips/kernel/irq.c

[PATCH 17/23] arch: arm: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/arm/include/asm/hardirq.h | 2 +- arch/arm/include/asm/hw_irq.h | 6 -- arch/arm/kernel/irq.c

[PATCH 06/23] arch: mips: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/mips/include/asm/hardirq.h | 3 +-- arch/mips/ke

(repost) cleaning up handling of bad IRQs

2020-12-18 Thread Enrico Weigelt, metux IT consult
Hello friends, << reposting, since first queue didn't go through completely, due to mailer problem >> here's a patch queue for cleaning up the IRQ handling. Inspired by a discussion we had on a previous patch of mine: "arch: fix 'unexpected IRQ trap at vector' warnings"

[PATCH 01/23] kernel: irq: irqdescs: warn on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
callers already had printed more detailed information or (when called by __handle_domain_irq()) the printout just doesn't tell anything useful. Signed-off-by: Enrico Weigelt, metux IT consult --- kernel/irq/irqdesc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/irq/irqdesc.c b/kernel

[PATCH 16/23] arch: alpha: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/alpha/include/asm/hardirq.h | 3 --- arch/alpha/include/asm/hw_irq.h | 2 -- arch/alpha/kernel

[PATCH 18/23] arch: arm64: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/arm64/include/asm/hardirq.h | 9 ++--- arch/arm64/kernel/smp.c | 6 ++ 2 files

[PATCH 19/23] arch: c6x: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/c6x/include/asm/hardirq.h | 3 --- arch/c6x/include/asm/irq.h | 2 -- arch/c6x/kernel/irq.c

[PATCH 09/23] arch: s390: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/s390/include/asm/hardirq.h | 5 + 1 file changed, 1

[PATCH 11/23] arch: sparc: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/sparc/include/asm/hardirq_64.h | 2 +- arch/sparc/kerne

[PATCH 13/23] arch: generic: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- include/asm-generic/hardirq.h | 1 - 1 file changed,

[PATCH 04/23] arch: c6x: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/c6x/kernel/irq.c | 1 - 1 file changed, 1 deletion(-)

[PATCH 05/23] arch: ia64: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
ctually would want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/ia64/include/asm/hardirq.h | 2 +- ar

[PATCH 06/23] arch: mips: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/mips/include/asm/hardirq.h | 3 +-- arch/mips/ke

[PATCH 11/23] arch: sparc: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/sparc/include/asm/hardirq_64.h | 2 +- arch/sparc/kerne

[PATCH 07/23] arch: parisc: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/parisc/include/asm/hardirq.h | 2 +- 1 file changed, 1

[PATCH 13/23] arch: generic: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- include/asm-generic/hardirq.h | 1 - 1 file changed,

[PATCH 18/23] arch: arm64: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/arm64/include/asm/hardirq.h | 9 ++--- arch/arm64/kernel/smp.c | 6 ++ 2 files

[PATCH 17/23] arch: arm: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/arm/include/asm/hardirq.h | 2 +- arch/arm/include/asm/hw_irq.h | 6 -- arch/arm/kernel/irq.c

[PATCH 09/23] arch: s390: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/s390/include/asm/hardirq.h | 5 + 1 file changed, 1

[PATCH 04/23] arch: c6x: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/c6x/kernel/irq.c | 1 - 1 file changed, 1 deletion(-)

cleanup handling of bad IRQs

2020-12-18 Thread Enrico Weigelt, metux IT consult
Hello friends, here's a patch queue for cleaning up the IRQ handling. Inspired by a discussion we had on a previous patch of mine: "arch: fix 'unexpected IRQ trap at vector' warnings" https://www.spinics.net/lists/kernel/msg3763137.html Turned out that the whole message, as it is right

[PATCH 01/23] kernel: irq: irqdescs: warn on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
callers already had printed more detailed information or (when called by __handle_domain_irq()) the printout just doesn't tell anything useful. Signed-off-by: Enrico Weigelt, metux IT consult --- kernel/irq/irqdesc.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kernel/irq/irqdesc.c b/kernel

[PATCH 05/23] arch: ia64: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
ctually would want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/ia64/include/asm/hardirq.h | 2 +- ar

[PATCH 19/23] arch: c6x: use generic irq error counter

2020-12-18 Thread Enrico Weigelt, metux IT consult
Use the newly introduced irq error counter, that's already maintained by all callers of ack_bad_irq(), in order to remove duplicate code. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/c6x/include/asm/hardirq.h | 3 --- arch/c6x/include/asm/irq.h | 2 -- arch/c6x/kernel/irq.c

[PATCH 14/23] kernel: generic counter for interrupt errors

2020-12-18 Thread Enrico Weigelt, metux IT consult
the counter in all call sites of ack_bad_irq() * subsequent patches will transform the individual archs one by one Signed-off-by: Enrico Weigelt, metux IT consult --- include/asm-generic/irq-err.h | 17 + kernel/irq/dummychip.c| 2 ++ kernel/irq/handle.c | 4

[PATCH 10/23] arch: sh: drop misleading warning on spurious IRQ

2020-12-18 Thread Enrico Weigelt, metux IT consult
uld want it to print the hw irq. Since all call sites already print out more detailed and correct information, we just don't need to duplicate this in each single arch. So just drop it. Signed-off-by: Enrico Weigelt, metux IT consult --- arch/sh/kernel/irq.c | 1 - 1 file changed, 1 deletion(-)

  1   2   3   4   5   6   7   8   9   10   >