Re: [PATCH v2] usb: gadget: configfs: log function unbinding as debug

2016-09-07 Thread Romain Izard
2016-08-29 11:07 GMT+02:00 Romain Izard : > Disabling USB gadget functions configured through configfs is something > that can happen in normal use cases. Keep the existing log for this type > of event, but only as debug, not as an error. > > Signed-off-by: Romain Izard > --- &

[PATCH] crypto: ccm - preserve the IV buffer

2017-10-31 Thread Romain Izard
the hashing algorithm will interpret the updated IV instead of the original value, which can lead to out-of-bounds writes. Reuse the idata buffer, only used in the hashing step, to preserve the IV's value during the ciphering step in the decryption case. Signed-off-by: Romain Izard --- c

[PATCH 0/2] Fixes for the Atmel AES crypto module

2017-10-31 Thread Romain Izard
th the v4.14 updates, new asynchronous tests are enabled and report new issues. Romain Izard (2): crypto: atmel-aes - properly set IV after {en,de}crypt crypto: atmel-aes - Reset the controller before each use drivers/crypto/atmel-aes.c | 50 -- 1 file chan

[PATCH 2/2] crypto: atmel-aes - Reset the controller before each use

2017-10-31 Thread Romain Izard
When using the rfc4543(gcm(aes))) mode, the registers of the hardware engine are not empty after use. If the engine is not reset before its next use, the following results will be invalid. Always reset the hardware engine. Signed-off-by: Romain Izard --- drivers/crypto/atmel-aes.c | 10

[PATCH 1/2] crypto: atmel-aes - properly set IV after {en,de}crypt

2017-10-31 Thread Romain Izard
is now correctly passed. In the case of in-place decryption, copy the ciphertext in an intermediate buffer before decryption. Signed-off-by: Romain Izard --- drivers/crypto/atmel-aes.c | 40 +--- 1 file changed, 37 insertions(+), 3 deletions(-) diff --git a/d

Re: [PATCH 2/2] crypto: atmel-aes - Reset the controller before each use

2017-11-06 Thread Romain Izard
2017-11-06 16:45 GMT+01:00 Tudor Ambarus : > Hi, Romain, > > On 10/31/2017 05:25 PM, Romain Izard wrote: >> >> When using the rfc4543(gcm(aes))) mode, the registers of the hardware >> engine are not empty after use. If the engine is not reset before its >> next u

[PATCH v5 0/3] Clock patches for SAMA5D2 backup mode

2017-10-19 Thread Romain Izard
* improve comments on PMC clock handling Changes in v4: * fix a bug in the PMECC resume code Changes in v5: * drop all patches already taken * split the patch series by subsystem Romain Izard (8): clk: at91: pmc: Wait for clocks when resuming clk: at91: pmc: Save SCSR during suspend clk

[PATCH v5 1/3] clk: at91: pmc: Wait for clocks when resuming

2017-10-19 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre --- drivers/clk

[PATCH v5 3/3] clk: at91: pmc: Support backup for programmable clocks

2017-10-19 Thread Romain Izard
From: Romain Izard When an AT91 programmable clock is declared in the device tree, register it into the Power Management Controller driver. On entering suspend mode, the driver saves and restores the Programmable Clock registers to support the backup mode for these clocks. Signed-off-by: Romain

[PATCH v5 2/3] clk: at91: pmc: Save SCSR during suspend

2017-10-19 Thread Romain Izard
clocks will be impacted. Fix the obvious typo in the suspend/resume code, as the IMR register does not need to be saved twice. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/clk/at91/pmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91

[PATCH v5] pwm: atmel-tcb: Support backup mode

2017-10-19 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- Changes in v5: * extract from the patch series, and send as a standalone patch drivers/pwm/pwm-atmel-tcb.c | 63

[PATCH v5] atmel_flexcom: Support backup mode

2017-10-19 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre Tested-by: Nicolas Ferre --- Changes in v5

"perf record" leads to a watchdog reset on a SAMA5D2 SoC

2018-01-11 Thread Romain Izard
I'm not sure of how to interpret the issue. Is it because the CPU is too busy servicing the trace code during ticks to do anything else? Best regards, -- Romain Izard

[PATCH v1] mtd: ubi: block: Fix error for write access

2018-01-29 Thread Romain Izard
veritysetup userspace tool is expecting EROFS, and refuses to use the ubiblock device. Use -EROFS for ubiblock as well. As a result, veritysetup accepts the ubiblock device as valid. Fixes: 9d54c8a33eec (UBI: R/O block driver on top of UBI volumes) Signed-off-by: Romain Izard --- drivers/mtd/ubi/block.c

[PATCH] ARM: dts: at91: sama5d2: use the divided clock for SMC

2018-11-20 Thread Romain Izard
then used by the code for the NAND controller to calculate the timings for the controller, and we end up with slow NAND Flash access. Fix the device tree, and the performance of Flash access is improved. Signed-off-by: Romain Izard --- arch/arm/boot/dts/sama5d2.dtsi | 2 +- 1 file changed, 1

