Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1668038 > unrolled thread

Re: [PATCH RESEND 03/13] mfd: cros_ec: add debugfs, console log file

Started byBenson Leung <bleung@google.com>
First post2017-06-16 21:50 +0200
Last post2017-06-16 21:50 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH RESEND 03/13] mfd: cros_ec: add debugfs, console log file Benson Leung <bleung@google.com> - 2017-06-16 21:50 +0200

#1668038 — Re: [PATCH RESEND 03/13] mfd: cros_ec: add debugfs, console log file

FromBenson Leung <bleung@google.com>
Date2017-06-16 21:50 +0200
SubjectRe: [PATCH RESEND 03/13] mfd: cros_ec: add debugfs, console log file
Message-ID<tT5pM-4AB-19@gated-at.bofh.it>

[Multipart message — attachments visible in raw view] — view raw

Hi Enric,

I have gotten around to reviewing this series, and hope to get
this in ASAP.

I found an issue with this commit, but I'll go ahead and fix it
myself as I'm creating the immutable branch. No need to respin the series.

On Tue, May 16, 2017 at 06:13:09PM +0200, Enric Balletbo i Serra wrote:
> +static int ec_read_version_supported(struct cros_ec_dev *ec)
> +{
> +	struct ec_params_get_cmd_versions_v1 *params;
> +	struct ec_response_get_cmd_versions *response;
> +	int ret;
> +
> +	struct cros_ec_command *msg;
> +
> +	msg = kzalloc(sizeof(*msg) + max(sizeof(params), sizeof(response)),
> +		GFP_KERNEL);
> +	if (!msg)
> +		return 0;
> +
> +	msg->command = EC_CMD_GET_CMD_VERSIONS + ec->cmd_offset;
> +	msg->outsize = sizeof(*params);
> +	msg->insize = sizeof(*response);

By my diff, the above two lines were changed from the original CHROMIUM
commit, based on Doug's comment here: https://lkml.org/lkml/2017/2/22/630

However, this is an incomplete fix. Instead, we should pick this:
https://chromium-review.googlesource.com/#/c/444085/

I'll go ahead and do that. Thanks!

Benson

-- 
Benson Leung
Staff Software Engineer
Chrome OS Kernel
Google Inc.
bleung@google.com
Chromium OS Project
bleung@chromium.org

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web