mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: "Ayman Bagabas" <ayman.bagabas@gmail.com>
Cc: <alsa-devel@alsa-project.org>,
	"Hui Wang" <hui.wang@canonical.com>,
	"Andy Shevchenko" <andy@infradead.org>,
	"Darren Hart" <dvhart@infradead.org>,
	"Jaroslav Kysela" <perex@perex.cz>,
	"Kailang Yang" <kailang@realtek.com>,
	<linux-kernel@vger.kernel.org>,
	<platform-driver-x86@vger.kernel.org>
Subject: Re: [PATCH v9 2/3] x86: add support for Huawei WMI hotkeys.
Date: Mon, 03 Dec 2018 20:04:36 +0100	[thread overview]
Message-ID: <s5h8t16jut7.wl-tiwai@suse.de> (raw)
In-Reply-To: <20181203185344.3521-3-ayman.bagabas@gmail.com>

On Mon, 03 Dec 2018 19:53:39 +0100,
Ayman Bagabas wrote:
> +	if (code == 0x80) {
> +		acpi_status status;
> +		acpi_handle handle;
> +		unsigned long long result;
> +		union acpi_object args[1];
> +		struct acpi_object_list arg_list = {
> +			.pointer = args,
> +			.count = ARRAY_SIZE(args),
> +		};
> +
> +		args[0].type = ACPI_TYPE_INTEGER;
> +		args[0].integer.value = 0;
> +
> +		status = acpi_get_handle(NULL, "\\WMI0", &handle);
> +		if (ACPI_FAILURE(status)) {
> +			dev_err(&wdev->dev, "Unable to get ACPI handle\n");
> +			return;
> +		}
> +
> +		status = acpi_evaluate_integer(NULL, "WQ00", &arg_list, &result);

I guess you need to pass handle here?  In the earlier version, you
passed \\WMI0.WQ00, so it worked with NULL handle.  But now it's no
longer so...

Other than that, it looks OK to me.
  Reviewed-by: Takashi Iwai <tiwai@suse.de>

But, you don't need to rush too much.  Instead, better to test your
own patches and make sure that they really work before submitting the
final version.


thanks,

Takashi

  reply	other threads:[~2018-12-03 19:04 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-03 18:53 [PATCH v9 0/3] Huawei laptops Ayman Bagabas
2018-12-03 18:53 ` [PATCH v9 1/3] ALSA: hda: fix front speakers on Huawei MBXP Ayman Bagabas
2018-12-03 18:53 ` [PATCH v9 2/3] x86: add support for Huawei WMI hotkeys Ayman Bagabas
2018-12-03 19:04   ` Takashi Iwai [this message]
2018-12-03 19:17     ` Andy Shevchenko
2018-12-04 15:41       ` ayman.bagabas
     [not found]       ` <577ee93043ae7f2d3ff9818696c1b759efa5b1c8.camel@gmail.com>
2018-12-08  6:39         ` ayman.bagabas
2018-12-03 19:41   ` Randy Dunlap
2018-12-04 15:29     ` ayman.bagabas
2018-12-03 18:53 ` [PATCH v9 3/3] ALSA: hda: add support for Huawei WMI micmute LED Ayman Bagabas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=s5h8t16jut7.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=andy@infradead.org \
    --cc=ayman.bagabas@gmail.com \
    --cc=dvhart@infradead.org \
    --cc=hui.wang@canonical.com \
    --cc=kailang@realtek.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=platform-driver-x86@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®