Re: [PATCH] ARM: dts: at91: sama5d2: use the divided clock for SMC

2018-11-20 Thread Romain Izard
Le mar. 20 nov. 2018 à 18:16, Alexandre Belloni a écrit : > > Hello Romain, > > On 20/11/2018 17:57:37+0100, Romain Izard wrote: > > The SAMA5D2 is different from SAMA5D3 and SAMA5D4, as there are two > > different clocks for the peripherals in the SoC. The Static

Re: [PATCH 2/2] watchdog: sama5d4: write the mode register in two steps

2018-09-17 Thread Romain Izard
2018-09-14 12:27 GMT+02:00 Alexandre Belloni : > On 14/09/2018 12:13:39+0200, Romain Izard wrote: >> The specification for SAMA5D2 and SAMA5D4 chips, that use this IP for >> their watchdog timer, has the following advice regarding the Mode Register: >> >> "When set

Re: [PATCH v2 9/9] misc: atmel_tclib: do not probe already used TCBs

2019-04-17 Thread Romain Izard
lead to a panic during shutdown, as tc_shutdown is called on the device that has not been initialized and it has not been designed for this. -- Romain Izard

[PATCH v2] trace: module: Maintain a valid user count

2014-03-04 Thread Romain Izard
ement was wrong in the tracing code, and the refcount in the traces was not usable as a result. Use 'count = incs - decs' to compute the user count. Signed-off-by: Romain Izard --- include/trace/events/module.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inclu

[PATCH] trace: module: Maintain a valid user count

2014-03-03 Thread Romain Izard
ement was wrong in the tracing code, and the refcount in the traces was not usable as a result. Use 'count = incs - decs' to compute the user count. Signed-off-by: Romain Izard --- include/trace/events/module.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inclu

Re: [PATCH 2/4] drivers/mmc/host: don't use devm_pinctrl_get_select_default() in probe

