[PATCH v2] clk: let clk_disable() return immediately if clk is NULL or error

2016-04-04 Thread Masahiro Yamada
The clk_disable() in the common clock framework (drivers/clk/clk.c) returns immediately if a given clk is NULL or an error pointer. It allows clock consumers to call clk_disable() without IS_ERR_OR_NULL checking if drivers are only used with the common clock framework. Unfortunately, NULL/error c

Re: [PATCH net-next] irda: sh_irda: remove driver

2016-04-04 Thread David Miller
From: Simon Horman Date: Mon, 4 Apr 2016 10:44:39 +0900 > Remove the sh-irda driver as it appears to be unused since > c0bb9b302769 ("ARCH: ARM: shmobile: Remove ag5evm board support"). > > Signed-off-by: Simon Horman Looks good, applied, thanks Simon.

Re: [PATCH v9 net-next] ravb: Add dma queue interrupt support

2016-04-04 Thread David Miller
From: Yoshihiro Kaneko Date: Sun, 3 Apr 2016 23:54:38 +0900 > From: Kazuya Mizuguchi > > This patch supports the following interrupts. > > - One interrupt for multiple (timestamp, error, gPTP) > - One interrupt for emac > - Four interrupts for dma queue (best effort rx/tx, network control rx/

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Wolfram Sang
> > You mean it just hangs ? That is bad. If that is the case, it is not > > reliable > > and thus should be a low priority (or at best medium priority) restart > > handler > > (which can be replaced with a working higher priority one). > > On my Salvator-X board, it hangs. The call into PSCI d

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Guenter Roeck
On Mon, Apr 04, 2016 at 08:14:02PM +0200, Geert Uytterhoeven wrote: > Hi Günter, > > On Mon, Apr 4, 2016 at 7:52 PM, Guenter Roeck wrote: > > On Mon, Apr 04, 2016 at 07:02:45PM +0200, Geert Uytterhoeven wrote: > >> On Mon, Apr 4, 2016 at 5:25 PM, Guenter Roeck wrote: > >> > On Mon, Apr 04, 2016

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Geert Uytterhoeven
Hi Günter, On Mon, Apr 4, 2016 at 7:52 PM, Guenter Roeck wrote: > On Mon, Apr 04, 2016 at 07:02:45PM +0200, Geert Uytterhoeven wrote: >> On Mon, Apr 4, 2016 at 5:25 PM, Guenter Roeck wrote: >> > On Mon, Apr 04, 2016 at 05:21:44PM +0200, Geert Uytterhoeven wrote: >> >> On Mon, Apr 4, 2016 at 4:59

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Guenter Roeck
On Mon, Apr 04, 2016 at 07:02:45PM +0200, Geert Uytterhoeven wrote: > Hi Günter, > > On Mon, Apr 4, 2016 at 5:25 PM, Guenter Roeck wrote: > > On Mon, Apr 04, 2016 at 05:21:44PM +0200, Geert Uytterhoeven wrote: > >> On Mon, Apr 4, 2016 at 4:59 PM, Wolfram Sang wrote: > >> >> My Salvator-X reboots

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Geert Uytterhoeven
Hi Günter, On Mon, Apr 4, 2016 at 5:25 PM, Guenter Roeck wrote: > On Mon, Apr 04, 2016 at 05:21:44PM +0200, Geert Uytterhoeven wrote: >> On Mon, Apr 4, 2016 at 4:59 PM, Wolfram Sang wrote: >> >> My Salvator-X reboots after timeout from "cat > /dev/watchdog0", but >> >> it doesn't reboot through

Re: [PATCH v2 7/9] mmc: sh_mobile_sdhi: Add UHS-I mode support

2016-04-04 Thread Wolfram Sang
> > Okay, so this delay can go. > > > > Thanks for the clarification. I will amend the patch, no need for you > to send a new version! Thanks a lot! signature.asc Description: PGP signature

Re: [PATCH v2 7/9] mmc: sh_mobile_sdhi: Add UHS-I mode support

2016-04-04 Thread Ulf Hansson
On 4 April 2016 at 17:17, Wolfram Sang wrote: > >> > + usleep_range(5000, 5500); >> >> Why do you need this delay/sleep? > > My datasheet says to wait at least 5ms before re-enabling the clock > after a voltage switch... > > Ah, found it in the core. It is doing it for 10ms. Maybe my search

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Guenter Roeck
On Mon, Apr 04, 2016 at 05:21:44PM +0200, Geert Uytterhoeven wrote: > Hi Wolfram, > > On Mon, Apr 4, 2016 at 4:59 PM, Wolfram Sang wrote: > >> My Salvator-X reboots after timeout from "cat > /dev/watchdog0", but > >> it doesn't reboot through "reboot" or "reboot -f"? > > > > That sadly doesn't wo

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Wolfram Sang
> That's indeed silly. Can't we have it as a low-priority restart handler, to > restart the system if PSCI fails to do so? +1. But my PSCI knowledge is 0. Unlike my task list :/ signature.asc Description: PGP signature

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Geert Uytterhoeven
Hi Wolfram, On Mon, Apr 4, 2016 at 4:59 PM, Wolfram Sang wrote: >> My Salvator-X reboots after timeout from "cat > /dev/watchdog0", but >> it doesn't reboot through "reboot" or "reboot -f"? > > That sadly doesn't work on Gen3. From the RFC v5 cover letter: > === > > * drop restart_handler since

Re: [PATCH v2 0/9] r8a7790: add UHS-I (SDR50) support to Lager

2016-04-04 Thread Wolfram Sang
> The documentation of mmc is quite poor. There are both code and > specification that needs to be understand, so some more help from > kernel doc could clearly help. I agree. > Anyway, I noticed that patch 6 helps to improve some documentation, > that's great - thanks! You're welcome. It wasn'

Re: [PATCH v2 7/9] mmc: sh_mobile_sdhi: Add UHS-I mode support

2016-04-04 Thread Wolfram Sang
> > + usleep_range(5000, 5500); > > Why do you need this delay/sleep? My datasheet says to wait at least 5ms before re-enabling the clock after a voltage switch... Ah, found it in the core. It is doing it for 10ms. Maybe my search pattern was not fuzzy enough ;) Okay, so this delay can g

