Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-09 Thread Javier Martinez Canillas
Hello Olof, On 06/08/2015 10:46 PM, Olof Johansson wrote: On Fri, Jun 05, 2015 at 11:17:30AM +0100, Lee Jones wrote: On Thu, 04 Jun 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec

Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-08 Thread Olof Johansson
On Fri, Jun 05, 2015 at 11:17:30AM +0100, Lee Jones wrote: On Thu, 04 Jun 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for each EC registered.

Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-05 Thread Lee Jones
On Thu, 04 Jun 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for each EC registered. Add a new structure to represent multiple EC as different char

Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-05 Thread Lee Jones
On Thu, 04 Jun 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for each EC registered. Add a new structure to represent multiple EC as different char

Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-05 Thread Javier Martinez Canillas
Hello Lee, On 06/05/2015 12:38 PM, Lee Jones wrote: [...] -err = mfd_add_devices(dev, 0, cros_devs, - ARRAY_SIZE(cros_devs), +err = mfd_add_devices(ec_dev-dev, PLATFORM_DEVID_AUTO, ec_cell, 1, NULL, ec_dev-irq, NULL); if

Re: [PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-05 Thread Javier Martinez Canillas
Hello Lee, On 06/05/2015 12:17 PM, Lee Jones wrote: On Thu, 04 Jun 2015, Javier Martinez Canillas wrote: From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for each EC registered. Add a new

[PATCH v6 6/8] mfd: cros_ec: Support multiple EC in a system

2015-06-04 Thread Javier Martinez Canillas
From: Gwendal Grignou gwen...@chromium.org Chromebooks can have more than one Embedded Controller so the cros_ec device id has to be incremented for each EC registered. Add a new structure to represent multiple EC as different char devices (e.g: /dev/cros_ec, /dev/cros_pd). It connects to