[PATCH 2/2] Input: edt-ft5x06 - add support for polled configuration

2019-04-30 Thread Nicolas Saenz Julienne
Some devices might not provide an interrupt line for the touchscreen. In that case the driver defaults to using a polled interface. Signed-off-by: Nicolas Saenz Julienne --- .../devicetree/bindings/input/touchscreen/edt-ft5x06.txt | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions

[PATCH 0/8] Raspberry Pi 4 DMA addressing support

2019-07-31 Thread Nicolas Saenz Julienne
the new runtime calculated min_mask*. That's all. Regards, Nicolas * These solutions where already discussed on the previous RFC (see link above). --- Nicolas Saenz Julienne (8): arm64: mm: use arm64_dma_phys_limit instead of calling max_zone_dma_phys() arm64: rename variables used to c

[PATCH 1/8] arm64: mm: use arm64_dma_phys_limit instead of calling max_zone_dma_phys()

2019-07-31 Thread Nicolas Saenz Julienne
By the time we call zones_sizes_init() arm64_dma_phys_limit already contains the result of max_zone_dma_phys(). We use the variable instead of calling the function directly to save some precious cpu time. Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/mm/init.c | 2 +- 1 file changed, 1

Re: [PATCH v2] HID: input: fix a4tech horizontal wheel custom usage

