Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1361743
| From | Lee Jones <lee.jones@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/1] mfd: core: fix ACPI child matching by _HID/_CID |
| Date | 2016-03-21 13:00 +0100 |
| Message-ID | <rf6F5-52Q-21@gated-at.bofh.it> (permalink) |
| References | <rc2HF-6xE-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Sun, 13 Mar 2016, Irina Tirdea wrote:
> If MDF child devices have separate ACPI nodes identified
> by _HID/_CID, they will not be assigned the intended
> ACPI companion.
>
> acpi_match_device_ids will return 0 if a the child device
> matches the _HID/_CID, so this patch changes the matching
> condition to check for 0 on success.
>
> Signed-off-by: Irina Tirdea <irina.tirdea@intel.com>
> ---
> drivers/mfd/mfd-core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
I've fixed the $SUBJECT line to be more consistent with the subsystem
style for you this time. Please pay more attention to that in the
future.
`git log --oneline -- $SUBSYSTEM` helps with this.
Patch applied, thanks.
> diff --git a/drivers/mfd/mfd-core.c b/drivers/mfd/mfd-core.c
> index 88bd1b1..409da01 100644
> --- a/drivers/mfd/mfd-core.c
> +++ b/drivers/mfd/mfd-core.c
> @@ -107,7 +107,7 @@ static void mfd_acpi_add_device(const struct mfd_cell *cell,
>
> strlcpy(ids[0].id, match->pnpid, sizeof(ids[0].id));
> list_for_each_entry(child, &parent->children, node) {
> - if (acpi_match_device_ids(child, ids)) {
> + if (!acpi_match_device_ids(child, ids)) {
> adev = child;
> break;
> }
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH 1/1] mfd: core: fix ACPI child matching by _HID/_CID Lee Jones <lee.jones@linaro.org> - 2016-03-21 13:00 +0100
csiph-web