2013-10-14 Thread Romain Izard
pinctrl_get_select_default(&pdev->dev); > - if (IS_ERR(pinctrl)) > - dev_warn(&pdev->dev, "no pins associated\n"); > - > /* > * Some non-DT platforms do not pass a clock, and the clock >* frequency is passed through platform_data. On DT platform

Re: [PATCH v2] trace: module: Maintain a valid user count

2014-05-07 Thread Romain Izard
2014-03-06 18:34 GMT+01:00 Steven Rostedt : > Ingo, > > You want to push this to Linus? > > Reviewed-by: Steven Rostedt > > -- Steve > > > On Tue, 4 Mar 2014 10:09:39 +0100 > Romain Izard wrote: > >> The replacement of the 'count' variable b

Re: [PATCH] ARM: dts: at91: sama5d2: use "atmel,sama5d3-nfc" compatible for nfc

2016-05-09 Thread Romain Izard
> driver will be updated to remove the support for this different > implementation. > > Signed-off-by: Wenyou Yang > [nicolas.fe...@atmel.com: change commit message] > Signed-off-by: Nicolas Ferre Acked-by: Romain Izard > --- > Wenyou, Romain, > > I plan to send th

Re: [PATCH 1/2] Revert "mtd: atmel_nand: Support variable RB_EDGE interrupts"

2016-05-10 Thread Romain Izard
ed on my board as soon as possible. Best regards, -- Romain Izard

[PATCH] ARM: dts: at91: sama5d2 Xplained: Correct the macb irq pinctrl node

2016-02-18 Thread Romain Izard
require valid mappings. Additionally, the pin is not protected from being remapped later by an other driver. There is an external 1kΩ pull-up to 3.3V, so no bias is required on the Ethernet PHY's interrupt line. Signed-off-by: Romain Izard --- arch/arm/boot/dts/at91-sama5d2_xplained.dts | 1 + 1

Device probing proceeds even when the default pinctrl state is invalid

2016-02-18 Thread Romain Izard
tate of things, both devices are probed successfully as conflicting pin sets are not recognized as an issue, which means that my use case does not work. Is the direction I'm taking something correct ? Best regards, -- Romain Izard

Re: Device probing proceeds even when the default pinctrl state is invalid

2016-02-19 Thread romain izard
2016-02-18 21:07 GMT+01:00 Linus Walleij : > On Thu, Feb 18, 2016 at 11:37 AM, Romain Izard > wrote: > >> The current code for device probing tries to map the default pinctrl >> state (in pinctrl_bind_pins), but is returning 0 or -EDEFER. If there >> is an other erro

[PATCH v1] serial: mctrl_gpio: Add missing module license

2016-02-23 Thread Romain Izard
As the mctrl_gpio driver can be built as a module, it needs to have its license specified with MODULE_LICENSE. Otherwise, it cannot access required symbols exported through EXPORT_SYMBOL_GPL. Signed-off-by: Romain Izard --- drivers/tty/serial/serial_mctrl_gpio.c | 3 +++ 1 file changed, 3

Re: [PATCH v1] serial: mctrl_gpio: Add missing module license

2016-02-23 Thread Romain Izard
2016-02-23 16:21 GMT+01:00 Fabio Estevam : > On Tue, Feb 23, 2016 at 11:54 AM, Romain Izard > wrote: >> As the mctrl_gpio driver can be built as a module, it needs to have its >> license specified with MODULE_LICENSE. Otherwise, it cannot access >> required

[PATCH] tty/serial: at91: restore dynamic driver binding

2016-02-23 Thread Romain Izard
t;clk" field on removal, triggering an oops when a device was bound again after being unbound. Signed-off-by: Romain Izard --- drivers/tty/serial/atmel_serial.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c

Re: [PATCH] tty/serial: at91: restore dynamic driver binding

2016-02-24 Thread Romain Izard
2016-02-23 20:18 GMT+01:00 Paul Gortmaker : > [[PATCH] tty/serial: at91: restore dynamic driver binding] On 23/02/2016 (Tue > 17:59) Romain Izard wrote: > >> In commit c39dfebc7798956fd2140ae6321786ff35da30c3, the modular support >> code for atmel_serial was removed, as the d

Re: [PATCH] tty/serial: at91: restore dynamic driver binding

2016-02-24 Thread romain izard
2016-02-24 15:53 GMT+01:00 Nicolas Ferre : > Le 23/02/2016 17:59, Romain Izard a écrit : >> In commit c39dfebc7798956fd2140ae6321786ff35da30c3, the modular support >> code for atmel_serial was removed, as the driver cannot be built as a >> module. Because no use case was

[PATCH v2] clocksource: atmel-pit: register as a sched_clock

2016-02-24 Thread Romain Izard
initialization sequence. Signed-off-by: Romain Izard --- Changelog: v2: - Keep the tick counter updated when the clocksource is disabled - Ensure that sched_clock is a 64 bit counter drivers/clocksource/timer-atmel-pit.c | 31 --- 1 file changed, 16 insertions(+), 15

Re: [PATCH v2] clocksource: atmel-pit: register as a sched_clock

2016-02-24 Thread Romain Izard
2016-02-24 17:20 GMT+01:00 Sylvain Rochet : > Hi, > > On Wed, Feb 24, 2016 at 05:04:42PM +0100, Romain Izard wrote: >> Register the counter of the Periodic Interval Timer as a possible >> source for sched_clock. Keep the timer running even if the related >> clockev

[PATCH v2] tty/serial: at91: restore dynamic driver binding

2016-02-25 Thread Romain Izard
t;clk" field on removal, triggering an oops when a device was bound again after being unbound. Signed-off-by: Romain Izard --- Changelog: v2: Add the rationale for keeping the "remove" function as a comment. drivers/tty/serial/atmel_serial.c | 39 +++

Re: [PATCH v2] tty/serial: at91: restore dynamic driver binding

2016-02-25 Thread Romain Izard
2016-02-25 17:09 GMT+01:00 Greg Kroah-Hartman : > On Thu, Feb 25, 2016 at 11:01:07AM +0100, Nicolas Ferre wrote: >> Le 25/02/2016 10:23, Romain Izard a écrit : >> > In commit c39dfebc7798956fd2140ae6321786ff35da30c3, the modular >> > support code for atmel_serial was re

[PATCH v3] tty/serial: at91: restore dynamic driver binding

2016-02-26 Thread Romain Izard
t;clk" field on removal, triggering an oops when a device was bound again after being unbound. Acked-by: Nicolas Ferre Signed-off-by: Romain Izard --- Changelog: v2: Add the rationale for keeping the "remove" function as a comment. v3: Do not cleanup the spaces in the driver initiali

[PATCH v2] power: supply: register HWMON devices with valid names

2019-08-30 Thread Romain Izard
tering with the HWMON framework. Other forbidden characters (star, slash, space, tab, newline) are not replaced, as they are not in common use. Fixes: e67d4dfc9ff1 ("power: supply: Add HWMON compatibility layer") Signed-off-by: Romain Izard Reviewed-by: Guenter Roeck --- v2: Remove a s

[PATCH] power: supply: register HWMON devices with valid names

2019-08-22 Thread Romain Izard
with the HWMON framework. Other forbidden characters (star, slash, space, tab, newline) are not replaced, as they are not in common use. Fixes: e67d4dfc9ff1 ("power: supply: Add HWMON compatibility layer") Signed-off-by: Romain Izard --- drivers/power/supply/power_supply_hwmon.c | 15 ++

Re: [PATCH] power: supply: register HWMON devices with valid names

2019-08-23 Thread Romain Izard
On Thu, Aug 22, 2019 at 09:12:07AM -0700, Guenter Roeck wrote: > On Thu, Aug 22, 2019 at 05:09:19PM +0200, Romain Izard wrote: > > With the introduction of the HWMON compatibility layer to the power > > supply framework in Linux 5.3, all power supply devices' names can be

[PATCH 0/2] Fixes for the SAMA5D2/SAMA5D4 watchdog

2018-09-14 Thread Romain Izard
to a watchdog reset immediately when opening the watchdog device. Fix this by respecting hardware constraints added in recent versions of the SAMA5D2 and SAMA5D4 datasheet. Romain Izard (2): watchdog: sama5d4: fix timeout-sec usage watchdog: sama5d4: write the mode register in two steps drivers/watchdo

[PATCH 1/2] watchdog: sama5d4: fix timeout-sec usage

2018-09-14 Thread Romain Izard
ecs provided in devicetree") Signed-off-by: Romain Izard --- drivers/watchdog/sama5d4_wdt.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index 255169916dbb..1e93c1b0e3cf 100644 --- a/drivers/watchdog/sama5d4

[PATCH 2/2] watchdog: sama5d4: write the mode register in two steps

2018-09-14 Thread Romain Izard
s into two parts if WDV or WDD need to be changed. Signed-off-by: Romain Izard --- drivers/watchdog/sama5d4_wdt.c | 27 --- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/drivers/watchdog/sama5d4_wdt.c b/drivers/watchdog/sama5d4_wdt.c index 1e93c1b0e3cf..1e

[PATCH RESEND] mtd: ubi: block: Fix error for write access

2018-03-02 Thread Romain Izard
veritysetup userspace tool is expecting EROFS, and refuses to use the ubiblock device. Use -EROFS for ubiblock as well. As a result, veritysetup accepts the ubiblock device as valid. Fixes: 9d54c8a33eec (UBI: R/O block driver on top of UBI volumes) Signed-off-by: Romain Izard --- drivers/mtd/ubi/block.c

[RFC PATCH] cdc-acm: do not drop data from fast devices

2018-03-05 Thread Romain Izard
drop it immediately. To prevent this problem, the URBs whose data did not reach the flip buffer are placed in a waiting list, which is only processed when the serial port is unthrottled. Signed-off-by: Romain Izard -- This is working when using the normal line discipline on ttyACM. But there is a

[PATCH 0/3] Fix an Atmel USBA UDC issue introducted in 4.17-rc1

2018-04-16 Thread Romain Izard
the support of platform_data to declare USBA controllers. These changes have not been tested on any hardware, as I do not have a board that needs to use inverted GPIOs. Romain Izard (3): usb: gadget: udc: atmel: GPIO inversion is handled by gpiod usb: gadget: udc: atmel: Remove obsolete

[PATCH 1/3] usb: gadget: udc: atmel: GPIO inversion is handled by gpiod

2018-04-16 Thread Romain Izard
When converting to GPIO descriptors, gpiod_get_value automatically handles the line inversion flags from the device tree. Do not invert the line twice. Fixes: 3df034081021fa4b6967ce3364bc7d867ec1c870 Signed-off-by: Romain Izard --- drivers/usb/gadget/udc/atmel_usba_udc.c | 3 +-- drivers/usb

[PATCH 2/3] usb: gadget: udc: atmel: Remove obsolete include

2018-04-16 Thread Romain Izard
The include defines the private platform_data structure used with AVR platforms. It has no user since 7c55984e191f. Remove it. Signed-off-by: Romain Izard --- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 - include/linux/usb/atmel_usba_udc.h | 24 2 files changed

[PATCH 3/3] usb: gadget: udc: atmel: Fix indenting

2018-04-16 Thread Romain Izard
Fix the fallout of the conversion to GPIO descriptors in 3df034081021. Signed-off-by: Romain Izard --- drivers/usb/gadget/udc/atmel_usba_udc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc

[PATCH v2 0/3] Fix an Atmel USBA UDC issue introducted in 4.17-rc1

2018-05-11 Thread Romain Izard
the support of platform_data to declare USBA controllers. These changes have not been tested on any hardware, as I do not have a board that needs to use inverted GPIOs. -- Changes in v2: - Use the correct format for the "Fixes:" tag - Collect "Acked-by:" tags Romain Izar

[PATCH v2 1/3] usb: gadget: udc: atmel: GPIO inversion is handled by gpiod

2018-05-11 Thread Romain Izard
re Signed-off-by: Romain Izard --- drivers/usb/gadget/udc/atmel_usba_udc.c | 3 +-- drivers/usb/gadget/udc/atmel_usba_udc.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/usb/gadget/udc/atmel_usba_udc.c b/drivers/usb/gadget/udc/atmel_usba_udc.c index 27c16399c7e8..0f

[PATCH v2 3/3] usb: gadget: udc: atmel: Fix indenting

2018-05-11 Thread Romain Izard
Fix the fallout of the conversion to GPIO descriptors in 3df034081021. Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre Signed-off-by: Romain Izard --- drivers/usb/gadget/udc/atmel_usba_udc.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/drivers/usb

[PATCH v2 2/3] usb: gadget: udc: atmel: Remove obsolete include

2018-05-11 Thread Romain Izard
The include defines the private platform_data structure used with AVR platforms. It has no user since 7c55984e191f. Remove it. Acked-by: Ludovic Desroches Acked-by: Nicolas Ferre Signed-off-by: Romain Izard --- drivers/usb/gadget/udc/atmel_usba_udc.c | 1 - include/linux/usb/atmel_usba_udc.h

Re: [PATCH] tcb_clksrc: Use 32 bit tcb as sched_clock

2017-01-17 Thread Romain Izard
race 3d13186881cd5c91 ]--- "sched_clock_register" expects to be called with interrupts disabled, but the tcb_clksrc initialization is called as an arch_initcall, which runs too late in the boot sequence. Best regards, -- Romain Izard

[PATCH v1] usb: gadget: configfs: log function unbinding as information

2016-07-26 Thread Romain Izard
Disabling USB gadget functions configured through configfs is something that can happen in normal use cases. Keep the existing log for this type of event, but only as information, not as an error. Signed-off-by: Romain Izard --- drivers/usb/gadget/configfs.c | 5 +++-- 1 file changed, 3

Re: Warning on boot on SAMA5D2 with Linux 4.11-rc1

2017-03-07 Thread Romain Izard
2017-03-06 12:28 GMT+01:00 Romain Izard : > > While looking for another issue, I tried Linux 4.11-rc1 on a SAMA5D2 Xplained > board. The boot log contains the following warning: > > [0.10] [ cut here ] > [0.10] WARNING: CPU: 0 PID: 1 a

[PATCH v2] usb: gadget: legacy gadgets are optional

2017-03-09 Thread Romain Izard
but without any legacy gadget driver. Mark the choice for legacy gadget drivers as optional. Fixes: bc49d1d17dcf ("usb: gadget: don't couple configfs to legacy gadgets") Cc: # 4.9+ Signed-off-by: Romain Izard --- changes in v2: - Reword description drivers/usb/gadget/Kconfig | 11

[PATCH] mmc: sdhci-of-at91: Support external regulators

2017-03-09 Thread Romain Izard
the connected device. Implement a custom 'set_power' function for this specific hardware, that configures the voltage in the register in all cases. Signed-off-by: Romain Izard --- drivers/mmc/host/sdhci-of-at91.c | 19 +++ 1 file changed, 19 insertions(+) diff --git

[PATCH v1] Revert "clocksource/drivers/tcb_clksrc: Use 32 bit tcb as sched_clock"

2017-03-09 Thread Romain Izard
ed as well. Signed-off-by: Romain Izard --- drivers/clocksource/tcb_clksrc.c | 16 +--- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/drivers/clocksource/tcb_clksrc.c b/drivers/clocksource/tcb_clksrc.c index 745844ee973e..d4ca9962a759 100644 --- a/drivers/clocksource/tc

[PATCH v1] usb: gadget: udc: atmel: Remove an unused local variable

2017-03-09 Thread Romain Izard
The local variable ept_cfg is not used anymore in usba_ep_enable. Use ep->ept_cfg in the debug function to remove a warning when building with dynamic debug enabled. Signed-off-by: Romain Izard Fixes: 741d2558bf0a ("usb: gadget: udc: atmel: Update endpoint allocation scheme") ---

Re: [PATCH v2] usb: gadget: legacy gadgets are optional

2017-03-10 Thread Romain Izard
Hello Felipe, 2017-03-10 10:15 GMT+01:00 Felipe Balbi : > > Hi, > > Romain Izard writes: >> With commit "usb: gadget: don't couple configfs to legacy gadgets" >> it is possible to build a modular kernel with both built-in configfs >> support and

[PATCH v3 1/2] usb: gadget: legacy gadgets are optional

2017-03-10 Thread Romain Izard
gacy gadgets") Cc: # 4.9+ Signed-off-by: Romain Izard --- Changes in v2: - Reword description Changes in v3: - Remove comment changes drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfig index 8ad203296

[PATCH v3 0/2] Various cleanups for USB Gadget Kconfig

2017-03-10 Thread Romain Izard
Fix some issues left when the configuration was updated to support a built-in USB gadget configfs together with modular legacy gadget drivers. Changes in v2: - Reword description Changes in v3: - Split functional and comment changes Romain Izard (2): usb: gadget: legacy gadgets are optional

[PATCH v3 2/2] usb: gadget: reword configuration choices

2017-03-10 Thread Romain Izard
not the only way to provice service as an USB gadget. Signed-off-by: Romain Izard --- Changes in v3: - split from the functional patch drivers/usb/gadget/Kconfig | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drivers/usb/gadget/Kconfig b/drivers/usb/gadget/Kconfi

Re: [PATCH v1] usb: gadget: udc: atmel: Remove an unused local variable

2017-03-10 Thread Romain Izard
2017-03-09 18:02 GMT+01:00 Romain Izard : > The local variable ept_cfg is not used anymore in usba_ep_enable. > Use ep->ept_cfg in the debug function to remove a warning when building > with dynamic debug enabled. > > Signed-off-by: Romain Izard > Fixes: 741d2558bf0a (&qu

Warning on boot on SAMA5D2 with Linux 4.11-rc1

2017-03-06 Thread Romain Izard
enabled. This warning does not prevent the tcb clock from being used. -- Romain Izard

[PATCH] atmel_serial: Use the fractional divider when possible

2017-02-10 Thread Romain Izard
. Signed-off-by: Romain Izard --- drivers/tty/serial/atmel_serial.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c index fabbe76203bb..6684456dca9e 100644 --- a/drivers/tty/serial/atmel_serial.c +++ b

[PATCH] usb: gadget: legacy gadgets are optional

2017-02-13 Thread Romain Izard
When building without modules, it makes sense to configure the kernel to only use configfs for USB Gadget drivers. Mark the choice for legacy gadget drivers as optional. Signed-off-by: Romain Izard cc: # 4.9 --- drivers/usb/gadget/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a

[PATCH] Revert "ARM: at91/dt: sama5d2: Use new compatible for ohci node"

2017-02-17 Thread Romain Izard
RM: at91/dt: sama5d2: Use new compatible for ohci node") Signed-off-by: Romain Izard cc: --- arch/arm/boot/dts/sama5d2.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/boot/dts/sama5d2.dtsi b/arch/arm/boot/dts/sama5d2.dtsi index ceb9783ff7e1..ff7eae833a6d

Fractional divider on the Atmel USART controller

2017-02-06 Thread Romain Izard
ld I just propose this as a patch, or is it necessary to add a limitation for supported devices only ? Best regards, -- Romain Izard

Re: Fractional divider on the Atmel USART controller

2017-02-06 Thread Romain Izard
2017-02-06 14:42 GMT+01:00 Ludovic Desroches : > Hello Romain, > > On Mon, Feb 06, 2017 at 12:56:42PM +0100, Romain Izard wrote: >> >> Unfortunately, I know that this will work on SAMA5D2, but this driver is >> used for many other Atmel chips. I do not know if the e

Re: Fractional divider on the Atmel USART controller

2017-02-06 Thread Romain Izard
2017-02-06 16:14 GMT+01:00 Romain Izard : > > For verification, I checked the SAMA5D2 datasheet, and (in rev. D) the > warning is still present in §41.7.1.2. It looks like I got confused with between the versions. In fact, the warning disappeared between versions C & D, and the la

Re: [PATCH v1] usb: gadget: configfs: log function unbinding as information

2016-08-29 Thread Romain Izard
2016-07-26 18:21 GMT+02:00 Romain Izard : > Disabling USB gadget functions configured through configfs is something > that can happen in normal use cases. Keep the existing log for this type > of event, but only as information, not as an error. > > Signed-off-by: Romain Izard >

Re: [PATCH v1] usb: gadget: configfs: log function unbinding as information

2016-08-29 Thread Romain Izard
2016-08-29 10:13 GMT+02:00 Felipe Balbi : > > Hi, > > Romain Izard writes: >> Disabling USB gadget functions configured through configfs is something >> that can happen in normal use cases. Keep the existing log for this type >> of event, but only as information, not

[PATCH v2] usb: gadget: configfs: log function unbinding as debug

2016-08-29 Thread Romain Izard
Disabling USB gadget functions configured through configfs is something that can happen in normal use cases. Keep the existing log for this type of event, but only as debug, not as an error. Signed-off-by: Romain Izard --- v1 -> v2: - use dev_dbg instead of dev_info drivers/usb/gad

[PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-03 Thread Romain Izard
the timer on opening the watchdog device. Command: "while sleep 5; do echo 1; done > /dev/watchdog" Before: system reset After: the watchdog runs correctly Signed-off-by: Romain Izard --- drivers/watchdog/sama5d4_wdt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dri

Re: [PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-03 Thread Romain Izard
Hi Guenter, 2016-03-03 13:10 GMT+01:00 Guenter Roeck : > On 03/03/2016 02:29 AM, Romain Izard wrote: >> >> If the internal counter is not refreshed when the watchdog is started >> for the first time, the watchdog will trigger very rapidly. For >> example, opening /dev/

Re: [PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-04 Thread Romain Izard
Hi Wenyou, Guenter, 2016-03-04 6:23 GMT+01:00 Guenter Roeck : > On 03/03/2016 05:35 PM, Yang, Wenyou wrote: >> On 2016/3/3 18:29, Romain Izard wrote: >>> >>> If the internal counter is not refreshed when the watchdog is >>> started for the first time, th

Re: [PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-04 Thread Romain Izard
2016-03-04 14:09 GMT+01:00 Guenter Roeck : > On 03/04/2016 01:06 AM, Romain Izard wrote: >> 2016-03-04 6:23 GMT+01:00 Guenter Roeck : >>> On 03/03/2016 05:35 PM, Yang, Wenyou wrote: >>>> On 2016/3/3 18:29, Romain Izard wrote: >>>>> >>>>>

Re: [PATCH v1] watchdog: sama5d4_wdt: Reset delay on start

2016-03-04 Thread Romain Izard
which supports multiple writes to the MR register. Are you sure about your datasheet? I have this in the latest version found on Atmel's site. > Atmel-11238B-ATARM-SAMA5D4-Datasheet_24-Aug-15 > Section 18.5.2 > > Note: Write access to this register has no effect if the LOCKMR > command is issued in WDT_CR (unlocked on hardware reset). > Note: The WDT_MR register values must not be modified within three slow > clock periods following a restart of the watchdog performed by > a write access in WDT_CR. Any modification will cause the watchdog > to trigger an end of period earlier than expected. > It matches the comments from Wenyou when he committed the sama5d4 watchdog driver to replace the existing at91sam9 watchdog. Best regards, -- Romain Izard

[PATCH v1] clocksource: atmel-pit: register as a sched_clock

2016-02-04 Thread Romain Izard
Register the counter of the Periodic Interval Timer as a possible source for sched_clock. This provides a better precision than the jiffies-based default. Signed-off-by: Romain Izard --- To reduce overhead and cache consumption, sched_clock_register does not take a void* argument, as it is the

Re: A potential broken at platform driver?

2019-06-04 Thread Romain Izard
the attributes will be different, as the child device will show up in the sysfs path. But for a newly introduced device this will not be a problem. Is this a good compromise ? Best regards, -- Romain Izard

Re: [PATCH 1/3] ARM: at91: pm: Add sama5d2 backup mode

2017-04-27 Thread Romain Izard
; > /* > * void at91_sramc_self_refresh(unsigned int is_active) > @@ -314,6 +358,10 @@ ENDPROC(at91_sramc_self_refresh) > .word 0 > .sramc1_base: > .word 0 > +.shdwc: > + .word 0 > +.sfr: > + .word 0 > .memtype: > .word 0 > .pm_mode: > diff --git a/arch/arm/mach-at91/sama5.c b/arch/arm/mach-at91/sama5.c > index 6d157d0ead8e..3d0bf95a56ae 100644 > --- a/arch/arm/mach-at91/sama5.c > +++ b/arch/arm/mach-at91/sama5.c > @@ -34,7 +34,6 @@ DT_MACHINE_START(sama5_dt, "Atmel SAMA5") > MACHINE_END > > static const char *const sama5_alt_dt_board_compat[] __initconst = { > - "atmel,sama5d2", > "atmel,sama5d4", > NULL > }; > @@ -45,3 +44,21 @@ DT_MACHINE_START(sama5_alt_dt, "Atmel SAMA5") > .dt_compat = sama5_alt_dt_board_compat, > .l2c_aux_mask = ~0UL, > MACHINE_END > + > +static void __init sama5d2_init(void) > +{ > + of_platform_default_populate(NULL, NULL, NULL); > + sama5d2_pm_init(); > +} > + > +static const char *const sama5d2_compat[] __initconst = { > + "atmel,sama5d2", > + NULL > +}; > + > +DT_MACHINE_START(sama5d2, "Atmel SAMA5") > + /* Maintainer: Atmel */ > + .init_machine = sama5d2_init, > + .dt_compat = sama5d2_compat, > + .l2c_aux_mask = ~0UL, > +MACHINE_END Best regards, -- Romain Izard