Re: [PATCH v2 0/9] r8a7790: add UHS-I (SDR50) support to Lager

2016-04-04 Thread Ulf Hansson
On 1 April 2016 at 17:44, Wolfram Sang wrote: > So, here is v2 of the series adding SDR50 support to the Renesas Lager board. > Change since v1: > > * rebased to renesas-drivers based on v4.6-rc1 > * dropped pinctrl patch which was already picked up > * directly populate start_signal_voltage_switc

Re: [PATCH v2 7/9] mmc: sh_mobile_sdhi: Add UHS-I mode support

2016-04-04 Thread Ulf Hansson
On 1 April 2016 at 17:44, Wolfram Sang wrote: > From: Wolfram Sang > > Implement voltage switch, supporting modes up to SDR-50. > > Based on work by Shinobu Uehara, Rob Taylor, William Towle and Ian Molton. > > Signed-off-by: Ben Hutchings > Signed-off-by: Wolfram Sang > --- > Documentation/de

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Wolfram Sang
> My Salvator-X reboots after timeout from "cat > /dev/watchdog0", but > it doesn't reboot through "reboot" or "reboot -f"? > That sadly doesn't work on Gen3. From the RFC v5 cover letter: === * drop restart_handler since ARM64 uses PSCI firmware resets which do not call restart handlers Th

Re: [PATCH v2 0/4] watchdog: add driver for Renesas Gen3 WDT watchdogs

2016-04-04 Thread Geert Uytterhoeven
Hi Wolfram, On Fri, Apr 1, 2016 at 1:56 PM, Wolfram Sang wrote: > Here is V2 of this series with the following changes: > > * include bitops.h > * s/unsigned/unsigned int/ > * drop set_timeout() because core does it already > * add get_timeleft() > * don't make "nowayout" a readable parameter > *

Re: [PATCH v2 2/4] arm64: dts: r8a7795: Add RWDT node

2016-04-04 Thread Wolfram Sang
On Mon, Apr 04, 2016 at 07:00:57AM -0700, Guenter Roeck wrote: > On Fri, Apr 01, 2016 at 01:56:24PM +0200, Wolfram Sang wrote: > > From: Wolfram Sang > > > > This patch adds the RWDT device node for r8a7795. > > > > Signed-off-by: Takeshi Kihara > > Signed-off-by: Wolfram Sang > > Acked-by: G

Re: [PATCH v2 4/4] arm64: defconfig: enable Renesas Watchdog Timer

2016-04-04 Thread Guenter Roeck
On Fri, Apr 01, 2016 at 01:56:26PM +0200, Wolfram Sang wrote: > From: Wolfram Sang > > Signed-off-by: Wolfram Sang Reviewed-by: Guenter Roeck > --- > arch/arm64/configs/defconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/def

Re: [PATCH v2 3/4] arm64: dts: salvator-x: Enable watchdog timer

2016-04-04 Thread Guenter Roeck
On Fri, Apr 01, 2016 at 01:56:25PM +0200, Wolfram Sang wrote: > From: Wolfram Sang > > This patch enables watchdog timer for Salvator-X board. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Wolfram Sang Acked-by: Guenter Roeck > --- > arch/arm64/boot/dts/renesas/r8a7795-salvator-x.dts

Re: [PATCH v2 2/4] arm64: dts: r8a7795: Add RWDT node