2019-08-01 Thread Nicolas Saenz Julienne
On Tue, 2019-06-11 at 14:13 +0200, Nicolas Saenz Julienne wrote: > Some a4tech mice use the 'GenericDesktop.00b8' usage to inform whether > the previous wheel report was horizontal or vertical. Before > c01908a14bf73 ("HID: input: add mapping for "Toggle Display&

[RFC] ARM: bcm2835: register dmabounce on devices hooked to main interconnect

2019-07-23 Thread Nicolas Saenz Julienne
nnect. [1] https://www.spinics.net/lists/arm-kernel/msg742120.html [2] https://www.spinics.net/lists/arm-kernel/msg742736.html Signed-off-by: Nicolas Saenz Julienne --- arch/arm/mach-bcm/Kconfig | 1 + arch/arm/mach-bcm/board_bcm2835.c | 29 + 2 files changed,

[PATCH] HID: input: fix a4tech horizontal wheel custom usage id

2019-06-10 Thread Nicolas Saenz Julienne
t;type. The patch reverts the handling of the usage id back to it's previous behavior. Fixes: c01908a14bf73 ("HID: input: add mapping for "Toggle Display" key") Signed-off-by: Nicolas Saenz Julienne --- drivers/hid/hid-input.c | 2 +- 1 file changed, 1 insertion

Re: [PATCH] HID: input: fix a4tech horizontal wheel custom usage id

2019-06-11 Thread Nicolas Saenz Julienne
On Tue, 2019-06-11 at 10:43 +0200, Benjamin Tissoires wrote: > Hi Nicolas, > > On Mon, Jun 10, 2019 at 8:54 PM Nicolas Saenz Julienne > wrote: > > Some a4tech mice use the 'GenericDesktop.00b8' usage id to inform > > whether the previous wheel report

[PATCH v2] HID: input: fix a4tech horizontal wheel custom usage

2019-06-11 Thread Nicolas Saenz Julienne
t event. So we bypass the mapping and make sure the custom event handling properly handles both reports. Fixes: c01908a14bf73 ("HID: input: add mapping for "Toggle Display" key") Signed-off-by: Nicolas Saenz Julienne --- NOTE: I CC'd Wolfgang as he's the one who can te

[PATCH v3 0/7] cpufreq support for Raspberry Pi

2019-06-11 Thread Nicolas Saenz Julienne
r - raspberrypi-cpufreq device now registered by clk driver - Reimplemented clk rounding unsing determine_rate() - Enabled in configs for arm and arm64 Changes since RFC: - Move firmware clk device into own driver Nicolas Saenz Julienne (7): clk: bcm2835: remove pllb clk: bcm283x: add driv

[PATCH v3 1/7] clk: bcm2835: remove pllb

2019-06-11 Thread Nicolas Saenz Julienne
Raspberry Pi's firmware controls this pll, we should use the firmware interface to access it. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- Changes since v1: - Add comment to explain why pllb isn't there anymore drivers/clk/bcm/clk-bcm2

[PATCH v3 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-11 Thread Nicolas Saenz Julienne
#x27;ve had to factor out 'pllb' as the firmware 'owns' it. + * We're not allowed to change it directly as we might race with the + * over-temperature and under-voltage protections provided by the firmware. + * + * Copyright (C) 2019 Nicolas Saenz Julienne +

[PATCH v3 3/7] firmware: raspberrypi: register clk device

2019-06-11 Thread Nicolas Saenz Julienne
Since clk-raspberrypi is tied to the VC4 firmware instead of particular hardware it's registration should be performed by the firmware driver. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- drivers/firmware/raspberrypi.c | 10 ++ 1 file changed, 10 insertions(+)

[PATCH v3 4/7] cpufreq: add driver for Raspbery Pi

2019-06-11 Thread Nicolas Saenz Julienne
uring init, this implements a full fledged driver, as opposed to most drivers registering cpufreq-dt, which only make use of an init routine. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt Reviewed-by: Stephen Boyd --- Changes since v1: - Remove compatible checks - Add module su

[PATCH v3 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq

2019-06-11 Thread Nicolas Saenz Julienne
ceeds. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- Changes since v2: - Use raspberrypi_clk struct to store cpufreq platform_device drivers/clk/bcm/clk-raspberrypi.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/clk/bcm/clk-raspbe

[PATCH v3 6/7] ARM: defconfig: enable cpufreq driver for RPi

2019-06-11 Thread Nicolas Saenz Julienne
frequency transition latency. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Change default governor to conservative in bcm2835_defconfig - Set all as builtin in bcm2835_defconfig arch/arm/configs/bcm2835_defconfig | 9 + arch/arm/configs/multi_v7_defconfig | 2

[PATCH v3 7/7] arm64: defconfig: enable cpufreq support for RPi3

2019-06-11 Thread Nicolas Saenz Julienne
This enables both the new firmware clock driver and cpufreq driver available for the RPi3 family of boards. Signed-off-by: Nicolas Saenz Julienne --- Changes since v2: - Build both drivers as modules arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch

[PATCH v2] xhci: clear port_remote_wakeup after resume failure

2019-07-02 Thread Nicolas Saenz Julienne
PORT_CONNECT state. Making sure the above mentioned situation doesn't trigger a PM busyloop. Signed-off-by: Nicolas Saenz Julienne --- Changes since v1: - Do not trigger clear based on PLS_MASK != XDEV_RESUME to avoid a potential race condition between the irq handler and hub t

[PATCH v2 0/7] cpufreq support for Raspberry Pi

2019-06-06 Thread Nicolas Saenz Julienne
evice now registered by firmware driver - raspberrypi-cpufreq device now registered by clk driver - Reimplemented clk rounding unsing determine_rate() - Enabled in configs for arm and arm64 Changes since RFC: - Move firmware clk device into own driver Nicolas Saenz Julienne (7): clk: bcm2

[PATCH v2 1/7] clk: bcm2835: remove pllb

2019-06-06 Thread Nicolas Saenz Julienne
Raspberry Pi's firmware controls this pll, we should use the firmware interface to access it. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- Changes since v1: - Add comment to explain why pllb isn't there anymore drivers/clk/bcm/clk-bcm2

[PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-06 Thread Nicolas Saenz Julienne
rectly as we might race with the + * over-temperature and under-voltage protections provided by the firmware. + * + * Copyright (C) 2019 Nicolas Saenz Julienne + */ + +#include +#include +#include +#include +#include + +#include + +#define RPI_FIRMWARE_ARM_CLK_ID0x3 +

[PATCH v2 3/7] firmware: raspberrypi: register clk device

2019-06-06 Thread Nicolas Saenz Julienne
Since clk-raspberrypi is tied to the VC4 firmware instead of particular hardware it's registration should be performed by the firmware driver. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- drivers/firmware/raspberrypi.c | 10 ++ 1 file changed, 10 insertions(+)

[PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-06 Thread Nicolas Saenz Julienne
uring init, this implements a full fledged driver, as opposed to most drivers registering cpufreq-dt, which only make use of an init routine. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- Changes since v1: - Remove compatible checks - Add module support, now full fledged driv

[PATCH v2 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq

2019-06-06 Thread Nicolas Saenz Julienne
ceeds. Signed-off-by: Nicolas Saenz Julienne Acked-by: Eric Anholt --- drivers/clk/bcm/clk-raspberrypi.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index b1365cf19f3a..052296b5fbe4 100644 --- a/dri

[PATCH v2 6/7] ARM: defconfig: enable cpufreq driver for RPi

2019-06-06 Thread Nicolas Saenz Julienne
, statistics, etc...). Signed-off-by: Nicolas Saenz Julienne --- arch/arm/configs/bcm2835_defconfig | 9 + arch/arm/configs/multi_v7_defconfig | 2 ++ 2 files changed, 11 insertions(+) diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig index dcf7610cfe55

[PATCH v2 7/7] arm64: defconfig: enable cpufreq support for RPi3

2019-06-06 Thread Nicolas Saenz Julienne
This enables both the new firmware clock driver and cpufreq driver available for the RPi3 family of boards. Signed-off-by: Nicolas Saenz Julienne --- arch/arm64/configs/defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig

Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-06 Thread Nicolas Saenz Julienne
On Thu, 2019-06-06 at 16:22 +0200, Nicolas Saenz Julienne wrote: > Raspberry Pi's firmware offers an interface though which update it's > clock's frequencies. This is specially useful in order to change the CPU > clock (pllb_arm) which is 'owned' by the firmware

Re: [PATCH v2 5/7] clk: raspberrypi: register platform device for raspberrypi-cpufreq

2019-06-06 Thread Nicolas Saenz Julienne
On Thu, 2019-06-06 at 10:05 -0700, Stephen Boyd wrote: > Quoting Nicolas Saenz Julienne (2019-06-06 07:22:58) > > diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk- > > raspberrypi.c > > index b1365cf19f3a..052296b5fbe4 100644 > > --- a/driver

Re: [PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-06 Thread Nicolas Saenz Julienne
Hi Stephen, Thanks for the review. On Thu, 2019-06-06 at 10:09 -0700, Stephen Boyd wrote: > Quoting Nicolas Saenz Julienne (2019-06-06 07:22:56) > > diff --git a/drivers/cpufreq/raspberrypi-cpufreq.c > > b/drivers/cpufreq/raspberrypi-cpufreq.c > > new file mode 100644 &

Re: [PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-06 Thread Nicolas Saenz Julienne
On Thu, 2019-06-06 at 10:36 -0700, Stephen Boyd wrote: > Quoting Nicolas Saenz Julienne (2019-06-06 10:22:16) > > Hi Stephen, > > Thanks for the review. > > > > On Thu, 2019-06-06 at 10:09 -0700, Stephen Boyd wrote: > > > Quoting Nicolas Saenz Julienne (2019-

Re: [PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-06 Thread Nicolas Saenz Julienne
On Thu, 2019-06-06 at 11:23 -0700, Stephen Boyd wrote: > Quoting Nicolas Saenz Julienne (2019-06-06 11:10:04) > > On Thu, 2019-06-06 at 10:36 -0700, Stephen Boyd wrote: > > > Quoting Nicolas Saenz Julienne (2019-06-06 10:22:16) > > > > Hi Stephen, > > > >

Re: [PATCH v2 2/7] clk: bcm283x: add driver interfacing with Raspberry Pi's firmware

2019-06-07 Thread Nicolas Saenz Julienne
On Fri, 2019-06-07 at 11:26 +0200, Stefan Wahren wrote: > Hi Nicolas, > > Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: > > Raspberry Pi's firmware offers an interface though which update it's > > clock's frequencies. This is specially useful in order t

Re: [PATCH v2 7/7] arm64: defconfig: enable cpufreq support for RPi3

2019-06-07 Thread Nicolas Saenz Julienne
On Fri, 2019-06-07 at 12:19 +0200, Stefan Wahren wrote: > Hi Nicolas, > > Am 06.06.19 um 16:23 schrieb Nicolas Saenz Julienne: > > This enables both the new firmware clock driver and cpufreq driver > > available for the RPi3 family of boards. > > > > Sign

Re: [PATCH v2 4/7] cpufreq: add driver for Raspbery Pi

2019-06-07 Thread Nicolas Saenz Julienne
On Fri, 2019-06-07 at 13:42 +0200, Stefan Wahren wrote: > Hi Nicolas, > > Am 06.06.19 um 16:22 schrieb Nicolas Saenz Julienne: > > Raspberry Pi's firmware offers and interface though which update it's > > performance requirements. It allows us to request for s

Re: [PATCH] xhci: clear port_remote_wakeup after resume failure

2019-06-08 Thread Nicolas Saenz Julienne
On Tue, 2019-06-04 at 16:53 +0300, Mathias Nyman wrote: > On 27.5.2019 14.28, Nicolas Saenz Julienne wrote: > > Hi Matthias, > > thanks for the review. > > > > On Mon, 2019-05-27 at 14:16 +0300, Mathias Nyman wrote: > > > On 24.5.2019 17.52, Nicolas Saenz Juli

Re: [PATCH v2] HID: input: fix a4tech horizontal wheel custom usage

2019-07-05 Thread Nicolas Saenz Julienne
On Fri, 2019-06-14 at 16:25 +0200, Nicolas Saenz Julienne wrote: > On Fri, 2019-06-14 at 15:36 +0200, Benjamin Tissoires wrote: > > Hi Wolfgang, > > > > On Thu, Jun 13, 2019 at 1:49 PM Wolfgang Bauer wrote: > > > On Tuesday, 11. Juni 2019, 16:42:37 Benjamin Tissoi

[PATCH v4] usb: hub: add retry routine after intr URB submit error

2019-01-08 Thread Nicolas Saenz Julienne
ected. As some USB subsystems already take care of this issue, the implementation was inspired from usbhid/hid_core.c's. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Oliver Neukum --- v4: - Add Oliver's Reviewed-by - Make timeout calculation simpler v3: As per Oliver&#x

Re: [PATCH] HID: core: move Usage Page concatenation to hid_parser_main()

2019-03-25 Thread Nicolas Saenz Julienne
Hi Benjamin, Thanks for the review! On Mon, 2019-03-25 at 16:08 +0100, Benjamin Tissoires wrote: > On Mon, Mar 25, 2019 at 11:39 AM Benjamin Tissoires > wrote: > > Hi Nicolas, > > > > On Tue, Mar 12, 2019 at 10:37 AM Nicolas Saenz Julienne > > wrote: >

Re: [PATCH] Input: raspberrypi-ts: select CONFIG_INPUT_POLLDEV

2019-03-05 Thread Nicolas Saenz Julienne
RMWARE=n && > COMPILE_TEST) > + select INPUT_POLLDEV > help > Say Y here if you have the official Raspberry Pi 7 inch screen on > your system. Thanks! Looks good to me. Reviewed-by: Nicolas Saenz Julienne signature.asc Description: This is a digitally signed message part

Re: [RFC/RFT] HID: primax: Fix wireless keyboards descriptor

2019-03-07 Thread Nicolas Saenz Julienne
On Fri, 2019-03-01 at 10:48 +0100, Benjamin Tissoires wrote: > On Thu, Feb 28, 2019 at 7:01 PM Nicolas Saenz Julienne > wrote: > > On Thu, 2019-02-28 at 17:02 +, Junge, Terry wrote: > > > This could also be a parser error. In the HID specification section > > >

Re: [PATCH 1/2] power: supply: sbs-battery: use fixed device name

2016-11-22 Thread Nicolas Saenz Julienne
Hi Sebastian, sorry I wasn't aware of that feature, I'll have a look at the whole thing and rework the patch. Regards, Nicolas On 22/11/16 16:23, Sebastian Reichel wrote: > Hi, > > On Mon, Nov 21, 2016 at 07:04:50PM +0100, Nicola Saenz Julienne wrote: >> The current device name for sbs-battery i

[PATCH 2/2] dt-bindings: power: add bindings for sbs-charger

2016-11-23 Thread Nicolas Saenz Julienne
Adds device tree documentation for SBS charger compilant devices as defined here: http://sbs-forum.org/specs/sbc110.pdf Signed-off-by: Nicolas Saenz Julienne --- .../bindings/power/supply/sbs_sbs-charger.txt | 22 ++ 1 file changed, 22 insertions(+) create mode 100644

[PATCH 0/2] power: supply: add sbs-charger driver

2016-11-23 Thread Nicolas Saenz Julienne
driver. Regards, Nicolas changes since v1: - added dt bindings - updated driver with Sebastian's comments - s/Nicola/Nicolas/ in commits Nicolas Saenz Julienne (2): power: supply: add sbs-charger driver dt-bindings: power: add bindings for sbs-charger .../bindings/power/supply/sb

[PATCH 1/2] power: supply: add sbs-charger driver

2016-11-23 Thread Nicolas Saenz Julienne
This adds support for sbs-charger compilant chips as defined here: http://sbs-forum.org/specs/sbc110.pdf This was tested on a arm board connected to an LTC41000 battery charger chip. Signed-off-by: Nicolas Saenz Julienne --- v1 -> v2: - add spec link in header - use proper gpio/interr

[PATCH v3 0/2] power: supply: add sbs-charger driver

2016-11-24 Thread Nicolas Saenz Julienne
driver. Regards, Nicolas changes since v2: - updated driver and dt-binding with Sebatian's comments changes since v1: - added dt bindings - updated driver with Sebastian's comments - s/Nicola/Nicolas/ in commits Nicolas Saenz Julienne (2): power: supply: add sbs-charger driver d

[PATCH v3 2/2] dt-bindings: power: add bindings for sbs-charger

2016-11-24 Thread Nicolas Saenz Julienne
Adds device tree documentation for SBS charger compilant devices as defined here: http://sbs-forum.org/specs/sbc110.pdf Signed-off-by: Nicolas Saenz Julienne --- v2 -> v3: - add part number as compatible .../bindings/power/supply/sbs_sbs-charger.txt | 24 ++ 1 f

[PATCH v3 1/2] power: supply: add sbs-charger driver

2016-11-24 Thread Nicolas Saenz Julienne
This adds support for sbs-charger compilant chips as defined here: http://sbs-forum.org/specs/sbc110.pdf This was tested on a arm board connected to an LTC41000 battery charger chip. Signed-off-by: Nicolas Saenz Julienne --- v2 -> v3: - add readable_reg() function to regmap config - upd

[PATCH v4 0/2] power: supply: add sbs-charger driver

2016-12-20 Thread Nicolas Saenz Julienne
ments changes since v1: - added dt bindings - updated driver with Sebastian's comments - s/Nicola/Nicolas/ in commits Nicolas Saenz Julienne (2): power: supply: add sbs-charger driver dt-bindings: power: add bindings for sbs-charger .../bindings/power/supply/sbs_sbs-charger.txt | 23 +

[PATCH v4 1/2] power: supply: add sbs-charger driver

2016-12-20 Thread Nicolas Saenz Julienne
This adds support for sbs-charger compilant chips as defined here: http://sbs-forum.org/specs/sbc110.pdf This was tested on a arm board connected to an LTC4100 battery charger chip. Signed-off-by: Nicolas Saenz Julienne --- v3 -> v4 - drop "lltc,ltc4100" compatible string for n

[PATCH v4 2/2] dt-bindings: power: add bindings for sbs-charger

2016-12-20 Thread Nicolas Saenz Julienne
Adds device tree documentation for SBS charger compilant devices as defined here: http://sbs-forum.org/specs/sbc110.pdf Signed-off-by: Nicolas Saenz Julienne --- v3 -> v4: - use part-number/fallback compatible string structure v2 -> v3: - add part number as compatible .../bindings/power/

Re: [PATCH v4 1/2] power: supply: add sbs-charger driver

2016-12-21 Thread Nicolas Saenz Julienne
Hi Manish, thanks for the interest. On 20/12/16 17:54, Manish Badarkhe wrote: > Hi Nicola > [...] > > Just some general comment, Can you add some more properties here to > know voltage and current? I assume you are mentioning reading current and voltage values. These properties are not supported

Re: [PATCH v3 0/2] power: supply: add sbs-charger driver

2016-12-13 Thread Nicolas Saenz Julienne
On 24/11/16 13:33, Nicolas Saenz Julienne wrote: > Hi, > > This series adds support for all SBS compatible battery chargers, as defined > here: http://sbs-forum.org/specs/sbc110.pdf. > > The first patch changes the sbs-battery device name in order to be able to > cre

[PATCH] USB: cdc-acm: add support for Sagem Monetel ELC930

2016-03-12 Thread Nicolas Saenz Julienne
Signed-off-by: Nicolas Saenz Julienne --- drivers/usb/class/cdc-acm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index fa4e239..9831607 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c @@ -1681,6

[PATCH] gpio: 74x164: add dt support for nxp's 74x594

2016-03-14 Thread Nicolas Saenz Julienne
The chip is also an 8 bit shift register which works out of the box as a GPO expander with this patch Signed-off-by: Nicolas Saenz Julienne --- Documentation/devicetree/bindings/gpio/gpio-74x164.txt | 4 +++- drivers/gpio/gpio-74x164.c | 1 + 2 files changed, 4

Re: [PATCH] USB: cdc-acm: add support for Sagem Monetel ELC930

2016-03-14 Thread Nicolas Saenz Julienne
On Sat, Mar 12, 2016 at 04:27:29PM -0800, Greg KH wrote: > On Sat, Mar 12, 2016 at 11:44:51PM +0000, Nicolas Saenz Julienne wrote: > > Signed-off-by: Nicolas Saenz Julienne > > --- > > drivers/usb/class/cdc-acm.c | 3 +++ > > 1 file changed, 3 insertions(+) > > &

Re: [PATCH] gpio: 74x164: add dt support for nxp's 74x594

2016-03-22 Thread nicolas saenz julienne
Hi sorry for the late response but I was on vacation. > > Why did you choose the "lvc" variant? Well to be honest the HW people did and it's all I could test with. I don't know much about these naming schemes, apart from the intuition it has to do with frequency and line levels. > Ideally, you w

Re: [PATCH] gpio: 74x164: add dt support for nxp's 74x594

2016-03-22 Thread Nicolas Saenz Julienne
Hi Geert, thanks for your reply. On Tue, Mar 22, 2016 at 11:56:51AM +0100, Geert Uytterhoeven wrote: [..] > For DT bindings, it doesn't matter who manufactured the part, or which > technology was used (TTL, HC, LVC, ...). > > Logically, the shiny new parts are compatible with the old ones, from a

[PATCH] gpio: add tps65218 gpio

2016-01-30 Thread Nicolas Saenz Julienne
that evaluates the fw config flags and removed module owner v3: Added .direction_input() routine, and took care of all Linus Walleij suggestions (clamp to bool, use proper include) Signed-off-by: Nicolas Saenz Julienne --- drivers/gpio/Kconfig | 7 ++ drivers/gpio/Makefile

[PATCH] tty: serial: meson: Add earlycon support

2016-02-07 Thread Nicolas Saenz Julienne
Signed-off-by: Nicolas Saenz Julienne --- Documentation/kernel-parameters.txt | 6 ++ drivers/tty/serial/meson_uart.c | 22 ++ 2 files changed, 28 insertions(+) diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt index 551ecf0

Re: [PATCH v2 1/9] dt-bindings: reset: Add a binding for the RPi Firmware reset controller

2020-06-10 Thread Nicolas Saenz Julienne
Hi Florian, thanks for the review :) On Tue, 2020-06-09 at 11:07 -0700, Florian Fainelli wrote: > > On 6/9/2020 10:49 AM, Nicolas Saenz Julienne wrote: > > The firmware running on the RPi VideoCore can be used to reset and > > initialize HW controlled by the firmware. >

Re: [PATCH v2 2/9] reset: Add Raspberry Pi 4 firmware reset controller

2020-06-10 Thread Nicolas Saenz Julienne
On Tue, 2020-06-09 at 11:14 -0700, Florian Fainelli wrote: > > On 6/9/2020 10:49 AM, Nicolas Saenz Julienne wrote: > > Raspberry Pi 4's co-processor controls some of the board's HW > > initialization process, but it's up to Linux to trigger it when > >

Re: [PATCH v2 5/9] usb: xhci-pci: Add support for reset controllers

2020-06-10 Thread Nicolas Saenz Julienne
Hi Florian, On Tue, 2020-06-09 at 11:13 -0700, Florian Fainelli wrote: > > On 6/9/2020 10:49 AM, Nicolas Saenz Julienne wrote: > > Some atypical users of xhci-pci might need to manually reset their xHCI > > controller before starting the HCD setup. Check if a reset contro

Re: [PATCH v2 7/9] usb: host: pci-quirks: Bypass xHCI quirks for Raspberry Pi 4

2020-06-10 Thread Nicolas Saenz Julienne
Hi Andy, Thanks for the review. On Tue, 2020-06-09 at 21:43 +0300, Andy Shevchenko wrote: > On Tue, Jun 9, 2020 at 8:50 PM Nicolas Saenz Julienne > wrote: > > The board doesn't need the quirks to be run, and takes care of its own > > initialization trough a reset cont

Re: [PATCH v4 25/27] clk: bcm2835: Allow custom CCF flags for the PLLs

2020-06-11 Thread Nicolas Saenz Julienne
tatic struct clk_hw *bcm2835_register_pll(struct > bcm2835_cprman *cprman, > init.num_parents = 1; > init.name = pll_data->name; > init.ops = &bcm2835_pll_clk_ops; > - init.flags = CLK_IGNORE_UNUSED; > + init.flags = data->flags | CLK_IGNORE_UNUSED; Thi

Re: [PATCH v4 21/27] clk: bcm: rpi: Discover the firmware clocks

2020-06-11 Thread Nicolas Saenz Julienne
tephen Boyd > Cc: linux-...@vger.kernel.org > Reviewed-by: Stephen Boyd > Signed-off-by: Maxime Ripard > --- Acked-by: Nicolas Saenz Julienne Regards, Nicolas signature.asc Description: This is a digitally signed message part

Re: [PATCH v4 23/27] Revert "clk: bcm2835: remove pllb"

2020-06-11 Thread Nicolas Saenz Julienne
tree properly, so having that clock in the MMIO driver will allow that. > > Signed-off-by: Maxime Ripard > --- Acked-by: Nicolas Saenz Julienne Regards, Nicolas signature.asc Description: This is a digitally signed message part

Re: [PATCH v4 26/27] clk: bcm2835: Don't cache the PLLB rate

2020-06-11 Thread Nicolas Saenz Julienne
On Thu, 2020-06-11 at 09:32 +0200, Maxime Ripard wrote: > The PLLB rate will be changed through the firmware clocks drivers and will > change behind this drivers' back, so we don't want to cache the rate. > > Signed-off-by: Maxime Ripard > --- Thanks! Acked-by: Nicolas

Re: [PATCH v4 27/27] clk: bcm: rpi: Remove the quirks for the CPU clock

2020-06-11 Thread Nicolas Saenz Julienne
: Maxime Ripard > --- Acked-by: Nicolas Saenz Julienne Regards, Nicolas signature.asc Description: This is a digitally signed message part

Re: [PATCH v4 00/27] clk: bcm: rpi: Add support for BCM2711 firmware clocks

2020-06-11 Thread Nicolas Saenz Julienne
e > With patch #25 manually fixed, the series is: Tested-by: Nicolas Saenz Julienne Regards, Nicolas signature.asc Description: This is a digitally signed message part

[RFC 11/50] staging: vchi: Get rid of all useless callback reasons

2020-05-27 Thread Nicolas Saenz Julienne
They are neither produced nor expected, so just delete them. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchi/vchi_common.h | 40 ++- 1 file changed, 3 insertions(+), 37 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi

[RFC 09/50] staging: vchiq: move vchiq_release_message() into vchiq

2020-05-27 Thread Nicolas Saenz Julienne
For messages with a reason different from VCHIQ_MESSAGE_AVAILABLE the responsibility for releasing them is kept in vchi, in other words, services don't need to worry about it. As we're trying to unify vchi and vchiq, move the release code into vchiq. Signed-off-by: Nicolas Saen

[RFC 12/50] staging: vchi: Get rid of vchi_msg_peek()

2020-05-27 Thread Nicolas Saenz Julienne
Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h | 12 .../interface/vchiq_arm/vchiq_shim.c | 64 --- .../interface/vchiq_arm/vchiq_util.c | 12 .../interface/vchiq_arm/vchiq_util.h | 1 - .../vc04_ser

[RFC 22/50] staging: vchi: Use enum vchiq_bulk_mode instead of vchi's transmission flags

2020-05-27 Thread Nicolas Saenz Julienne
vchi has a set of transfer flags which almost map 1:1 to vchiq's own transfer modes. For the sake of simplicity let's use the later and delete vchi's. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 2 +- .../vc04_services/bcm2835-

[RFC 14/50] staging: vchi: Unify struct shim_service and struct vchi_service_handle

2020-05-27 Thread Nicolas Saenz Julienne
struct shim_service into struvt vchi_service, which is more consistent with the rest of the exposed API. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 24 +++ .../vc04_services/interface/vchi/vchi.h | 27 .../interface/vchiq_arm

[RFC 10/50] staging: vchiq: Get rid of VCHIQ_SERVICE_OPENEND callback reason

2020-05-27 Thread Nicolas Saenz Julienne
Nobody uses it and it's routinely discarded in vchi. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchiq_arm/vchiq_core.c | 9 - .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 4 2 files changed, 13 deletions(-) diff --git a/dr

[RFC 16/50] staging: vchi: Get rid of vchi_msg_dequeue()

2020-05-27 Thread Nicolas Saenz Julienne
Nobody uses it. Get rid of it. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h | 7 .../interface/vchiq_arm/vchiq_shim.c | 39 --- 2 files changed, 46 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi

[RFC 07/50] staging: vchi: Get rid of not implemented function declarations

2020-05-27 Thread Nicolas Saenz Julienne
They don't exist, they have no users, get rid of them. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/vchi.h | 59 --- 1 file changed, 59 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchi/vchi.h b/drivers/st

[RFC 30/50] staging: vchiq: Export vchiq_msg_queue_push

2020-05-27 Thread Nicolas Saenz Julienne
vchiq consumer drivers may need to use this function in order to get the benefits of vchiq's per service message queueing mechanism. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h | 1 + 1 file changed, 1 insertion(+) diff --git a/dr

[RFC 41/50] staging: vchiq: Make vchiq_add_service() local

2020-05-27 Thread Nicolas Saenz Julienne
The function is being exported although there is no use for it outside of vchiq's core code. Keep it local then. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +-- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if.h

[RFC 33/50] staging: vchi: Use struct vchiq_service_params

2020-05-27 Thread Nicolas Saenz Julienne
For initialization, vchi has its own params structure, which is then translated to vchiq's params structure. They are essentially the same, so lets directly use vchiq's. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 9 + .../vc0

[RFC 34/50] staging: vchi: Get rid of struct vchi_service

2020-05-27 Thread Nicolas Saenz Julienne
The structure only contains a single parameter, which is the underlying vchiq handle. Get rid of the struct and directly pass the handle around. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 23 ++--- .../vc04_services/interface/vchi/vchi.h | 25

[RFC 43/50] staging: vchi: Get rid of vchi_bulk_queue_receive()

2020-05-27 Thread Nicolas Saenz Julienne
Its vchiq counterpart, vchiq_bulk_receive() is only used by vchi. We can then merge both functions by moving vchi_bulk_queue_receive()'s retry mechanism into vchiq_bulk_receive() and let services call the later. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchi/v

[RFC 37/50] staging: vchiq: Unify fourcc definition mechanisms

2020-05-27 Thread Nicolas Saenz Julienne
There is already enough duplication with regard to fourcc generation in the kernel. Let's at least use the same macro all over the vchiq ecosystem. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/bcm2835-audio/bcm2835-vchiq.c | 2 +- .../vc04_services/bcm2835-

[RFC 32/50] staging: vchiq: Don't use a typedef for vchiq_callback

2020-05-27 Thread Nicolas Saenz Julienne
Linux coding style says to avoid typdefs. Signed-off-by: Nicolas Saenz Julienne --- .../staging/vc04_services/interface/vchi/vchi.h| 5 - .../vc04_services/interface/vchiq_arm/vchiq_if.h | 14 -- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/drivers

[RFC 48/50] staging: vchiq: Use vchiq.h as the main header file for services

2020-05-27 Thread Nicolas Saenz Julienne
This used to be vchiq_if.h but vchiq.h is more concise for an include file that will hopefully be in the future in the includes directory. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/bcm2835-audio/bcm2835.h | 2 +- .../vc04_services/interface/vchiq_arm/vchiq.h | 107

[RFC 46/50] staging: vchiq: Get rid of vchi

2020-05-27 Thread Nicolas Saenz Julienne
igned-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/Makefile| 1 - .../bcm2835-audio/bcm2835-vchiq.c | 24 +-- .../vc04_services/bcm2835-audio/bcm2835.h | 1 - .../vc04_services/interface/{vchi => }/TODO | 0 .../vc04_services/interface/vch

[RFC 47/50] staging: vchiq: Move conditional barrier definition into vchiq_core.h

2020-05-27 Thread Nicolas Saenz Julienne
The barrier is only used by core code. So keep the barrier definition in the core header. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchiq_arm/vchiq.h| 11 --- .../vc04_services/interface/vchiq_arm/vchiq_core.h | 12 2 files changed, 12

[RFC 29/50] staging: vchiq: Export vchiq_get_service_userdata()

2020-05-27 Thread Nicolas Saenz Julienne
This is for service's callbacks to get their private data. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/dr

[RFC 31/50] staging: vchi: Get rid of vchiq_shim's message callback

2020-05-27 Thread Nicolas Saenz Julienne
, which makes for simpler code in the end. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 20 ++--- .../vc04_services/interface/vchi/vchi.h | 9 +- .../interface/vchi/vchi_common.h | 12 --- .../interface/vchiq_arm/v

[RFC 40/50] staging: vchiq: Get rid of unnecessary definitions in vchiq_if.h

2020-05-27 Thread Nicolas Saenz Julienne
Those functions don't actually exist, nor have any use, nor the macros. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchiq_arm/vchiq_if.h | 17 - 1 file changed, 17 deletions(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_if

[RFC 39/50] staging: vchi: Don't include vchiq_core.h

2020-05-27 Thread Nicolas Saenz Julienne
This file is internal to vchiq. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c b/drivers/staging/vc04_services/interface

[RFC 36/50] staging: vchi: Rework vchi_msg_hold() to match vchiq_msg_hold()

2020-05-27 Thread Nicolas Saenz Julienne
The services have access to struct vchiq_header's internals, so we can let them get the data pointer. This pretty much makes both functions exactly the same, which will allow us to make a switch to vchiq_msg_hold() further down the road. Signed-off-by: Nicolas Saenz Julienne --- .../st

[RFC 45/50] staging: vchi: Move vchi_queue_kernel_message() into vchiq

2020-05-27 Thread Nicolas Saenz Julienne
We can't really merge it with vchiq_queue_message() as it has internal users that will not benefit from the retry mechanism vchiq_queue_kernel_message() uses. So, for the sake of getting rid of vchi, move it into vchiq. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vc

[RFC 50/50] staging: vchiq: Move vchiq.h into include directory

2020-05-27 Thread Nicolas Saenz Julienne
To make the separation clear between vchiq's header files and vchiq.h, which is to be used by services and is the 'public' API, move it into a dedicated includes directory. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/Makefile

[RFC 42/50] staging: vchiq: Move definitions only used by core into core header

2020-05-27 Thread Nicolas Saenz Julienne
vchiq_if.h is used by service consumers and only the exported API should be present. Move the rest of definitions, which were not exported by the way, to vchiq_core.h where they belong. Signed-off-by: Nicolas Saenz Julienne --- .../interface/vchiq_arm/vchiq_core.h | 22

[RFC 44/50] staging: vchi: Get rid of vchi_bulk_queue_transmit()

2020-05-27 Thread Nicolas Saenz Julienne
Its vchiq counterpart, vchiq_bulk_transmit() is only used by vchi. We can then merge both functions by moving vchi_bulk_queue_transmit()'s retry mechanism into vchiq_bulk_transmit() and let services call the later. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vc

[RFC 28/50] staging: vchi: Expose struct vchi_service

2020-05-27 Thread Nicolas Saenz Julienne
This will make further changes easier. The struct will ultimately disappear. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchi/vchi.h| 10 +++--- .../vc04_services/interface/vchiq_arm/vchiq_shim.c | 7 --- 2 files changed, 7 insertions

[RFC 24/50] staging: vchi: Get rid of effect less expression

2020-05-27 Thread Nicolas Saenz Julienne
It was probably there to trick compilers into ignoring unused variables, which isn't needed in Linux. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_shim.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/staging/vc04_ser

[RFC 23/50] staging: vchi: Use vchiq's enum vchiq_reason

2020-05-27 Thread Nicolas Saenz Julienne
enum vchi_callback_reason maps 1:1 to enum vchiq_reason, in an effort to simplify things, let's use the later, and get rid of the extra indirection. Signed-off-by: Nicolas Saenz Julienne --- .../bcm2835-audio/bcm2835-vchiq.c | 5 +-- .../interface/vchi/vchi_com

[RFC 27/50] staging: vchiq: Get rid of vchiq_util.h

2020-05-27 Thread Nicolas Saenz Julienne
The header file only provides other includes. Move the relevant includes to their respective C files and delete it for good. Signed-off-by: Nicolas Saenz Julienne --- .../vc04_services/interface/vchiq_arm/vchiq.h | 1 - .../interface/vchiq_arm/vchiq_2835_arm.c | 1 + .../interface

[RFC 26/50] staging: vchiq: Move message queue into struct vchiq_service

2020-05-27 Thread Nicolas Saenz Julienne
ne to match vchiq's user_service message queue, which could be merged with this one in the future. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/Makefile| 1 - .../interface/vchiq_arm/vchiq_core.c | 46 .../interface/vchiq_arm/vc

<    1   2   3   4   5   6   7   8   9   10   >