Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Cezary Rojewski <cezary.rojewski@intel.com>
To: Oder Chiou <oder_chiou@realtek.com>,
	"broonie@kernel.org" <broonie@kernel.org>
Cc: "tiwai@suse.com" <tiwai@suse.com>,
	"perex@perex.cz" <perex@perex.cz>,
	"amadeuszx.slawinski@linux.intel.com"
	<amadeuszx.slawinski@linux.intel.com>,
	"linux-sound@vger.kernel.org" <linux-sound@vger.kernel.org>,
	"Flove(HsinFu)" <flove@realtek.com>,
	"andriy.shevchenko@linux.intel.com"
	<andriy.shevchenko@linux.intel.com>,
	"Shuming [范書銘]" <shumingf@realtek.com>,
	"Jack Yu" <jack.yu@realtek.com>,
	"Derek [方德義]" <derek.fang@realtek.com>
Subject: Re: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of device_id tables
Date: Thu, 27 Feb 2025 13:43:38 +0100	[thread overview]
Message-ID: <3fccbd20-693b-46d5-bf31-2beb73aa7e54@intel.com> (raw)
In-Reply-To: <fa960c2c016342e5addf2eba19881d64@realtek.com>

On 2025-02-27 6:11 AM, Oder Chiou wrote:
>> -----Original Message-----
>> From: Cezary Rojewski <cezary.rojewski@intel.com>
>> Sent: Wednesday, February 26, 2025 5:42 PM
>> To: Oder Chiou <oder_chiou@realtek.com>; broonie@kernel.org
>> Cc: tiwai@suse.com; perex@perex.cz; amadeuszx.slawinski@linux.intel.com;
>> linux-sound@vger.kernel.org; Flove(HsinFu) <flove@realtek.com>;
>> andriy.shevchenko@linux.intel.com; Shuming [范書銘]
>> <shumingf@realtek.com>; Jack Yu <jack.yu@realtek.com>; Derek [方德義]
>> <derek.fang@realtek.com>
>> Subject: Re: [PATCH 20/24] ASoC: codecs: rt1015p: Update definition of
>> device_id tables

...

