Merge tag 'tag-chrome-platform-for-v5.10' of git://git.kernel.org/pub/scm/linux/kerne...
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Oct 2020 17:54:13 +0000 (10:54 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 23 Oct 2020 17:54:13 +0000 (10:54 -0700)
Pull chrome platform updates from Benson Leung:
 "cros-ec:
   - Error code cleanup across cros-ec by Guenter
   - Remove cros_ec_cmd_xfer in favor of cros_ec_cmd_xfer_status

  cros_ec_typec:
   - Landed initial USB4 support in typec connector class driver for
     cros_ec
   - Role switch bugfix on disconnect, and reordering configuration
     steps

  cros_ec_lightbar:
   - Fix buffer outsize and result for get_lightbar_version

  misc:
   - Remove config MFD_CROS_EC, now that transition from MFD is complete
   - Enable KEY_LEFTMETA in new location on arm based cros-ec-keyboard
     keymap"

* tag 'tag-chrome-platform-for-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/chrome-platform/linux:
  ARM: dts: cros-ec-keyboard: Add alternate keymap for KEY_LEFTMETA
  platform/chrome: Use kobj_to_dev() instead of container_of()
  platform/chrome: cros_ec_proto: Drop cros_ec_cmd_xfer()
  platform/chrome: cros_ec_proto: Update cros_ec_cmd_xfer() call-sites
  platform/chrome: Kconfig: Remove the transitional MFD_CROS_EC config
  platform/chrome: cros_ec_lightbar: Reduce ligthbar get version command
  platform/chrome: cros_ec_trace: Add fields to command traces
  platform/chrome: cros_ec_typec: Re-order connector configuration steps
  platform/chrome: cros_ec_typec: Avoid setting usb role twice during disconnect
  platform/chrome: cros_ec_typec: Send enum values to usb_role_switch_set_role()
  platform/chrome: cros_ec_typec: USB4 support
  pwm: cros-ec: Simplify EC error handling
  platform/chrome: cros_ec_proto: Convert EC error codes to Linux error codes
  platform/input: cros_ec: Replace -ENOTSUPP with -ENOPROTOOPT
  pwm: cros-ec: Accept more error codes from cros_ec_cmd_xfer_status
  platform/chrome: cros_ec_sysfs: Report range of error codes from EC
  cros_ec_lightbar: Accept more error codes from cros_ec_cmd_xfer_status
  iio: cros_ec: Accept -EOPNOTSUPP as 'not supported' error code

1  2 
drivers/iio/common/cros_ec_sensors/cros_ec_sensors.c

index 57038ca48d93804ea728045d9bfbb3c8acbbfc0d,d71e9064c78963c2e20133e420cb9e4a704a1600..dee1191de75280290b749007140a57ae9eb9da78
@@@ -73,7 -73,7 +73,7 @@@ static int cros_ec_sensors_read(struct 
                st->core.param.sensor_offset.flags = 0;
  
                ret = cros_ec_motion_send_host_cmd(&st->core, 0);
-               if (ret == -EPROTO) {
+               if (ret == -EPROTO || ret == -EOPNOTSUPP) {
                        /* Reading calibscale is not supported on older EC. */
                        *val = 1;
                        *val2 = 0;
@@@ -236,11 -236,12 +236,11 @@@ static int cros_ec_sensors_probe(struc
  
        ret = cros_ec_sensors_core_init(pdev, indio_dev, true,
                                        cros_ec_sensors_capture,
 -                                      cros_ec_sensors_push_data);
 +                                      cros_ec_sensors_push_data,
 +                                      true);
        if (ret)
                return ret;
  
 -      iio_buffer_set_attrs(indio_dev->buffer, cros_ec_sensor_fifo_attributes);
 -
        indio_dev->info = &ec_sensors_info;
        state = iio_priv(indio_dev);
        for (channel = state->channels, i = CROS_EC_SENSOR_X;