[PATCH v6] atmel_flexcom: Support resuming after a chip reset

2017-12-12 Thread Romain Izard
on resume. Signed-off-by: Romain Izard --- Changes in v5: * extract from the patch series, and send as a standalone patch Changes in v6: * Reword the patch title and description * Rename the internal structure to ddata drivers/mfd/atmel-flexcom.c | 63 ++-

Re: [PATCH v1 03/10] clk: at91: pmc: Support backup for programmable clocks

2017-09-14 Thread romain izard
2017-09-13 19:03 GMT+02:00 Alexandre Belloni : > On 13/09/2017 at 14:29:35 +0200, Nicolas Ferre wrote: >> On 08/09/2017 at 17:35, Romain Izard wrote: >> > From: Romain Izard >> > >> > Save and restore the System Clock and Programmable Clock register for >

Re: [PATCH v1 01/10] clk: at91: pmc: Wait for clocks when resuming

2017-09-14 Thread Romain Izard
2017-09-13 14:15 GMT+02:00 Nicolas Ferre : > On 08/09/2017 at 17:35, Romain Izard wrote: >> Wait for the syncronization of all clocks when resuming, not only the >> UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() >> when interrupts are masked, whic

[PATCH v2 0/9] Various patches for SAMA5D2 backup mode

2017-09-15 Thread Romain Izard
a week without hanging. Changes in v2: * drop the IIO patch duplicating existing code * determine the number of programmable clocks to save dynamically * declare a required local variable in the tty/serial patch Romain Izard (9): clk: at91: pmc: Wait for clocks when resuming clk: at91: pmc