>>>> diff --git a/sound/soc/codecs/rt1015p.c b/sound/soc/codecs/rt1015p.c
>>>> index 44e7fe3c32da..33917438196f 100644
>>>> --- a/sound/soc/codecs/rt1015p.c
>>>> +++ b/sound/soc/codecs/rt1015p.c
>>>> @@ -133,9 +133,11 @@ MODULE_DEVICE_TABLE(of, rt1015p_device_id);
>>>>
>>>>    #ifdef CONFIG_ACPI
>>>>    static const struct acpi_device_id rt1015p_acpi_match[] = {
>>>> -       { "RTL1015", 0},
>>>> -       { "RTL1019", 0},
>>>> -       { },
>>>> +       { "RTL1015" },
>>>> +       { "RTL1019" },
>>>> +       { "10EC1015" },
>>>> +       { "10EC1019" },
>>>> +       {}
>>>
>>> There are different settings for RTL1015, RTL1019, 10EC1015, and 10EC1019.
>>> RTL1015 and RTL1019 are used for powering up and down via the GPIO.
>>> 10EC1015 and 10EC1019 are used for the I2C-controlled driver.
>>> Therefore 10EC1015 and 10EC1019 should be removed.
>>
>> Sorry for the delay in response and thank for you the feedback.
>>
>> I'm surprised this hasn't come up earlier in the discussion. I'll
>> probably cut off problematic patches so that majority can be merged.
>> It's important to have some follow up though, on the subject you
>> mentioned. Correct me if I'm wrong but from the .c files it seems:
>>
>> for DT/ARM rt1015 & rt1015p are represented by:
>>          .compatible = "realtek,rt1015"
>>          .compatible = "realtek,rt1015p"
>>
>> for ACPI/x86 rt1015 & rt1015p are represented by:
>>          "10EC1015"
>>          "RTL1015"
>>
>> The first pair is nice and clean, the second is confusing and error
>> prone. Do you know where the second pair originated from?
> 10EC is defined by the PCI domain, and RTL is defined by the PNP domain.
> To distinguish these, 1015, 1019, and 5682 use different drivers,
> with the RTL prefix being used to instead of the p postfix in the DT.

Thank you for the reminder. I'm aware of the origins for PCI/PNP 
prefixes, though. In fact, there is more to it - OBDA [1] and ALG [2]. 
The idea is to choose one _recommended path_ and follow it. If the 
desire is to name future chips using suffixes such as -p or -s, then 
perhaps PNP-based naming should have been selected instead. Another 
option would be to change the hardware naming scheme e.g: '1016' instead 
of '1015p'.

If the latter is not an option, why not:
	RTL1015
	RTL1015P

on ACPI/x86 side? Aligns with ARM equivalent nicely, no?

[1]: https://uefi.org/ACPI_ID_List?acpi_search=realtek
[2]: https://uefi.org/PNP_ID_List?pnp_search=realtek

Kind regards,
Czarek

  reply	other threads:[~2025-02-27 12:44 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-20 11:26 [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Cezary Rojewski
2025-02-20 11:26 ` [PATCH 01/24] ASoC: codecs: rt1011: Fix definition of device_id tables Cezary Rojewski
2025-02-20 11:26 ` [PATCH 02/24] ASoC: codecs: rt1015: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 03/24] ASoC: codecs: rt1016: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 04/24] ASoC: codecs: rt1019: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 05/24] ASoC: codecs: rt1305: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 06/24] ASoC: codecs: rt1308: " Cezary Rojewski
2025-02-20 14:11   ` Andy Shevchenko
2025-02-20 15:37     ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 07/24] ASoC: codecs: rt1318: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 08/24] ASoC: codecs: rt274: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 09/24] ASoC: codecs: rt5514: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 10/24] ASoC: codecs: rt5640: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 11/24] ASoC: codecs: rt5645: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 12/24] ASoC: codecs: rt5651: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 13/24] ASoC: codecs: rt5659: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 14/24] ASoC: codecs: rt5660: " Cezary Rojewski
2025-02-20 14:13   ` Andy Shevchenko
2025-02-20 15:42     ` Cezary Rojewski
2025-02-20 11:26 ` [PATCH 15/24] ASoC: codecs: rt5663: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 16/24] ASoC: codecs: rt5665: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 17/24] ASoC: codecs: rt5668: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 18/24] ASoC: codecs: rt5670: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 19/24] ASoC: codecs: rt5682: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 20/24] ASoC: codecs: rt1015p: Update " Cezary Rojewski
2025-02-21  2:38   ` Oder Chiou
2025-02-26  9:42     ` Cezary Rojewski
2025-02-27  5:11       ` Oder Chiou
2025-02-27 12:43         ` Cezary Rojewski [this message]
2025-02-20 11:26 ` [PATCH 21/24] ASoC: codecs: rt286: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 22/24] ASoC: codecs: rt298: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 23/24] ASoC: codecs: rt5677: " Cezary Rojewski
2025-02-20 11:26 ` [PATCH 24/24] ASoC: codecs: rt5682s: " Cezary Rojewski
2025-02-21  2:08   ` Shuming [范書銘]
2025-02-26  9:47     ` Cezary Rojewski
2025-02-20 14:09 ` [PATCH 00/24] ASoC: codecs: Update device_id tables for Realtek drivers Andy Shevchenko
2025-02-20 14:15 ` Andy Shevchenko

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=3fccbd20-693b-46d5-bf31-2beb73aa7e54@intel.com \
    --to=cezary.rojewski@intel.com \
    --cc=amadeuszx.slawinski@linux.intel.com \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=broonie@kernel.org \
    --cc=derek.fang@realtek.com \
    --cc=flove@realtek.com \
    --cc=jack.yu@realtek.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=oder_chiou@realtek.com \
    --cc=perex@perex.cz \
    --cc=shumingf@realtek.com \
    --cc=tiwai@suse.com \
    /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