[PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event v2

2016-03-31 Thread Tomeu Vizoso
As per the docs, atomic_commit should return -EBUSY "if an asycnhronous updated is requested and there is an earlier updated pending". v2: Use the status of the workqueue instead of vop->event, and don't add a superfluous wait on the workqueue. Signed-off-by: Tomeu Vizoso --- dr

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event

2016-03-31 Thread Tomeu Vizoso
On 31 March 2016 at 03:25, Mark yao <mark@rock-chips.com> wrote: > On 2016年03月30日 21:48, Tomeu Vizoso wrote: >> >> As per the docs, atomic_commit should return -EBUSY "if an asycnhronous >> updated is requested and there is an earlier updated pending".

Re: [PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event

2016-03-31 Thread Tomeu Vizoso
On 31 March 2016 at 03:25, Mark yao wrote: > On 2016年03月30日 21:48, Tomeu Vizoso wrote: >> >> As per the docs, atomic_commit should return -EBUSY "if an asycnhronous >> updated is requested and there is an earlier updated pending". >> >> Also wait fo

[PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event

2016-03-30 Thread Tomeu Vizoso
As per the docs, atomic_commit should return -EBUSY "if an asycnhronous updated is requested and there is an earlier updated pending". Also wait for the pending event to complete when a sync update is requested. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> ---

[PATCH] drm/rockchip: Return -EBUSY if there's already a pending flip event

2016-03-30 Thread Tomeu Vizoso
As per the docs, atomic_commit should return -EBUSY "if an asycnhronous updated is requested and there is an earlier updated pending". Also wait for the pending event to complete when a sync update is requested. Signed-off-by: Tomeu Vizoso --- drivers/gpu/drm/rockchip/rockchip_drm_

Re: [RFC 00/29] De-stage android's sync framework

2016-03-23 Thread Tomeu Vizoso
On 19 January 2016 at 17:12, John Harrison wrote: > On 19/01/2016 15:23, Gustavo Padovan wrote: >> >> Hi Daniel, >> >> 2016-01-19 Daniel Vetter : >> >>> On Fri, Jan 15, 2016 at 12:55:10PM -0200, Gustavo Padovan wrote: From: Gustavo Padovan

Re: [RFC 00/29] De-stage android's sync framework

2016-03-23 Thread Tomeu Vizoso
On 19 January 2016 at 17:12, John Harrison wrote: > On 19/01/2016 15:23, Gustavo Padovan wrote: >> >> Hi Daniel, >> >> 2016-01-19 Daniel Vetter : >> >>> On Fri, Jan 15, 2016 at 12:55:10PM -0200, Gustavo Padovan wrote: From: Gustavo Padovan This patch series de-stage the sync

[PATCH] iommu/rockchip: Only log stall errors when attaching

2016-03-22 Thread Tomeu Vizoso
Move the logging of timeouts when stalling the MMU to rk_iommu_attach_device, as it's expected that sometimes the MMU won't get stalled when detaching a device, and it's not a real problem that would need to be communicated to the user. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.

[PATCH] iommu/rockchip: Only log stall errors when attaching

2016-03-22 Thread Tomeu Vizoso
Move the logging of timeouts when stalling the MMU to rk_iommu_attach_device, as it's expected that sometimes the MMU won't get stalled when detaching a device, and it's not a real problem that would need to be communicated to the user. Signed-off-by: Tomeu Vizoso --- drivers/iommu/rockchip

[PATCH v2] drm/rockchip: vop: Disable planes when disabling CRTC

2016-03-22 Thread Tomeu Vizoso
will get a valid framebuffer address before it's enabled again. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_nsjgmhfxyhehr8xxxmaczs+p5...@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 15 +++ 1 file c

[PATCH v2] drm/rockchip: vop: Disable planes when disabling CRTC

2016-03-22 Thread Tomeu Vizoso
will get a valid framebuffer address before it's enabled again. Signed-off-by: Tomeu Vizoso Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_nsjgmhfxyhehr8xxxmaczs+p5...@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 15 +++ 1 file changed, 15 insertions(+) diff

Re: [PATCH] drm/rockchip: vop: Reset yrgb_mst when re-enabling

2016-03-21 Thread Tomeu Vizoso
On 19 March 2016 at 02:15, Mark yao <mark@rock-chips.com> wrote: > On 2016年03月18日 19:22, Tomeu Vizoso wrote: >> >> When the VOP is re-enabled, it will start scanning right away the >> framebuffers that were configured from the last time, even if those have >> b

Re: [PATCH] drm/rockchip: vop: Reset yrgb_mst when re-enabling

2016-03-21 Thread Tomeu Vizoso
On 19 March 2016 at 02:15, Mark yao wrote: > On 2016年03月18日 19:22, Tomeu Vizoso wrote: >> >> When the VOP is re-enabled, it will start scanning right away the >> framebuffers that were configured from the last time, even if those have >> been destroyed already. To

[PATCH] iommu/rockchip: Don't feed NULL res pointers to devres

2016-03-21 Thread Tomeu Vizoso
If we do, devres prints a "invalid resource" string in the error loglevel. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- drivers/iommu/rockchip-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockch

[PATCH] iommu/rockchip: Don't feed NULL res pointers to devres

2016-03-21 Thread Tomeu Vizoso
If we do, devres prints a "invalid resource" string in the error loglevel. Signed-off-by: Tomeu Vizoso --- drivers/iommu/rockchip-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index a6f593a0a29e..0253ab35c

Re: [PATCH] ARM: dts: rockchip: Add mdio node to ethernet node

2016-03-21 Thread Tomeu Vizoso
On 18 March 2016 at 22:34, Andreas Färber <afaer...@suse.de> wrote: > Am 18.03.2016 um 12:20 schrieb Tomeu Vizoso: >> So the dwmac device manages to probe again. >> >> Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> >> Fixes: 88f8b1bb41c6 ("

Re: [PATCH] ARM: dts: rockchip: Add mdio node to ethernet node

2016-03-21 Thread Tomeu Vizoso
On 18 March 2016 at 22:34, Andreas Färber wrote: > Am 18.03.2016 um 12:20 schrieb Tomeu Vizoso: >> So the dwmac device manages to probe again. >> >> Signed-off-by: Tomeu Vizoso >> Fixes: 88f8b1bb41c6 ("stmmac: Fix 'eth0: No PHY found' regression") >

[PATCH] drm/rockchip: vop: Reset yrgb_mst when re-enabling

2016-03-20 Thread Tomeu Vizoso
to them, but before the VOP is awaken from standby. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_nsjgmhfxyhehr8xxxmaczs+p5...@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 + 1 file chang

[PATCH] drm/rockchip: vop: Reset yrgb_mst when re-enabling

2016-03-20 Thread Tomeu Vizoso
to them, but before the VOP is awaken from standby. Signed-off-by: Tomeu Vizoso Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_nsjgmhfxyhehr8xxxmaczs+p5...@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 13 + 1 file changed, 13 insertions(+) diff --git

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-19 Thread Tomeu Vizoso
On 15 March 2016 at 02:30, Mark yao <mark@rock-chips.com> wrote: > On 2016年03月14日 21:35, Tomeu Vizoso wrote: >> >> On 2 December 2014 at 10:15, Mark Yao <mark@rock-chips.com> wrote: >>> >>> diff --git a/drivers/gpu/drm/rockchip/rock

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-19 Thread Tomeu Vizoso
On 15 March 2016 at 02:30, Mark yao wrote: > On 2016年03月14日 21:35, Tomeu Vizoso wrote: >> >> On 2 December 2014 at 10:15, Mark Yao wrote: >>> >>> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >>> b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c

[PATCH v6 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-19 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v6: - Return 0 if the EC doesn't s

[PATCH v6 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-19 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v6: - Return 0 if the EC doesn't support MKBP, as expected by callers

[PATCH] ARM: dts: rockchip: Add mdio node to ethernet node

2016-03-19 Thread Tomeu Vizoso
So the dwmac device manages to probe again. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Fixes: 88f8b1bb41c6 ("stmmac: Fix 'eth0: No PHY found' regression") --- arch/arm/boot/dts/rk3288-rock2-som.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/a

[PATCH] ARM: dts: rockchip: Add mdio node to ethernet node

2016-03-19 Thread Tomeu Vizoso
So the dwmac device manages to probe again. Signed-off-by: Tomeu Vizoso Fixes: 88f8b1bb41c6 ("stmmac: Fix 'eth0: No PHY found' regression") --- arch/arm/boot/dts/rk3288-rock2-som.dtsi | 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-rock2-som.dtsi

[PATCH v6 1/6] mfd: cros_ec: Add MKBP event support

2016-03-19 Thread Tomeu Vizoso
nd platform/chrome)] Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Randall Spangler <rspang...@chromium.org> Cc: Vincent Palatin <vpala...@chromium.org> --- Changes in v6: None Changes in v5: None Changes in v4: - Calculate correctly the size of the payloads in c

[PATCH v6 1/6] mfd: cros_ec: Add MKBP event support

2016-03-19 Thread Tomeu Vizoso
to the old MKBP key matrix host command. Signed-off-by: Vic Yang [bleung: fixup some context changes going from v3.14 to v3.18] Signed-off-by: Benson Leung [tomeu: adapted to changes in mainline (in power-supply and platform/chrome)] Signed-off-by: Tomeu Vizoso Cc: Randall Spangler Cc: Vincent

[PATCH v6 6/6] platform/chrome: Register USB PD charger device

2016-03-19 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Only register the PD charger device if there are any PD ports in thi

[PATCH v6 6/6] platform/chrome: Register USB PD charger device

2016-03-19 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using

[PATCH v6 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-19 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None i

[PATCH v6 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-19 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso --- Changes in v6: None Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h

[PATCH v6 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-19 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Reviewed-by: Benson Leung <ble...@chromium.org> --- Changes in v6: None Changes in v5: - Chec

[PATCH v6 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-19 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso Reviewed-by: Benson Leung --- Changes in v6: None Changes in v5: - Check explicitly for !EC_RES_SUCCESS as suggested by Benson Leung. Changes in v4

[PATCH v6 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-19 Thread Tomeu Vizoso
into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd: cros_ec: Add cros_ec_cmd_xfer_status helper mfd: cros_ec: Add cros_ec_get_host_event mfd: cros_ec: Add more definitions for PD commands platform/chrome: Register USB

[PATCH v6 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-19 Thread Tomeu Vizoso
into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd: cros_ec: Add cros_ec_cmd_xfer_status helper mfd: cros_ec: Add cros_ec_get_host_event mfd: cros_ec: Add more definitions for PD commands platform/chrome: Register USB

[PATCH] drm/rockchip: vop: Don't reject empty modesets

2016-03-19 Thread Tomeu Vizoso
So that when DRM_IOCTL_MODE_SETCRTC is called without a FB nor mode, the CRTC gets disabled. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_nsjgmhfxyhehr8xxxmaczs+p5...@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm

[PATCH] drm/rockchip: vop: Don't reject empty modesets

2016-03-19 Thread Tomeu Vizoso
So that when DRM_IOCTL_MODE_SETCRTC is called without a FB nor mode, the CRTC gets disabled. Signed-off-by: Tomeu Vizoso Link: http://lkml.kernel.org/g/CAAObsKAv+05ih5U+=4kic_nsjgmhfxyhehr8xxxmaczs+p5...@mail.gmail.com --- drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 3 --- 1 file changed, 3

[PATCH v6 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-19 Thread Tomeu Vizoso
From: Sameer Nanda <sna...@chromium.org> This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Sameer Nanda <sna...@chromium.org> Cc: Benson Leung <ble...@chromium.org> Cc: Shawn Nematbak

[PATCH v6 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-19 Thread Tomeu Vizoso
From: Sameer Nanda This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso Cc: Sameer Nanda Cc: Benson Leung Cc: Shawn Nematbakhsh --- Changes in v6: None Changes in v5: - Fix type of variable passed to do_div. Changes in v4: - Declare size

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-18 Thread Tomeu Vizoso
On 16 March 2016 at 16:23, Tomeu Vizoso <to...@tomeuvizoso.net> wrote: > On 15 March 2016 at 02:30, Mark yao <mark@rock-chips.com> wrote: >> On 2016年03月14日 21:35, Tomeu Vizoso wrote: >>> >>> On 2 December 2014 at 10:15, Mark Yao <mark@rock-chips.

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-18 Thread Tomeu Vizoso
On 16 March 2016 at 16:23, Tomeu Vizoso wrote: > On 15 March 2016 at 02:30, Mark yao wrote: >> On 2016年03月14日 21:35, Tomeu Vizoso wrote: >>> >>> On 2 December 2014 at 10:15, Mark Yao wrote: >>>> >>>> diff --git a/drivers/gpu/drm/rockchip

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-15 Thread Tomeu Vizoso
On 14 March 2016 at 17:20, Giuseppe CAVALLARO <peppe.cavall...@st.com> wrote: > Hi Tomeu > > On 3/14/2016 12:43 PM, Tomeu Vizoso wrote: >> >> Hi Peppe, >> >> with that patch I don't see any difference at all in my setup. >> >> So to be clear,

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-15 Thread Tomeu Vizoso
On 14 March 2016 at 17:20, Giuseppe CAVALLARO wrote: > Hi Tomeu > > On 3/14/2016 12:43 PM, Tomeu Vizoso wrote: >> >> Hi Peppe, >> >> with that patch I don't see any difference at all in my setup. >> >> So to be clear, with these commits on top of next-

[PATCH v5 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-14 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/lin

[PATCH v5 6/6] platform/chrome: Register USB PD charger device

2016-03-14 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v5: None Changes in v4: None Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch

[PATCH v5 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-14 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h | 324

[PATCH v5 6/6] platform/chrome: Register USB PD charger device

2016-03-14 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso --- Changes in v5: None Changes in v4: None Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using EC_CMD_GET_FEATURES to decide

[PATCH v5 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-14 Thread Tomeu Vizoso
From: Sameer Nanda <sna...@chromium.org> This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Sameer Nanda <sna...@chromium.org> Cc: Benson Leung <ble...@chromium.org> Cc: Shawn Nematbak

[PATCH v5 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-14 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v5: - Check explicitly for !EC_RES_SUCCESS as suggested by Benson Leung. Changes in v4: None Changes

[PATCH v5 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-14 Thread Tomeu Vizoso
From: Sameer Nanda This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso Cc: Sameer Nanda Cc: Benson Leung Cc: Shawn Nematbakhsh --- Changes in v5: - Fix type of variable passed to do_div. Changes in v4: - Declare size parameters

[PATCH v5 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-14 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso --- Changes in v5: - Check explicitly for !EC_RES_SUCCESS as suggested by Benson Leung. Changes in v4: None Changes in v3: None Changes in v2: None

[PATCH v5 1/6] mfd: cros_ec: Add MKBP event support

2016-03-14 Thread Tomeu Vizoso
nd platform/chrome)] Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Randall Spangler <rspang...@chromium.org> Cc: Vincent Palatin <vpala...@chromium.org> --- Changes in v5: None Changes in v4: - Calculate correctly the size of the payloads in cros_ec_get_host_

[PATCH v5 1/6] mfd: cros_ec: Add MKBP event support

2016-03-14 Thread Tomeu Vizoso
to the old MKBP key matrix host command. Signed-off-by: Vic Yang [bleung: fixup some context changes going from v3.14 to v3.18] Signed-off-by: Benson Leung [tomeu: adapted to changes in mainline (in power-supply and platform/chrome)] Signed-off-by: Tomeu Vizoso Cc: Randall Spangler Cc: Vincent

[PATCH v5 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-14 Thread Tomeu Vizoso
into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd: cros_ec: Add cros_ec_cmd_xfer_status helper mfd: cros_ec: Add cros_ec_get_host_event mfd: cros_ec: Add more definitions for PD commands platform/chrome: Register USB PD

[PATCH v5 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-14 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v5: None Changes in v4: None Changes

[PATCH v5 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-14 Thread Tomeu Vizoso
into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd: cros_ec: Add cros_ec_cmd_xfer_status helper mfd: cros_ec: Add cros_ec_get_host_event mfd: cros_ec: Add more definitions for PD commands platform/chrome: Register USB PD

[PATCH v5 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-14 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-14 Thread Tomeu Vizoso
On 2 December 2014 at 10:15, Mark Yao wrote: > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > new file mode 100644 > index 000..e7ca25b > --- /dev/null > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c >

Re: [PATCH v15 1/3] drm: rockchip: Add basic drm driver

2016-03-14 Thread Tomeu Vizoso
On 2 December 2014 at 10:15, Mark Yao wrote: > diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > new file mode 100644 > index 000..e7ca25b > --- /dev/null > +++ b/drivers/gpu/drm/rockchip/rockchip_drm_vop.c > @@ -0,0 +1,1455 @@ ... >

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-14 Thread Tomeu Vizoso
On 11 March 2016 at 10:09, Giuseppe CAVALLARO wrote: > On 3/10/2016 5:47 PM, Dinh Nguyen wrote: >> >> On Thu, Mar 10, 2016 at 3:13 AM, Giuseppe CAVALLARO >> wrote: >>> >>> On 3/9/2016 5:31 PM, Dinh Nguyen wrote: On Wed, Mar 9, 2016

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-14 Thread Tomeu Vizoso
On 11 March 2016 at 10:09, Giuseppe CAVALLARO wrote: > On 3/10/2016 5:47 PM, Dinh Nguyen wrote: >> >> On Thu, Mar 10, 2016 at 3:13 AM, Giuseppe CAVALLARO >> wrote: >>> >>> On 3/9/2016 5:31 PM, Dinh Nguyen wrote: On Wed, Mar 9, 2016 at 8:53 AM, Giuseppe CAVALLARO wrote: >

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-09 Thread Tomeu Vizoso
On 9 March 2016 at 11:27, Giuseppe CAVALLARO wrote: > Hello Tomeu, Andreas, > > On 3/9/2016 10:52 AM, Giuseppe CAVALLARO wrote: >>> >>> * today's linux-next: probe failed >>> >>> * today's linux-next + revert of 88f8b1bb41c6 stmmac: Fix 'eth0: No >>> PHY found' regression:

Re: [PATCH v3 0/8] arm64: rockchip: Initial GeekBox enablement

2016-03-09 Thread Tomeu Vizoso
On 9 March 2016 at 11:27, Giuseppe CAVALLARO wrote: > Hello Tomeu, Andreas, > > On 3/9/2016 10:52 AM, Giuseppe CAVALLARO wrote: >>> >>> * today's linux-next: probe failed >>> >>> * today's linux-next + revert of 88f8b1bb41c6 stmmac: Fix 'eth0: No >>> PHY found' regression: probe succeeded but no

[PATCH v4 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-08 Thread Tomeu Vizoso
added to mfd/cros_ec.h from the patch that adds the charger driver, as suggested by Lee. - Actually call get_ec_num_ports. - Move cros_ec_usb_pd_charger_register into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd

[PATCH v4 6/6] platform/chrome: Register USB PD charger device

2016-03-08 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v4: None Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using EC_CMD_GET_FE

[PATCH v4 1/6] mfd: cros_ec: Add MKBP event support

2016-03-08 Thread Tomeu Vizoso
nd platform/chrome)] Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Randall Spangler <rspang...@chromium.org> Cc: Vincent Palatin <vpala...@chromium.org> --- Changes in v4: - Calculate correctly the size of the payloads in cros_ec_get_host_command_version_mask.

[PATCH v4 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-08 Thread Tomeu Vizoso
added to mfd/cros_ec.h from the patch that adds the charger driver, as suggested by Lee. - Actually call get_ec_num_ports. - Move cros_ec_usb_pd_charger_register into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd

[PATCH v4 6/6] platform/chrome: Register USB PD charger device

2016-03-08 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso --- Changes in v4: None Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using EC_CMD_GET_FEATURES to decide whether to create

[PATCH v4 1/6] mfd: cros_ec: Add MKBP event support

2016-03-08 Thread Tomeu Vizoso
to the old MKBP key matrix host command. Signed-off-by: Vic Yang [bleung: fixup some context changes going from v3.14 to v3.18] Signed-off-by: Benson Leung [tomeu: adapted to changes in mainline (in power-supply and platform/chrome)] Signed-off-by: Tomeu Vizoso Cc: Randall Spangler Cc: Vincent

[PATCH v4 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-08 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v4: None Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h

[PATCH v4 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-08 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso --- Changes in v4: None Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h | 324

[PATCH v4 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-08 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v4: None Changes in v3: None Changes

[PATCH v4 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-08 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.

[PATCH v4 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-08 Thread Tomeu Vizoso
From: Sameer Nanda <sna...@chromium.org> This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Sameer Nanda <sna...@chromium.org> Cc: Benson Leung <ble...@chromium.org> Cc: Shawn Nematbak

[PATCH v4 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-08 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++ include/linux/mfd

[PATCH v4 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-08 Thread Tomeu Vizoso
From: Sameer Nanda This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso Cc: Sameer Nanda Cc: Benson Leung Cc: Shawn Nematbakhsh --- Changes in v4: - Declare size parameters in ec_command as size_t Changes in v3: - Use do_div so it builds

[PATCH v4 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-08 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/platform

[RESEND PATCH v3 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-02 Thread Tomeu Vizoso
From: Sameer Nanda <sna...@chromium.org> This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Sameer Nanda <sna...@chromium.org> Cc: Benson Leung <ble...@chromium.org> Cc: Shawn Nematbak

[RESEND PATCH v3 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-02 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++ include

[RESEND PATCH v3 6/6] platform/chrome: Register USB PD charger device

2016-03-02 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using EC_CMD_GET_FEATURES to decide w

[RESEND PATCH v3 5/6] power: cros_usbpd-charger: Add EC-based USB PD charger driver

2016-03-02 Thread Tomeu Vizoso
From: Sameer Nanda This driver exposes the charger functionality in the PD EC to userspace. Signed-off-by: Tomeu Vizoso Cc: Sameer Nanda Cc: Benson Leung Cc: Shawn Nematbakhsh --- Changes in v3: - Use do_div so it builds on 32bit (suggested by 0-day kbuild bot). - Remove sysfs attributes

[RESEND PATCH v3 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-03-02 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++ include/linux/mfd/cros_ec.h

[RESEND PATCH v3 6/6] platform/chrome: Register USB PD charger device

2016-03-02 Thread Tomeu Vizoso
Check if a EC has andy PD ports and register a USB PD charger device if so. Signed-off-by: Tomeu Vizoso --- Changes in v3: - Only register the PD charger device if there are any PD ports in this EC. - Dropped patch using EC_CMD_GET_FEATURES to decide whether to create a charger device

[RESEND PATCH v3 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-02 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v3: None Changes in v2: None d

[RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-03-02 Thread Tomeu Vizoso
nd platform/chrome)] Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Randall Spangler <rspang...@chromium.org> Cc: Vincent Palatin <vpala...@chromium.org> --- Changes in v3: - Remove duplicated prototype of cros_ec_get_host_event. Changes in v

[RESEND PATCH v3 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-02 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h

[RESEND PATCH v3 3/6] mfd: cros_ec: Add cros_ec_get_host_event

2016-03-02 Thread Tomeu Vizoso
This function returns the code for the host event that triggered the interrupt that is being currently handled. Is to be used by observers of the event_notifier in the EC device. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c

[RESEND PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-03-02 Thread Tomeu Vizoso
to the old MKBP key matrix host command. Signed-off-by: Vic Yang [bleung: fixup some context changes going from v3.14 to v3.18] Signed-off-by: Benson Leung [tomeu: adapted to changes in mainline (in power-supply and platform/chrome)] Signed-off-by: Tomeu Vizoso Cc: Randall Spangler Cc: Vincent

[RESEND PATCH v3 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-03-02 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h | 324 ++- 1 file changed

[RESEND PATCH v3 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-02 Thread Tomeu Vizoso
cros_ec_usb_pd_charger_register into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd: cros_ec: Add cros_ec_cmd_xfer_status helper mfd: cros_ec: Add cros_ec_get_host_event mfd: cros_ec: Add more definitions for PD commands platform/chrome

[RESEND PATCH v3 0/6] EC-based USB Power Delivery support for Chrome machines

2016-03-02 Thread Tomeu Vizoso
cros_ec_usb_pd_charger_register into cros_ec_dev.c. Sameer Nanda (1): power: cros_usbpd-charger: Add EC-based USB PD charger driver Tomeu Vizoso (4): mfd: cros_ec: Add cros_ec_cmd_xfer_status helper mfd: cros_ec: Add cros_ec_get_host_event mfd: cros_ec: Add more definitions for PD commands platform/chrome

Re: Re: [PATCH] PM / devfreq: tegra: Set freq in rate callback

2016-02-22 Thread Tomeu Vizoso
On 28 January 2016 at 05:14, MyungJoo Ham <myungjoo@samsung.com> wrote: >> Hi Thierry, >> >> On 21 January 2016 at 02:54, Thierry Reding <thierry.red...@gmail.com> wrote: >> > On Thu, Jan 21, 2016 at 08:52:26AM +0100, Tomeu Vizoso wrote: > [] &g

Re: Re: [PATCH] PM / devfreq: tegra: Set freq in rate callback

2016-02-22 Thread Tomeu Vizoso
On 28 January 2016 at 05:14, MyungJoo Ham wrote: >> Hi Thierry, >> >> On 21 January 2016 at 02:54, Thierry Reding wrote: >> > On Thu, Jan 21, 2016 at 08:52:26AM +0100, Tomeu Vizoso wrote: > [] >> >> Signed-off-by: Tomeu Vizoso >> >> Report

Re: [PATCH v2 0/8] EC-based USB Power Delivery support for Chrome machines

2016-02-21 Thread Tomeu Vizoso
On 20 February 2016 at 17:22, Pavel Machek wrote: > Hi! > >> this series contains a driver that exposes a power_supply to userspace >> representing a port that support USB PD charging. > > Well, if this is meant for userspace, should it add some > documentation, too? Hi Pavel, in

Re: [PATCH v2 0/8] EC-based USB Power Delivery support for Chrome machines

2016-02-21 Thread Tomeu Vizoso
On 20 February 2016 at 17:22, Pavel Machek wrote: > Hi! > >> this series contains a driver that exposes a power_supply to userspace >> representing a port that support USB PD charging. > > Well, if this is meant for userspace, should it add some > documentation, too? Hi Pavel, in v3 I have

[PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-02-17 Thread Tomeu Vizoso
nd platform/chrome)] Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> Cc: Randall Spangler <rspang...@chromium.org> Cc: Vincent Palatin <vpala...@chromium.org> --- Changes in v3: - Remove duplicated prototype of cros_ec_get_host_event. Changes in v

[PATCH v3 1/6] mfd: cros_ec: Add MKBP event support

2016-02-17 Thread Tomeu Vizoso
to the old MKBP key matrix host command. Signed-off-by: Vic Yang [bleung: fixup some context changes going from v3.14 to v3.18] Signed-off-by: Benson Leung [tomeu: adapted to changes in mainline (in power-supply and platform/chrome)] Signed-off-by: Tomeu Vizoso Cc: Randall Spangler Cc: Vincent

[PATCH v3 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-02-17 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h

[PATCH v3 4/6] mfd: cros_ec: Add more definitions for PD commands

2016-02-17 Thread Tomeu Vizoso
Copy a few structs and commands from the EC firmware headers so we can communicate with the EC regarding PD functionality. Signed-off-by: Tomeu Vizoso --- Changes in v3: None Changes in v2: None include/linux/mfd/cros_ec_commands.h | 324 ++- 1 file changed

[PATCH v3 2/6] mfd: cros_ec: Add cros_ec_cmd_xfer_status helper

2016-02-17 Thread Tomeu Vizoso
So that callers of cros_ec_cmd_xfer don't have to repeat boilerplate code when checking for errors from the EC side. Signed-off-by: Tomeu Vizoso <tomeu.viz...@collabora.com> --- Changes in v3: None Changes in v2: None drivers/platform/chrome/cros_ec_proto.c | 14 ++ include

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