[PATCH v2 4/9] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-15 Thread Romain Izard
ematically reset the PMECC controller before using it. Signed-off-by: Romain Izard --- drivers/mtd/nand/atmel/pmecc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/atmel/pmecc.c b/drivers/mtd/nand/atmel/pmecc.c index 8c210a5776bc..8d1208f38025 10

[PATCH v2 5/9] mtd: nand: atmel: Report PMECC failures as errors

2017-09-15 Thread Romain Izard
It is not normal for the PMECC to fail when trying to fix ECC errors. Report these cases as errors. Signed-off-by: Romain Izard --- drivers/mtd/nand/atmel/pmecc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/atmel/pmecc.c b/drivers/mtd/nand/atmel

[PATCH v2 9/9] tty/serial: atmel: Prevent a warning on suspend

2017-09-15 Thread Romain Izard
rt_suspend_port disappears, and suspending is 20ms shorter for each enabled Atmel serial port. Signed-off-by: Romain Izard --- drivers/tty/serial/atmel_serial.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/drivers/tty/serial/atmel_serial.c b/drivers/tty/serial/atmel_serial.c ind

[PATCH v2 8/9] atmel_flexcom: Support backup mode

2017-09-15 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard --- drivers/mfd/atmel-flexcom.c | 65

[PATCH v2 6/9] ehci-atmel: Power down during suspend is normal