2016-04-04 Thread Guenter Roeck
On Fri, Apr 01, 2016 at 01:56:24PM +0200, Wolfram Sang wrote: > From: Wolfram Sang > > This patch adds the RWDT device node for r8a7795. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Wolfram Sang Acked-by: Guenter Roeck I assume the dts patches will go through the an arm64 tree. Is thi

Re: [PATCH] drivers: sh: Use ARCH_RENESAS

2016-04-04 Thread Geert Uytterhoeven
Hi Rich, On Mon, Mar 28, 2016 at 3:16 PM, Rich Felker wrote: > On Wed, Mar 02, 2016 at 09:25:54AM +0100, Geert Uytterhoeven wrote: >> On Wed, Mar 2, 2016 at 2:43 AM, Simon Horman >> wrote: >> > Make use of ARCH_RENESAS in place of ARCH_SHMOBILE. >> > >> > This is part of an ongoing process to m

[PATCH] usb: renesas_usbhs: fix to avoid using a disabled ep in usbhsg_queue_done()

2016-04-04 Thread Yoshihiro Shimoda
This patch fixes an issue that usbhsg_queue_done() may cause kernel panic when dma callback is running and usb_ep_disable() is called by interrupt handler. (Especially, we can reproduce this issue using g_audio with usb-dmac driver.) For example of a flow: usbhsf_dma_complete (on tasklet) --> u

Re: [Bug]:Koelsch: DU, Could not show an image or picture on HDMI display.

2016-04-04 Thread Wolfram Sang
> > And we found a patch between v4.5-rc3 and v4.5 that causing of this issue. > > The patch is "b26a719 gpio: rcar: Add Runtime PM handling for interrupts." > > Tested by: Xuan Truong Nguyen . > > In case of "git revert" this patch, we can show image on display normally. > > Interesting. That pa

Re: [PATCH] i2c: mux: demux-pinctrl: Update docs to new sysfs-attributes

2016-04-04 Thread Wolfram Sang
On Sun, Apr 03, 2016 at 10:13:57PM +, Peter Rosin wrote: > Wolfram Sang wrote: > > Update the docs according to the recent code changes, too. > > > > Fixes: c0c508a418f9da ("i2c: mux: demux-pinctrl: Clean up sysfs attributes") > > Cc: Ben Hutchings > > Signed-off-by: Wolfram Sang > > Wolfra

Re: renesas-drivers-2016-03-29-v4.6-rc1

2016-04-04 Thread Geert Uytterhoeven
On Tue, Mar 29, 2016 at 3:19 PM, Geert Uytterhoeven wrote: > I have pushed renesas-drivers-2016-03-29-v4.6-rc1 to > https://git.kernel.org/cgit/linux/kernel/git/geert/renesas-drivers.git > Included branches with driver code: > - sh-pfc-for-v4.7 > - clk-renesas-for-v4.7 While the above were i

Re: [PATCH v2 4/4] arm64: defconfig: enable Renesas Watchdog Timer

2016-04-04 Thread Geert Uytterhoeven
On Fri, Apr 1, 2016 at 1:56 PM, Wolfram Sang wrote: > From: Wolfram Sang > > Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversat

Re: [PATCH v2 3/4] arm64: dts: salvator-x: Enable watchdog timer

2016-04-04 Thread Geert Uytterhoeven
On Fri, Apr 1, 2016 at 1:56 PM, Wolfram Sang wrote: > From: Wolfram Sang > > This patch enables watchdog timer for Salvator-X board. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Wolfram Sang Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytter

Re: [PATCH 4/4] arm64: defconfig: enable Renesas Watchdog Timer

2016-04-04 Thread Geert Uytterhoeven
On Wed, Mar 30, 2016 at 5:28 PM, Wolfram Sang wrote: > From: Wolfram Sang > > Signed-off-by: Wolfram Sang Acked-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@linux-m68k.org In personal conversatio

Re: [PATCH v2 2/4] arm64: dts: r8a7795: Add RWDT node

2016-04-04 Thread Geert Uytterhoeven
On Fri, Apr 1, 2016 at 1:56 PM, Wolfram Sang wrote: > From: Wolfram Sang > > This patch adds the RWDT device node for r8a7795. > > Signed-off-by: Takeshi Kihara > Signed-off-by: Wolfram Sang Reviewed-by: Geert Uytterhoeven Gr{oetje,eeting}s, Geert -- Geert Uytterhoe

Re: [Bug]:Koelsch: DU, Could not show an image or picture on HDMI display.

2016-04-04 Thread Geert Uytterhoeven
Hi Hiep-san, On Fri, Apr 1, 2016 at 9:57 AM, Cao Minh Hiep wrote: > This Linux version v4.5, we can not show an image or picture on HDMI > display. > (There is no problem on v4.5-rc3, could show an image on HDMI display > normally) Thanks for reporting! I tried v4.5-rc3 with both my own .config