_commands.h | 295 +++---
> > 8 files changed, 322 insertions(+), 221 deletions(-)
> > rename {include/linux/mfd => drivers/platform/chrome}/cros_ec_lpc_mec.h
> > (96%)
> > rename {include/linux/mfd => drivers/platform/chrome}/cros_ec_lpc_re
On Tue, Aug 21, 2018 at 01:40:21PM -0700, Linus Torvalds wrote:
> On Tue, Aug 21, 2018 at 11:54 AM Benson Leung wrote:
> >
> > Minor changes this time around for 4.19.
> >
> > cros_ec_i2c and cros_ec_spi drivers moved from mfd
> > to chrome platform.
>
> A
d for 4.19.
cros_ec_i2c and cros_ec_spi drivers moved from mfd
to chrome platform.
--------
Benson Leung (2):
platform/chrome: chromeos_tbmc - fix SPDX identifier
Merge tag 'ib-platform-chrome-mfd-move-cros-ec-transport-for-4.19
2c.c (100%)
rename drivers/{mfd => platform/chrome}/cros_ec_spi.c (100%)
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
or the others to pull. What do you all think?
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
ou are pushing this through arm-soc or Russell.
> In such case, for Exynos boards:
> Acked-by: Krzysztof Kozlowski
>
> Best regards,
> Krzysztof
I was planning on creating an immutable branch for this series and merging it
through platform/chrome.
Lee, Russell, Dmitry, what do
> Fixes: 3aa2177e4787 ("mfd: cros_ec: Use devm_kzalloc for private data")
Gwendal, in PATCH v2 of https://patchwork.kernel.org/patch/10439449/
you mentioned that you readded the __remove to avoid a warning when built
as a module. Can you explain what's going on?
Benson
--
t(&device->dev);
> > if (button->suspended)
> > break;
> >
> > --
Thanks!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
// Copyright (C) 2013 Google, Inc.
>
> #include
> #include
> --
> 2.17.1
>
Thanks!
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
; #include
> diff --git a/drivers/platform/chrome/cros_kbd_led_backlight.c
> b/drivers/platform/chrome/cros_kbd_led_backlight.c
> index ca3e4da852b4..bd4aa9331806 100644
> --- a/drivers/platform/chrome/cros_kbd_led_backlight.c
> +++ b/drivers/platform/chrome/cros_kbd_led_backli
On Tue, Jun 05, 2018 at 07:54:28PM +0200, Enric Balletbo i Serra wrote:
> Adopt the SPDX license identifier headers to ease license compliance
> management.
>
> Signed-off-by: Enric Balletbo i Serra
Reviewed-by: Benson Leung
> ---
>
> Changes in v2:
> - [8/9] Fi
> source for the last wake will be thrown off by this. Instead increment
> the wakeup count only when there is a FIXED_HARDWARE/NOTFIY_STATUS event.
>
> Signed-off-by: Ravi Chandra Sadineni
Reviewed-by: Benson Leung
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google I
witch driver, which is useful for x86
convertible Chromebooks.
Other misc. cleanup.
Thanks,
Benson
Arnd Bergmann (1):
platform: chrome: Add input dependency for tablet switch driver
Benson Leung (2):
platform/c
oduce a new function to check EC
> features.")
> Cc: Benson Leung
> Cc: Enric Balletbo i Serra
> Cc: Gwendal Grignou
> Cc: Andy Shevchenko
> Signed-off-by: Stephen Boyd
Acked-by: Benson Leung
> ---
> drivers/mfd/cros_ec_dev.c | 4 ++--
> 1 file changed, 2 inserti
add the new macro in cros_ec.h through my tree. Looks to
merge clean with mfd's changes this time.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
being stuck in pressed state
> after the first click.
>
> Reported-by: Sultan Alsawaf
> Signed-off-by: Dmitry Torokhov
Applied for v4.18. Thanks.
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
sig
efined!
>
> This adds the corresponding Kconfig dependency
>
> Fixes: b418f74170d7 ("platform: chrome: Add Tablet Switch ACPI driver")
> Signed-off-by: Arnd Bergmann
Thanks for the catch! Applied for 4.18.
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Go
t8_t address;
> + };
> +} __packed;
> +
> +/* Read various CEC parameters */
> +#define EC_CMD_CEC_GET 0x00BB
> +
> +struct ec_params_cec_get {
> + uint8_t cmd; /* enum cec_command */
> +} __packed;
> +
> +struct ec_response_cec_get {
> + union {
> +
return ret;
> + }
> + return 0;
> +}
> +
> +static const struct acpi_device_id chromeos_tbmc_acpi_device_ids[] = {
> + { ACPI_DRV_NAME, 0 },
> + { }
> +};
> +MODULE_DEVICE_TABLE(acpi, chromeos_tbmc_acpi_device_ids);
> +
> +static const SIMPLE_DEV_
with the chromeos_laptop patch that preceeds this.
Reviewed-by: Benson Leung
> ---
> drivers/input/touchscreen/atmel_mxt_ts.c | 152 ++-
> 1 file changed, 12 insertions(+), 140 deletions(-)
>
> diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c
&g
(1):
platform/chrome: chromeos_laptop - supply properties for ACPI devices
drivers/platform/chrome/chromeos_laptop.c | 307 +++---
1 file changed, 278 insertions(+), 29 deletions(-)
Thanks!
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble
error = chromeos_laptop_prepare_acpi_peripherals(cros_laptop,
> + src);
> +
> + if (error) {
> + chromeos_laptop_destroy(cros_laptop);
> + return ERR_PTR(error);
> + }
> +
> + return cros_laptop;
> +}
> +
> static int __init chromeos_laptop_init(void)
> {
> const struct dmi_system_id *dmi_id;
> @@ -652,21 +889,33 @@ static int __init chromeos_laptop_init(void)
> if (IS_ERR(cros_laptop))
> return PTR_ERR(cros_laptop);
>
> + if (!cros_laptop->num_i2c_peripherals &&
> + !cros_laptop->num_acpi_peripherals) {
> + pr_debug("no relevant devices detected\n");
> + error = -ENODEV;
> + goto err_destroy_cros_laptop;
> + }
> +
> error = bus_register_notifier(&i2c_bus_type,
> &chromeos_laptop_i2c_notifier);
> if (error) {
> - pr_err("failed to register i2c bus notifier: %d\n", error);
> - chromeos_laptop_destroy(cros_laptop);
> - return error;
> + pr_err("failed to register i2c bus notifier: %d\n",
> +error);
> + goto err_destroy_cros_laptop;
> }
>
> /*
> - * Scan adapters that have been registered before we installed
> - * the notifier to make sure we do not miss any devices.
> + * Scan adapters that have been registered and clients that have
> + * been created before we installed the notifier to make sure
> + * we do not miss any devices.
>*/
> - i2c_for_each_dev(NULL, chromeos_laptop_scan_adapter);
> + i2c_for_each_dev(NULL, chromeos_laptop_scan_peripherals);
>
> return 0;
> +
> +err_destroy_cros_laptop:
> + chromeos_laptop_destroy(cros_laptop);
> + return error;
> }
>
> static void __exit chromeos_laptop_exit(void)
> --
> 2.17.0.441.gb46fe60e1d-goog
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
On Wed, May 23, 2018 at 11:19 AM Guenter Roeck wrote:
> What happened with this driver ? It is not upstream, yet the comments
> on patchwork seem to suggest that it was accepted.
My bad. I dropped this last year. I'll pick this now.
--
Benson Leung
Staff Software Engineer
Chrom
y: Dmitry Torokhov
Nice fix. Applied.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
them even in some rebased form.
>
> I'll take this for now, but next time I see this kind of "late in the
> merge window, absolutely zero exposure anywhere else", I'll just skip
> the whole pull request. Don't do it.
Sorry about that, Linus. Won't hap
ks,
Benson
--------
Benson Leung (2):
Merge remote-tracking branch
'chrome-platform-stop-being-a-platform-driver-plus-atmel_mxt_ts-for-v4.17' into
working-branch-for-4.17
Merge remote-tracking branch
'origin/ib-chrome-platform-cros-ec-sysfs-debugfs
| 1 -
> drivers/input/touchscreen/atmel_mxt_ts.c | 231 +++---
> drivers/platform/chrome/chromeos_laptop.c | 896 +++--
> include/linux/platform_data/atmel_mxt_ts.h | 31 -
> 4 files changed, 579 insertions(+), 580 deletions(-)
> delete mode 100644 include/linux/platform_data/atm
3 +
5 files changed, 194 insertions(+), 59 deletions(-)
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
mxt_probe(struct i2c_client *client, const
> struct i2c_device_id *id)
> init_completion(&data->reset_completion);
> init_completion(&data->crc_completion);
>
> + data->suspend_mode = dmi_check_system(chromebook_T9_suspend_dmi) ?
> + MXT_
> Unnecessary and incorrect whitespace changes.
Thanks Alan. Fixed in v3.
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
Print bcdDevice which is used by vendors to identify different versions
of the same product (or different versions of firmware).
Adding this to the logs will be useful for support purposes.
Match the %2x.%02x formatting that's used by lsusb -v for this same value.
Signed-off-by: Benson
s this (bcdDevice: 0.03 for example) and in my experience
> > it has generally matched up with how hardware manufacturers refer
> > to their firmware.
>
> Nevermind, %x should show bcd properly. looks fine.
I like the way lsusb -v does it better. Take a look at v2.
Thanks,
Benson
--
Print bcdDevice which is used by vendors to identify different versions
of the same product (or different versions of firmware).
Adding this to the logs will be useful for support purposes.
Match the %2x.%02x formatting that's used by lsusb -v for this same value.
Signed-off-by: Benson
Print bcdDevice which is used by vendors to identify different versions
of the same product (or different versions of firmware).
Adding this to the logs will be useful for support purposes.
Signed-off-by: Benson Leung
---
drivers/usb/core/hub.c | 16 +---
1 file changed, 9
evice = {
>
> static struct mxt_platform_data atmel_1664s_platform_data = {
> .irqflags = IRQF_TRIGGER_FALLING,
> - .suspend_mode = MXT_SUSPEND_T9_CTRL,
> };
>
> static struct i2c_board_info atmel_1664s_device = {
> --
> 2.16.2.804.g6dcf76e118-goog
pr_err("failed to get data from dmi for %s\n", name);
> + info->irq = chromeos_laptop_get_irq_from_dmi(name);
> + if (info->irq < 0)
> return NULL;
> - }
> - info->irq = dev_data->instance;
> }
>
> adapter = i2c_get_adapter(bus);
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: OpenPGP digital signature
c
> +++ b/drivers/platform/chrome/chromeos_laptop.c
> @@ -4,6 +4,8 @@
> // Copyright (C) 2012 Google, Inc.
> // Author: Benson Leung
>
> +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
> +
> #include
> #include
> #include
> @@ -139,15 +1
599736a41a2..54a13c70e1d8f 100644
> --- a/drivers/platform/chrome/chromeos_laptop.c
> +++ b/drivers/platform/chrome/chromeos_laptop.c
> @@ -1,25 +1,8 @@
> -/*
> - * chromeos_laptop.c - Driver to instantiate Chromebook i2c/smbus devices.
> - *
> - * Author : Benson Leung
> - *
ot;Google_*" as BIOS version string,
> instead the system vendor string would still be "GOOGLE", so this
> seems to be a reasonable match for every Chromebook/box running
> a custom firmware.
>
> Signed-off-by: Salvatore Bellizzi
> Signed-off-by: Vittorio Gambaletta
2idle can happen.
>
> Suggested-by: Rafael J. Wysocki
> Signed-off-by: Wenkai Du
LGTM. Applied to my for v4.17 branch.
Thank you!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.as
ore),
>
> RAPL_CPU(INTEL_FAM6_ATOM_SILVERMONT1, rapl_defaults_byt),
> RAPL_CPU(INTEL_FAM6_ATOM_AIRMONT, rapl_defaults_cht),
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: OpenPGP digital signature
.
>
> Signed-off-by: Harry Pan
Reviewed-by: Benson Leung
> ---
> arch/x86/events/intel/cstate.c | 44
> +-
> 1 file changed, 31 insertions(+), 13 deletions(-)
>
> diff --git a/arch/x86/events/intel/cstate.c b/arch/x8
example:
>
> $ perf list
> $ perf stat -a -e power/energy-cores/,power/energy-pkg/ sleep 10
>
> Signed-off-by: Harry Pan
Reviewed-by: Benson Leung
> ---
> arch/x86/events/intel/rapl.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/arch/x86/events/intel/ra
Hi Harry,
On 03/09/2018 04:15 AM, Harry Pan wrote:
> Cannon Lake microarchitecture is similar to Kaby Lake in terms of
> RAPL, this patch enables CNL RAPL support.
>
> Signed-off-by: Harry Pan
Reviewed-by: Benson Leung
> ---
> drivers/powercap/intel_rapl.c | 1 +
&g
tree
> (if you are OK with the patches, of course).
>
I'm all for this change. I can push this through my tree.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
(-)
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
},
> };
>
> -static const struct chromeos_laptop hp_pavilion_14_chromebook = {
> +static struct chromeos_laptop hp_pavilion_14_chromebook = {
> .i2c_peripherals = {
> /* Touchpad. */
> { .add = setup_cyapa_tp, I2C_ADAPTER_SMBUS },
> },
>
wake up doesn't work because default EC
> event handler that can wake up system is not getting called.
>
> Signed-off-by: Wenkai Du
Acked-by: Benson Leung
> ---
> drivers/mfd/Makefile | 1 -
> drivers/mfd/cros_ec.c | 15 ++
&
os_ec.h | 2 ++
Looks like this will need an immutable branch between mfd and chrome-platform
again, Lee.
Do you want to do one, or should I?
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: PGP signature
maintenance fixes.
Arnd Bergmann (1):
cros_ec: fix nul-termination for firmware build info
Benson Leung (1):
Merge branch 'ibs-for-chrome-platform-merged' into working-branch-for-4.16
Bhumika Goyal (1):
platf
Hi Stephen,
On Mon, Dec 18, 2017 at 07:57:20AM +1100, Stephen Rothwell wrote:
> Hi Benson,
>
> Commit
>
> b2104e654703 ("platform/chrome: cros_ec_lpc: remove redundant pointer
> request")
>
> is missing a Signed-off-by from its committer.
Thanks for t
Kevin (DT)
[ 123.536242] task: ffc0f28bab80 task.stack: ffc0f1b3
[ 123.536247] PC is at sysfs_warn_dup+0x68/0x84
[ 123.536251] LR is at sysfs_warn_dup+0x68/0x84
Signed-off-by: Jeffy Chen
[bleung: resending this patch after the move to mfd from platform/chrome]
Signed-off-by: Benson Leung
---
d
Wu
Signed-off-by: Thierry Escande
[resent this patch after rename of this file from platform/chrome to
mfd]
Signed-off-by: Benson Leung
---
drivers/mfd/cros_ec_dev.c | 9 +
1 file changed, 9 insertions(+)
diff --git a/drivers/mfd/cros_ec_dev.c b/drivers/mfd/cros_ec_dev.c
index
On Fri, Dec 01, 2017 at 11:49:54AM -0800, Gwendal Grignou wrote:
> Checked against 7412f0a0d90ee6ddbad4cde794f88f1489422f3a (CHROMIUM:
> platform/chrome: Support MKBP protocol over ACPI)
> Reviewed-by: Gwendal Grignou
>
Thanks Gwendal.
(ps, don't top post.)
--
Benson Leu
DMI_MATCH(DMI_PRODUCT_NAME, "Glimmer"),
> + },
> + },
> { /* sentinel */ }
> };
> MODULE_DEVICE_TABLE(dmi, cros_ec_lpc_dmi_table);
> --
> 2.7.4
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
platform_driver_unregister(&cros_ec_lpc_driver);
> + cros_ec_lpc_reg_destroy();
> + }
> + }
> +
> + return ret;
> }
>
> static void __exit cros_ec_lpc_exit(void)
> {
> + if (!cros_ec_lpc_acpi_device_found)
> +
pport for GOOG004
> ACPI device")
> Signed-off-by: Guenter Roeck
> Signed-off-by: Enric Balletbo i Serra
> Signed-off-by: Thierry Escande
Applied for v4.16.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS
r_lpc(struct cros_ec_device *ec,
> /* Write buffer */
> cros_ec_lpc_write_bytes(EC_LPC_ADDR_HOST_PACKET, ret, ec->dout);
>
> - request = (struct ec_host_request *)ec->dout;
> -
> /* Here we go */
> sum = EC_COMMAND_PROTOCOL_3;
> cros_ec_lpc_write_byte
> 4294967295 is above array bounds of 'uint8_t[]' [-Werror=array-bounds]
>
> This changes the code back to what it did before changing to a
> zero-length array structure.
>
> Fixes: a841178445bb ("mfd: cros_ec: Use a zero-length array for command data")
> Sign
s Technical Lead
> Linaro.org │ Open source software for ARM SoCs
> Follow Linaro: Facebook | Twitter | Blog
Excellent. Pulled. Thank you so much!
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
not handle KEY_MEDIA.
Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the
new USB headset spec requires KEY_PLAYPAUSE for BTN_0.
https://source.android.com/devices/accessories/headset/usb-headset-spec
Signed-off-by: Benson Leung
---
sound/soc/intel/boards
The Android 3.5mm Headset jack specification mentions that BTN_0 should
be mapped to KEY_MEDIA, but this is less logical than KEY_PLAYPAUSE,
which has much broader userspace support.
not handle KEY_MEDIA.
Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the
new USB headset spec requires KEY_PLAYPAUSE for BTN_0.
https://source.android.com/devices/accessories/headset/usb-headset-spec
Signed-off-by: Benson Leung
---
sound/soc/rockchip/rk3399_gru_sound.c
not handle KEY_MEDIA.
Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the
new USB headset spec requires KEY_PLAYPAUSE for BTN_0.
https://source.android.com/devices/accessories/headset/usb-headset-spec
Signed-off-by: Benson Leung
---
sound/soc/intel/boards
not handle KEY_MEDIA.
Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the
new USB headset spec requires KEY_PLAYPAUSE for BTN_0.
https://source.android.com/devices/accessories/headset/usb-headset-spec
Signed-off-by: Benson Leung
---
sound/soc/codecs/ts3a227e.c | 2 +-
1
not handle KEY_MEDIA.
Furthermore, Android itself now supports KEY_PLAYPAUSE equivalently, as the
new USB headset spec requires KEY_PLAYPAUSE for BTN_0.
https://source.android.com/devices/accessories/headset/usb-headset-spec
Signed-off-by: Benson Leung
---
sound/soc/qcom/apq8016_sbc.c | 2 +-
1
27; results is
> almost always the wrong decision, and can result in host commands
> silently being lost.
>
> Reported-and-tested-by: Jon Hunter
> Signed-off-by: Shawn Nematbakhsh
Acked-by: Benson Leung
> ---
> drivers/mfd/cros_ec_spi.c | 52
> ++
is zero. Remove the code that checks if this variable is zero.
>
> Signed-off-by: Jon Hunter
> Reviewed-by: Brian Norris
Acked-by: Benson Leung
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
iable after calling
> spi_setup() and before sending the first SPI message.
>
> Cc:
>
> Signed-off-by: Jon Hunter
> Reviewed-by: Brian Norris
Acked-by: Benson Leung
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
; Signed-off-by: Dmitry Torokhov
Reviewed-by: Benson Leung
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
+/475212
>
> Ok, thanks, will use that one. How about
>
> Reviewed-by: Benson Leung
>
> which is missing in the mail you've sent, but is there in the above
> reference commit?
Submission looks good to me. Go ahead and add.
Reviewed-by: Benson Leung
Thanks,
Bens
t;)
> 3bd61d4d1d9e ("platform/chrome: cros_ec: Add sysfs entry to set keyboard
> wake lid angle")
>
> are missing a Signed-off-by from their committer.
>
Whoops. My mistake. Will fix. Thanks!
> --
> Cheers,
> Stephen Rothwell
--
Benson Leung
Staff Software Eng
Hi Oliver,
On Mon, Sep 11, 2017 at 01:02:52PM -0700, Benson Leung wrote:
> Thanks for the pointer. I'll respin the patch with the no_resume version of
> usb_autopm_get_interface and retest.
>
I went and tried this patch but with usb_autopm_get_interface_no_resume instead
and the
Hi Oliver,
On Sat, Sep 09, 2017 at 09:35:52AM +0200, Oliver Neukum wrote:
> Am Freitag, den 08.09.2017, 10:43 -0700 schrieb Dmitry Torokhov:
> > From: Benson Leung
> >
> > usbhid->intf->needs_remote_wakeup is set when a device is opened, and is
> > cleared whe
> Signed-off-by: Shawn Nematbakhsh
> Signed-off-by: Brian Norris
> Reviewed-by: Javier Martinez Canillas
Looks good. Applied for v4.14.
Thanks!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
to do something meaningful.
> Also, this patch makes use of cros_ec_cmd_xfer_status() instead of
> cros_ec_cmd_xfer() so an error message is printed in the syslog.
>
> Signed-off-by: Gwendal Grignou
> Signed-off-by: Thierry Escande
Looks good. Applied.
--
Benson Leung
Staff Soft
are controlled by the EC.
>
> This patch also moves the cros_ec features check before the device is
> added so the features map obtained from the EC is ready on time.
>
> Signed-off-by: Gwendal Grignou
> Signed-off-by: Thierry Escande
V2 Looks good. Applied. Thanks!
--
Ben
Applied. Thanks for the patch!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
n_dup+0x68/0x84
>
> Signed-off-by: Jeffy Chen
Thanks for the fix. Applied for v4.14.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
his patch registers a shutdown callback used to cancel the debugfs log
> worker thread.
>
> Signed-off-by: Daniel Hung-yu Wu
> Signed-off-by: Thierry Escande
Applied.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromi
i5.0: cs-deassert spi transfer failed: -108
> cros-ec-ctl cros-ec-ctl.0.auto: EC communication failed
>
> Signed-off-by: Douglas Anderson
> Signed-off-by: Thierry Escande
Applied.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@g
iner_of(dev, struct cros_ec_dev,
> + class_dev);
> +
> + if (a == &dev_attr_kb_wake_angle.attr && !ec->has_kb_wake_angle)
> + return 0;
> +
> + return a->mode;
> +}
> +
> struct attribute_group cros_ec_attr_group = {
> .attrs = __ec_attrs,
> + .is_visible = cros_ec_ctrl_visible,
> };
>
> diff --git a/include/linux/mfd/cros_ec.h b/include/linux/mfd/cros_ec.h
> index 4e887ba..350b8a4 100644
> --- a/include/linux/mfd/cros_ec.h
> +++ b/include/linux/mfd/cros_ec.h
> @@ -191,6 +191,7 @@ struct cros_ec_dev {
> struct cros_ec_device *ec_dev;
> struct device *dev;
> struct cros_ec_debugfs *debug_info;
> + bool has_kb_wake_angle;
> u16 cmd_offset;
> u32 features[2];
> };
> --
> 2.7.4
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
ry Escande
Acked-by: Benson Leung
> ---
> drivers/mfd/cros_ec_i2c.c | 12
> 1 file changed, 12 insertions(+)
>
> diff --git a/drivers/mfd/cros_ec_i2c.c b/drivers/mfd/cros_ec_i2c.c
> index 576fcc4..56fc667 100644
> --- a/drivers/mfd/cros_ec_i2c.c
> +++
uninformed mistakes (using the wrong protocol, the
> wrong buffer size, mixing the EC with other chips).
>
> Signed-off-by: Vincent Palatin
> Signed-off-by: Thierry Escande
Acked-by: Benson Leung
> ---
> drivers/mfd/cros_ec.c | 6 +-
> 1 file changed, 5 insertions(+), 1
his patch registers a shutdown callback used to cancel the debugfs log
> worker thread.
>
> Signed-off-by: Daniel Hung-yu Wu
> Signed-off-by: Thierry Escande
Applied. Thanks.
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromi
ros-ec-spi spi5.0: cs-deassert spi transfer failed: -108
> cros-ec-ctl cros-ec-ctl.0.auto: EC communication failed
>
> Signed-off-by: Douglas Anderson
> Signed-off-by: Thierry Escande
Looks good. Applied.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Ker
; normally.
>
> Signed-off-by: Joseph Lo
> Signed-off-by: Thierry Escande
Acked-by: Benson Leung
Thanks!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
ight_prox.c
> index 7217223..f8658d4 100644
> --- a/drivers/iio/light/cros_ec_light_prox.c
> +++ b/drivers/iio/light/cros_ec_light_prox.c
> @@ -279,6 +279,7 @@ MODULE_DEVICE_TABLE(platform, cros_ec_light_prox_ids);
> static struct platform_driver cros_ec_light_prox_platform_driver = {
> .driver = {
> .name = "cros-ec-light-prox",
> + .pm = &cros_ec_sensors_pm_ops,
> },
> .probe = cros_ec_light_prox_probe,
> .id_table = cros_ec_light_prox_ids,
> --
> 2.7.4
>
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
e this configuration,
but the first one we shipped did, so we will have to support it.
Thanks,
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
o i Serra
> Acked-by: Alexandre Belloni
Acked-by: Benson Leung
Thanks!
Benson
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: OpenPGP digital signature
o i Serra
> Acked-by: Lee Jones
Acked-by: Benson Leung
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: OpenPGP digital signature
):
platform/chrome: cros_ec_lightbar - hide unused PM functions
Benson Leung (1):
platform/chrome : Add myself as Maintainer
Eric Caruso (4):
mfd: cros_ec: add debugfs, console log file
platform/chrome: cros_ec_lightbar - Add lightbar program feature to sysfs
platform
Hi Lee,
On Mon, Jul 03, 2017 at 12:46:41PM +0100, Lee Jones wrote:
> On Tue, 27 Jun 2017, Benson Leung wrote:
>
> > Hi Thierry,
> >
> > On Tue, Feb 14, 2017 at 08:58:02PM +0100, Thierry Escande wrote:
> > > From: Shawn Nematbakhsh
> > >
> > >
Fixes: 405c84308c43 ("platform/chrome: cros_ec_lightbar - Control of
> suspend/resume lightbar sequence")
> Signed-off-by: Arnd Bergmann
Good catch. Applied. Thanks!
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
drivers/platform/chrome/cros_ec_proto.c | 76
> ++---
> include/linux/mfd/cros_ec.h | 5 ++-
> 3 files changed, 85 insertions(+), 9 deletions(-)
>
Another use of cros_ec_get_next_event was introduced in cros_ec_lpc.c since
this patch was posted, so I went ahead and
Thierry Escande
Applied. Thanks again!
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
supported
> field) and cros_ec_query_all() returns 0.
>
> Signed-off-by: Thierry Escande
Applied. Thanks!
--
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
ble...@google.com
Chromium OS Project
ble...@chromium.org
signature.asc
Description: Digital signature
y Yu
> Signed-off-by: Guenter Roeck
> Signed-off-by: Enric Balletbo i Serra
Signed-off-by: Benson Leung
Applied.
> ---
> drivers/platform/chrome/cros_ec_dev.c | 12
> drivers/platform/chrome/cros_ec_lightbar.c | 13 +
> 2 files changed, 13 inserti
resume pathways.
>
> Signed-off-by: Eric Caruso
> Signed-off-by: Guenter Roeck
> Signed-off-by: Enric Balletbo i Serra
Signed-off-by: Benson Leung
Applied.
> ---
> drivers/platform/chrome/cros_ec_lightbar.c | 38
> ++
> 1 file changed, 38
lletbo i Serra
> Acked-by: Lee Jones
Signed-off-by: Benson Leung
Applied. Thanks.
> ---
> drivers/platform/chrome/cros_ec_dev.c | 37 +
> drivers/platform/chrome/cros_ec_dev.h | 6 +++
> drivers/platform/chrome/cros_ec_lightbar.c | 85
>
101 - 200 of 419 matches
Mail list logo