2017-09-15 Thread Romain Izard
When an Atmel SoC is suspended with the backup mode, the USB bus will be powered down. As this is expected, do not return an error to the driver core when ehci_resume detects it. Signed-off-by: Romain Izard --- drivers/usb/host/ehci-atmel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion

[PATCH v2 7/9] pwm: atmel-tcb: Support backup mode

2017-09-15 Thread Romain Izard
Save and restore registers for the PWM on suspend and resume, which makes hibernation and backup modes possible. Signed-off-by: Romain Izard --- drivers/pwm/pwm-atmel-tcb.c | 63 +++-- 1 file changed, 61 insertions(+), 2 deletions(-) diff --git a/drivers

[PATCH v2 3/9] clk: at91: pmc: Support backup for programmable clocks

2017-09-15 Thread Romain Izard
From: Romain Izard When an AT91 programmable clock is declared in the device tree, register it into the Power Management Controller driver. On entering suspend mode, the driver saves and restores the Programmable Clock registers to support the backup mode for these clocks. Signed-off-by: Romain

[PATCH v2 2/9] clk: at91: pmc: Save SCSR during suspend

2017-09-15 Thread Romain Izard
clocks will be impacted. Fix the obvious typo in the suspend/resume code, as the IMR register does not need to be saved twice. Signed-off-by: Romain Izard Acked-by: Nicolas Ferre --- drivers/clk/at91/pmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91

