stm32 usb config hardcoded to 500mA |
|||||||||
Issue descriptionOS: cros_ec All stm32 devices with USB indicate that they draw 500mA power. Realistically, most draw 0 and some draw ~<100mA. Can this default to something lower and have a config that can be adjusted per board? At: https://chromium.googlesource.com/chromiumos/platform/ec/+/master/chip/stm32/usb.c#71 This causes init warnings on Mac as passive hubs' ports shouldn't provide 500mA by spec.
,
Jul 26 2016
I was thinking of ryu and cr50, which are self powered.
,
Jul 26 2016
for ryu and cr50, we can just remove the bus-powered bit (0x80) in bmAttributes, that's a more correct solution.
,
Aug 9 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromiumos/platform/ec/+/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4 commit 3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4 Author: Nick Sanders <nsanders@chromium.org> Date: Tue Jul 26 15:22:34 2016 servo_v4: servo_micro: cr50: fix usb power declaration Servo_micro sets usb config maxpower to 100mA. Servo_v4 is set to self powered as it's powered by a shared vbus and not be the bub it's connected to. cr50 is self powered as no power is transmitted as part of CCD. * Add CONFIG_USB_MAXPOWER_MA to define USB maximum power draw requested per board. * Add CONFIG_USB_SELF_POWERED to indicate that a device is not powered by allocated USB power. BUG= chromium:631302 TEST=lsusb reports 100mA bMaxPower (micro), Self powered (v4) BRANCH=None Change-Id: I79b8ce46f32d94f16104a4a8080104e30dce7f2c Signed-off-by: Nick Sanders <nsanders@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/363153 Reviewed-by: Vincent Palatin <vpalatin@chromium.org> [modify] https://crrev.com/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4/chip/stm32/usb.c [modify] https://crrev.com/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4/board/cr50/board.h [modify] https://crrev.com/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4/board/servo_micro/board.h [modify] https://crrev.com/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4/chip/g/usb.c [modify] https://crrev.com/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4/include/config.h [modify] https://crrev.com/3e42a3b059d35310fe41bcc55d2d1b5d0efe0bd4/board/servo_v4/board.h
,
Oct 26 2016
,
Nov 1 2016
,
Jan 21 2017
,
Mar 4 2017
,
Apr 17 2017
,
May 30 2017
,
Aug 1 2017
,
Oct 14 2017
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by vpalatin@google.com
, Jul 26 2016