[rtc-linux] [PATCH 7/7] mfd: cros_ec: add RTC as mfd subdevice

2017-03-24 Thread Enric Balletbo i Serra
From: Stephen Barber If the EC supports RTC host commands, expose an RTC device. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra --- drivers/mfd/cros_ec.c | 18 ++ 1 file changed,

[rtc-linux] [PATCH 3/7] iio: cros_ec_sensors: Use devm to setup the triggered buffer.

2017-03-24 Thread Enric Balletbo i Serra
Use resourced managed function devm_iio_triggered_buffer_setup to make error path simpler and be able to get rid of the remove function. Signed-off-by: Enric Balletbo i Serra --- This is an improvement that can wait to 4.12 merge window, again can be picked

[rtc-linux] [PATCH 4/7] mfd: cros_ec: Get rid of cros_ec_check_features from cros_ec_dev.

2017-03-24 Thread Enric Balletbo i Serra
The cros_ec_dev driver should be used only to expose the Chrome OS Embedded Controller to user-space and should not be used to add MFD devices by calling mfd_add_devices. This patch moves this logic to the MFD cros_ec driver and removes the MFD bits from the character device driver. Also makes

[rtc-linux] [PATCH 5/7] mfd: cros_ec: Introduce RTC commands and events definitions.

2017-03-24 Thread Enric Balletbo i Serra
From: Stephen Barber The EC can function as a simple RT, this patch adds the RTC related definitions needed by the rtc-cros-ec driver. Signed-off-by: Stephen Barber Signed-off-by: Enric Balletbo i Serra Acked-by: Lee

[rtc-linux] [PATCH 0/7] mfd: cros-ec: Some fixes and improvements.

2017-03-24 Thread Enric Balletbo i Serra
Dear all, This is another patch series to fix and improve some cros-ec mfd related things. * 1/7 mfd: cros-ec: Fix host command buffer size This patch is a FIX, and I think that would be interesting see it merged in this release cycle. This should go through the MFD tree and can be picked

[rtc-linux] [PATCH 1/7] mfd: cros-ec: Fix host command buffer size

2017-03-24 Thread Enric Balletbo i Serra
From: Vic Yang For SPI, we can get up to 32 additional bytes for response preamble. The current overhead (2 bytes) may cause problems when we try to receive a big response. Update it to 32 bytes. Without this fix we could see a kernel BUG when we receive a big response

[rtc-linux] [PATCH 2/7] iio: cros_ec_sensors: Fix return value to get raw and calibbias data.

2017-03-24 Thread Enric Balletbo i Serra
The cros_ec_sensors_read function must return the type of value on all cases. This was always true except for RAW and CALIBBIAS data which returned an error or 0. This patch just fixes the mistake I introduced when submitting the series. Fixes: commit c14dca07a31d (iio: cros_ec_sensors: add