[PATCH v2 1/9] clk: at91: pmc: Wait for clocks when resuming

2017-09-15 Thread Romain Izard
Wait for the syncronization of all clocks when resuming, not only the UPLL clock. Do not use regmap_read_poll_timeout, as it will call BUG() when interrupts are masked, which is the case in here. Signed-off-by: Romain Izard --- drivers/clk/at91/pmc.c | 24 1 file

[PATCH v1 00/10] Various patches for SAMA5D2 backup mode

2017-09-08 Thread Romain Izard
a week without hanging. Romain Izard (10): clk: at91: pmc: Wait for clocks when resuming clk: at91: pmc: Save SCSR during suspend clk: at91: pmc: Support backup for programmable clocks mtd: nand: atmel: Avoid ECC errors when leaving backup mode mtd: nand: atmel: Report PMECC failures as

[PATCH v1 07/10] iio:adc:at91-sama5d2: Support backup mode

2017-09-08 Thread Romain Izard
Support the backup mode for platform suspend, by restoring the hardware registers on resume. Signed-off-by: Romain Izard --- drivers/iio/adc/at91-sama5d2_adc.c | 71 -- 1 file changed, 61 insertions(+), 10 deletions(-) diff --git a/drivers/iio/adc/at91

[PATCH v1 09/10] atmel_flexcom: Support backup mode

2017-09-08 Thread Romain Izard
The controller used by a flexcom module is configured at boot, and left alone after this. As the configuration will be lost after backup mode, restore the state of the flexcom driver on resume. Signed-off-by: Romain Izard --- drivers/mfd/atmel-flexcom.c | 65

[PATCH v1 04/10] mtd: nand: atmel: Avoid ECC errors when leaving backup mode

2017-09-08 Thread Romain Izard
ematically reset the PMECC controller before using it. Signed-off-by: Romain Izard --- drivers/mtd/nand/atmel/pmecc.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/drivers/mtd/nand/atmel/pmecc.c b/drivers/mtd/nand/atmel/pmecc.c index 8c210a5776bc..8d1208f38025 10

  1   2   >