New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 735580 link

Starred by 1 user

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

__cros_ec_pwm_get_duty using incorrect calling params

Project Member Reported by nvaccaro@chromium.org, Jun 21 2017

Issue description

The "cros/chromeos-4.4" linux kernel's __cros_ec_pwm_get_duty() routine in pwm-cros-ec.c was incorrectly setting the outsize field as insize and the insize field as outsize in the msg param block passed to cros_ec_cmd_xfer_status().

The original code still worked due to size of the two particular parameter blocks passed to cros_ec_cmd_xfer_status(), so this change is not fixing an actual runtime problem, just correcting the calling usage.
 
Status: Started (was: Unconfirmed)
Labels: -OS-Linux OS-Chrome
Components: OS>Kernel
Patch has been sent upstream.

Project Member

Comment 6 by bugdroid1@chromium.org, Jul 14 2017

Labels: merge-merged-chromeos-4.4
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/kernel/+/ef5b1bc5bcf9569c689183c3e67145c5cac10543

commit ef5b1bc5bcf9569c689183c3e67145c5cac10543
Author: Nick Vaccaro <nvaccaro@google.com>
Date: Fri Jul 14 14:37:06 2017

UPSTREAM: pwm: cros-ec: Fix transposed param settings

The __cros_ec_pwm_get_duty() routine was transposing the insize and
outsize fields when calling cros_ec_cmd_xfer_status().

The original code worked without error due to size of the two particular
parameter blocks passed to cros_ec_cmd_xfer_status(), so this change is
not fixing an actual runtime problem, just correcting the calling usage.

Signed-off-by: Nick Vaccaro <nvaccaro@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
(cherry picked from commit e47866a177cf0baba1d714fa93cb762f25bd6cef)

BUG= chromium:735580 
TEST=build on kevin, verify call works and causes no errors in ec

Change-Id: Iebfdc70147a861756a44c76588ae2d298216e165
Reviewed-on: https://chromium-review.googlesource.com/570939
Commit-Ready: Nick Vaccaro <nvaccaro@chromium.org>
Tested-by: Nick Vaccaro <nvaccaro@chromium.org>
Reviewed-by: Brian Norris <briannorris@chromium.org>

[modify] https://crrev.com/ef5b1bc5bcf9569c689183c3e67145c5cac10543/drivers/pwm/pwm-cros-ec.c

Status: Fixed (was: Started)

Comment 8 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Sign in to add a comment