[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <71db99f1-edfc-db56-d05f-515b859c893e@intel.com>
Date: Fri, 2 Jun 2017 15:25:03 +0300
From: Adrian Hunter <adrian.hunter@...el.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Christoph Hellwig <hch@....de>, linux-kernel@...r.kernel.org,
"Rafael J . Wysocki" <rjw@...ysocki.net>,
linux-acpi@...r.kernel.org,
Dan Williams <dan.j.williams@...el.com>,
Mika Westerberg <mika.westerberg@...ux.intel.com>,
Borislav Petkov <bp@...e.de>, intel-gfx@...ts.freedesktop.org
Cc: Amir Goldstein <amir73il@...il.com>,
Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>,
Ben Skeggs <bskeggs@...hat.com>,
Yisen Zhuang <yisen.zhuang@...wei.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>
Subject: Re: [PATCH v2 5/5] ACPI: Switch to use generic guid_t in
acpi_evaluate_dsm()
On 31/05/17 22:41, Andy Shevchenko wrote:
> acpi_evaluate_dsm() and friends take a pointer to a raw buffer of 16
> bytes. Instead we convert them to use guid_t type. At the same time we
> convert current users.
>
> acpi_str_to_uuid() becomes useless after the conversion and it's safe to
> get rid of it.
>
> Cc: Borislav Petkov <bp@...e.de>
> Cc: Dan Williams <dan.j.williams@...el.com>
> Cc: Amir Goldstein <amir73il@...il.com>
> Cc: Jarkko Sakkinen <jarkko.sakkinen@...ux.intel.com>
> Reviewed-by: Jani Nikula <jani.nikula@...el.com>
> Acked-by: Jani Nikula <jani.nikula@...el.com>
> Cc: Ben Skeggs <bskeggs@...hat.com>
> Acked-by: Benjamin Tissoires <benjamin.tissoires@...hat.com>
> Acked-by: Joerg Roedel <jroedel@...e.de>
> Cc: Adrian Hunter <adrian.hunter@...el.com>
> Cc: Yisen Zhuang <yisen.zhuang@...wei.com>
> Acked-by: Bjorn Helgaas <bhelgaas@...gle.com>
> Acked-by: Felipe Balbi <felipe.balbi@...ux.intel.com>
> Acked-by: Mathias Nyman <mathias.nyman@...ux.intel.com>
> Reviewed-by: Heikki Krogerus <heikki.krogerus@...ux.intel.com>
> Cc: Liam Girdwood <lgirdwood@...il.com>
> Cc: Mark Brown <broonie@...nel.org>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
> ---
> drivers/acpi/acpi_extlog.c | 4 ++--
> drivers/acpi/bus.c | 23 ----------------------
> drivers/acpi/nfit/core.c | 6 +++---
> drivers/acpi/utils.c | 16 +++++++--------
> drivers/char/tpm/tpm_crb.c | 9 ++++-----
> drivers/char/tpm/tpm_ppi.c | 20 ++++++++-----------
> drivers/gpu/drm/i915/intel_acpi.c | 14 +++++--------
> drivers/gpu/drm/nouveau/nouveau_acpi.c | 20 +++++++++----------
> drivers/gpu/drm/nouveau/nvkm/subdev/mxm/base.c | 9 ++++-----
> drivers/hid/i2c-hid/i2c-hid.c | 9 ++++-----
> drivers/iommu/dmar.c | 11 +++++------
> drivers/mmc/host/sdhci-pci-core.c | 9 ++++-----
<SNIP>
> diff --git a/drivers/mmc/host/sdhci-pci-core.c b/drivers/mmc/host/sdhci-pci-core.c
> index 92fc3f7c538d..c942ec102c6a 100644
> --- a/drivers/mmc/host/sdhci-pci-core.c
> +++ b/drivers/mmc/host/sdhci-pci-core.c
> @@ -404,10 +404,9 @@ struct intel_host {
> bool d3_retune;
> };
>
> -const u8 intel_dsm_uuid[] = {
> - 0xA5, 0x3E, 0xC1, 0xF6, 0xCD, 0x65, 0x1F, 0x46,
> - 0xAB, 0x7A, 0x29, 0xF7, 0xE8, 0xD5, 0xBD, 0x61,
> -};
> +const guid_t intel_dsm_guid =
> + GUID(0xF6C13EA5, 0x65CD, 0x461F,
> + 0xAB, 0x7A, 0x29, 0xF7, 0xE8, 0xD5, 0xBD, 0x61);
>
> static int __intel_dsm(struct intel_host *intel_host, struct device *dev,
> unsigned int fn, u32 *result)
> @@ -416,7 +415,7 @@ static int __intel_dsm(struct intel_host *intel_host, struct device *dev,
> int err = 0;
> size_t len;
>
> - obj = acpi_evaluate_dsm(ACPI_HANDLE(dev), intel_dsm_uuid, 0, fn, NULL);
> + obj = acpi_evaluate_dsm(ACPI_HANDLE(dev), &intel_dsm_guid, 0, fn, NULL);
> if (!obj)
> return -EOPNOTSUPP;
>
For sdhci:
Acked-by: Adrian Hunter <adrian.hunter@...el.com>
Powered by blists - more mailing lists