diff mbox

[1/2] ARM: pxa: ssp: provide platform_device_id for PXA3xx

Message ID 1407959959-4977-1-git-send-email-zonque@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Daniel Mack Aug. 13, 2014, 7:59 p.m. UTC
Provide an explicit match string for PXA3xx SSP ports.

Signed-off-by: Daniel Mack <zonque@gmail.com>
---
 arch/arm/plat-pxa/ssp.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Haojian Zhuang Aug. 14, 2014, 2:08 a.m. UTC | #1
On Thu, Aug 14, 2014 at 3:59 AM, Daniel Mack <zonque@gmail.com> wrote:
> Provide an explicit match string for PXA3xx SSP ports.
>
> Signed-off-by: Daniel Mack <zonque@gmail.com>
> ---
>  arch/arm/plat-pxa/ssp.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
> index 3ea0290..1f5ee17 100644
> --- a/arch/arm/plat-pxa/ssp.c
> +++ b/arch/arm/plat-pxa/ssp.c
> @@ -258,6 +258,7 @@ static const struct platform_device_id ssp_id_table[] = {
>         { "pxa25x-ssp",         PXA25x_SSP },
>         { "pxa25x-nssp",        PXA25x_NSSP },
>         { "pxa27x-ssp",         PXA27x_SSP },
> +       { "pxa3xx-ssp",         PXA3xx_SSP },
>         { "pxa168-ssp",         PXA168_SSP },
>         { "pxa910-ssp",         PXA910_SSP },
>         { },
> --
> 2.0.4
>
I don't agree on this. SSP1,SSP2,SSP3 on pxa3xx are same with pxa27x.
So we reuse the name.
For the new SSP4, we create pxa3xx_device_ssp4.

We just want to reuse these code.

Regards
Haojian
Daniel Mack Aug. 14, 2014, 8:35 a.m. UTC | #2
Hi Haojian,

On 08/14/2014 04:08 AM, Haojian Zhuang wrote:
> On Thu, Aug 14, 2014 at 3:59 AM, Daniel Mack <zonque@gmail.com> wrote:
>> Provide an explicit match string for PXA3xx SSP ports.
>>
>> Signed-off-by: Daniel Mack <zonque@gmail.com>
>> ---
>>  arch/arm/plat-pxa/ssp.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
>> index 3ea0290..1f5ee17 100644
>> --- a/arch/arm/plat-pxa/ssp.c
>> +++ b/arch/arm/plat-pxa/ssp.c
>> @@ -258,6 +258,7 @@ static const struct platform_device_id ssp_id_table[] = {
>>         { "pxa25x-ssp",         PXA25x_SSP },
>>         { "pxa25x-nssp",        PXA25x_NSSP },
>>         { "pxa27x-ssp",         PXA27x_SSP },
>> +       { "pxa3xx-ssp",         PXA3xx_SSP },
>>         { "pxa168-ssp",         PXA168_SSP },
>>         { "pxa910-ssp",         PXA910_SSP },
>>         { },
>> --

> I don't agree on this. SSP1,SSP2,SSP3 on pxa3xx are same with pxa27x.
> So we reuse the name.
> For the new SSP4, we create pxa3xx_device_ssp4.

Well, the problem is that the code in sound/soc/pxa/pxa-ssp.c is full of
checks like "ssp->type == PXA3xx_SSP", but unless the devices are
instantiated via DT, this value is never set appropriately, not even for
ssp4.

That's a regression caused by 972a55b62 ("ASoC: fix pxa-ssp compiling
issue under mach-mmp"), btw, that added the PXA3xx_SSP enum value but
forgot to make sure it is actually used.

Hence, this commit could even get a stable tag for 3.5+.


Thanks,
Daniel
Haojian Zhuang Aug. 15, 2014, 8:33 a.m. UTC | #3
On Thu, Aug 14, 2014 at 4:35 PM, Daniel Mack <zonque@gmail.com> wrote:
> Hi Haojian,
>
> On 08/14/2014 04:08 AM, Haojian Zhuang wrote:
>> On Thu, Aug 14, 2014 at 3:59 AM, Daniel Mack <zonque@gmail.com> wrote:
>>> Provide an explicit match string for PXA3xx SSP ports.
>>>
>>> Signed-off-by: Daniel Mack <zonque@gmail.com>
>>> ---
>>>  arch/arm/plat-pxa/ssp.c | 1 +
>>>  1 file changed, 1 insertion(+)
>>>
>>> diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
>>> index 3ea0290..1f5ee17 100644
>>> --- a/arch/arm/plat-pxa/ssp.c
>>> +++ b/arch/arm/plat-pxa/ssp.c
>>> @@ -258,6 +258,7 @@ static const struct platform_device_id ssp_id_table[] = {
>>>         { "pxa25x-ssp",         PXA25x_SSP },
>>>         { "pxa25x-nssp",        PXA25x_NSSP },
>>>         { "pxa27x-ssp",         PXA27x_SSP },
>>> +       { "pxa3xx-ssp",         PXA3xx_SSP },
>>>         { "pxa168-ssp",         PXA168_SSP },
>>>         { "pxa910-ssp",         PXA910_SSP },
>>>         { },
>>> --
>
>> I don't agree on this. SSP1,SSP2,SSP3 on pxa3xx are same with pxa27x.
>> So we reuse the name.
>> For the new SSP4, we create pxa3xx_device_ssp4.
>
> Well, the problem is that the code in sound/soc/pxa/pxa-ssp.c is full of
> checks like "ssp->type == PXA3xx_SSP", but unless the devices are
> instantiated via DT, this value is never set appropriately, not even for
> ssp4.
>
> That's a regression caused by 972a55b62 ("ASoC: fix pxa-ssp compiling
> issue under mach-mmp"), btw, that added the PXA3xx_SSP enum value but
> forgot to make sure it is actually used.
>
> Hence, this commit could even get a stable tag for 3.5+.
>
>
Yes, you're right. We should append this string.
Daniel Mack Aug. 15, 2014, 8:41 a.m. UTC | #4
On 08/15/2014 10:33 AM, Haojian Zhuang wrote:
> On Thu, Aug 14, 2014 at 4:35 PM, Daniel Mack <zonque@gmail.com> wrote:

>> That's a regression caused by 972a55b62 ("ASoC: fix pxa-ssp compiling
>> issue under mach-mmp"), btw, that added the PXA3xx_SSP enum value but
>> forgot to make sure it is actually used.
>>
>> Hence, this commit could even get a stable tag for 3.5+.
>>
>>
> Yes, you're right. We should append this string.

The stable@ tag you mean? Well, OTOH, it went unnoticed since 3.5, so we
can as well just apply it for 3.17 :)


Thanks,
Daniel
Daniel Mack Aug. 20, 2014, 8:32 a.m. UTC | #5
On 08/15/2014 10:33 AM, Haojian Zhuang wrote:
> On Thu, Aug 14, 2014 at 4:35 PM, Daniel Mack <zonque@gmail.com> wrote:
>> Hi Haojian,
>>
>> On 08/14/2014 04:08 AM, Haojian Zhuang wrote:
>>> On Thu, Aug 14, 2014 at 3:59 AM, Daniel Mack <zonque@gmail.com> wrote:
>>>> Provide an explicit match string for PXA3xx SSP ports.
>>>>
>>>> Signed-off-by: Daniel Mack <zonque@gmail.com>
>>>> ---
>>>>  arch/arm/plat-pxa/ssp.c | 1 +
>>>>  1 file changed, 1 insertion(+)
>>>>
>>>> diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
>>>> index 3ea0290..1f5ee17 100644
>>>> --- a/arch/arm/plat-pxa/ssp.c
>>>> +++ b/arch/arm/plat-pxa/ssp.c
>>>> @@ -258,6 +258,7 @@ static const struct platform_device_id ssp_id_table[] = {
>>>>         { "pxa25x-ssp",         PXA25x_SSP },
>>>>         { "pxa25x-nssp",        PXA25x_NSSP },
>>>>         { "pxa27x-ssp",         PXA27x_SSP },
>>>> +       { "pxa3xx-ssp",         PXA3xx_SSP },
>>>>         { "pxa168-ssp",         PXA168_SSP },
>>>>         { "pxa910-ssp",         PXA910_SSP },
>>>>         { },
>>>> --
>>
>>> I don't agree on this. SSP1,SSP2,SSP3 on pxa3xx are same with pxa27x.
>>> So we reuse the name.
>>> For the new SSP4, we create pxa3xx_device_ssp4.
>>
>> Well, the problem is that the code in sound/soc/pxa/pxa-ssp.c is full of
>> checks like "ssp->type == PXA3xx_SSP", but unless the devices are
>> instantiated via DT, this value is never set appropriately, not even for
>> ssp4.
>>
>> That's a regression caused by 972a55b62 ("ASoC: fix pxa-ssp compiling
>> issue under mach-mmp"), btw, that added the PXA3xx_SSP enum value but
>> forgot to make sure it is actually used.
>>
>> Hence, this commit could even get a stable tag for 3.5+.
>>
>>
> Yes, you're right. We should append this string.

Would this go through your tree or will Arnd or Eric pick those patches?


Thanks,
Daniel
Haojian Zhuang Aug. 25, 2014, 7:18 a.m. UTC | #6
On Wed, Aug 20, 2014 at 4:32 PM, Daniel Mack <zonque@gmail.com> wrote:
> On 08/15/2014 10:33 AM, Haojian Zhuang wrote:
>> On Thu, Aug 14, 2014 at 4:35 PM, Daniel Mack <zonque@gmail.com> wrote:
>>> Hi Haojian,
>>>
>>> On 08/14/2014 04:08 AM, Haojian Zhuang wrote:
>>>> On Thu, Aug 14, 2014 at 3:59 AM, Daniel Mack <zonque@gmail.com> wrote:
>>>>> Provide an explicit match string for PXA3xx SSP ports.
>>>>>
>>>>> Signed-off-by: Daniel Mack <zonque@gmail.com>
>>>>> ---
>>>>>  arch/arm/plat-pxa/ssp.c | 1 +
>>>>>  1 file changed, 1 insertion(+)
>>>>>
>>>>> diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
>>>>> index 3ea0290..1f5ee17 100644
>>>>> --- a/arch/arm/plat-pxa/ssp.c
>>>>> +++ b/arch/arm/plat-pxa/ssp.c
>>>>> @@ -258,6 +258,7 @@ static const struct platform_device_id ssp_id_table[] = {
>>>>>         { "pxa25x-ssp",         PXA25x_SSP },
>>>>>         { "pxa25x-nssp",        PXA25x_NSSP },
>>>>>         { "pxa27x-ssp",         PXA27x_SSP },
>>>>> +       { "pxa3xx-ssp",         PXA3xx_SSP },
>>>>>         { "pxa168-ssp",         PXA168_SSP },
>>>>>         { "pxa910-ssp",         PXA910_SSP },
>>>>>         { },
>>>>> --
>>>
>>>> I don't agree on this. SSP1,SSP2,SSP3 on pxa3xx are same with pxa27x.
>>>> So we reuse the name.
>>>> For the new SSP4, we create pxa3xx_device_ssp4.
>>>
>>> Well, the problem is that the code in sound/soc/pxa/pxa-ssp.c is full of
>>> checks like "ssp->type == PXA3xx_SSP", but unless the devices are
>>> instantiated via DT, this value is never set appropriately, not even for
>>> ssp4.
>>>
>>> That's a regression caused by 972a55b62 ("ASoC: fix pxa-ssp compiling
>>> issue under mach-mmp"), btw, that added the PXA3xx_SSP enum value but
>>> forgot to make sure it is actually used.
>>>
>>> Hence, this commit could even get a stable tag for 3.5+.
>>>
>>>
>> Yes, you're right. We should append this string.
>
> Would this go through your tree or will Arnd or Eric pick those patches?
>
>
> Thanks,
> Daniel

Sure, I'll send the pull request to Arnd.

Regards
Haojian
diff mbox

Patch

diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c
index 3ea0290..1f5ee17 100644
--- a/arch/arm/plat-pxa/ssp.c
+++ b/arch/arm/plat-pxa/ssp.c
@@ -258,6 +258,7 @@  static const struct platform_device_id ssp_id_table[] = {
 	{ "pxa25x-ssp",		PXA25x_SSP },
 	{ "pxa25x-nssp",	PXA25x_NSSP },
 	{ "pxa27x-ssp",		PXA27x_SSP },
+	{ "pxa3xx-ssp",		PXA3xx_SSP },
 	{ "pxa168-ssp",		PXA168_SSP },
 	{ "pxa910-ssp",		PXA910_SSP },
 	{ },