* [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
[not found] <1575600438-26795-1-git-send-email-skomatineni@nvidia.com>
@ 2019-12-06 2:47 ` Sowjanya Komatineni
2019-12-06 7:09 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Sowjanya Komatineni @ 2019-12-06 2:47 UTC (permalink / raw)
To: skomatineni; +Cc: stable
mclk is from clk_out_1 which is part of Tegra PMC block and pmc clocks
are moved to Tegra PMC driver with pmc as clock provider and using pmc
clock ids.
New device tree uses clk_out_1 from pmc clock provider.
So, this patch adds fallback to extern1 in case of retrieving mclk fails
to be backward compatible of new device tree with older kernels.
Cc: stable@vger.kernel.org
Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
---
sound/soc/tegra/tegra_asoc_utils.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/sound/soc/tegra/tegra_asoc_utils.c b/sound/soc/tegra/tegra_asoc_utils.c
index 8e3a3740df7c..f7408d5240c0 100644
--- a/sound/soc/tegra/tegra_asoc_utils.c
+++ b/sound/soc/tegra/tegra_asoc_utils.c
@@ -211,8 +211,14 @@ int tegra_asoc_utils_init(struct tegra_asoc_utils_data *data,
data->clk_cdev1 = clk_get(dev, "mclk");
if (IS_ERR(data->clk_cdev1)) {
dev_err(data->dev, "Can't retrieve clk cdev1\n");
- ret = PTR_ERR(data->clk_cdev1);
- goto err_put_pll_a_out0;
+ data->clk_cdev1 = clk_get_sys("clk_out_1", "extern1");
+ if (IS_ERR(data->clk_cdev1)) {
+ dev_err(data->dev, "Can't retrieve clk extern1\n");
+ ret = PTR_ERR(data->clk_cdev1);
+ goto err_put_pll_a_out0;
+ }
+
+ dev_err(data->dev, "Falling back to extern1\n");
}
/*
--
2.7.4
^ permalink raw reply related [flat|nested] 7+ messages in thread
* Re: [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
2019-12-06 2:47 ` [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk Sowjanya Komatineni
@ 2019-12-06 7:09 ` Greg KH
2019-12-06 16:19 ` Sowjanya Komatineni
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2019-12-06 7:09 UTC (permalink / raw)
To: Sowjanya Komatineni; +Cc: stable
On Thu, Dec 05, 2019 at 06:47:12PM -0800, Sowjanya Komatineni wrote:
> mclk is from clk_out_1 which is part of Tegra PMC block and pmc clocks
> are moved to Tegra PMC driver with pmc as clock provider and using pmc
> clock ids.
>
> New device tree uses clk_out_1 from pmc clock provider.
>
> So, this patch adds fallback to extern1 in case of retrieving mclk fails
> to be backward compatible of new device tree with older kernels.
>
> Cc: stable@vger.kernel.org
>
> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
> ---
> sound/soc/tegra/tegra_asoc_utils.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.
</formletter>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
2019-12-06 7:09 ` Greg KH
@ 2019-12-06 16:19 ` Sowjanya Komatineni
2019-12-06 16:29 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Sowjanya Komatineni @ 2019-12-06 16:19 UTC (permalink / raw)
To: Greg KH; +Cc: stable
On 12/5/19 11:09 PM, Greg KH wrote:
> On Thu, Dec 05, 2019 at 06:47:12PM -0800, Sowjanya Komatineni wrote:
>> mclk is from clk_out_1 which is part of Tegra PMC block and pmc clocks
>> are moved to Tegra PMC driver with pmc as clock provider and using pmc
>> clock ids.
>>
>> New device tree uses clk_out_1 from pmc clock provider.
>>
>> So, this patch adds fallback to extern1 in case of retrieving mclk fails
>> to be backward compatible of new device tree with older kernels.
>>
>> Cc: stable@vger.kernel.org
>>
>> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
>> ---
>> sound/soc/tegra/tegra_asoc_utils.c | 10 ++++++++--
>> 1 file changed, 8 insertions(+), 2 deletions(-)
> <formletter>
>
> This is not the correct way to submit patches for inclusion in the
> stable kernel tree. Please read:
> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> for how to do this properly.
>
> </formletter>
Hi Greg,
link says to option-1 is strongly preferred for for all patches except
for submissions that are not in net/ and security related.
Option-1 is to add Cc: stable@vger.kernel.org in sign-off area and I
followed this.
Please help if I miss understood your feedback.
Thanks
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
2019-12-06 16:19 ` Sowjanya Komatineni
@ 2019-12-06 16:29 ` Greg KH
2019-12-06 17:11 ` Sowjanya Komatineni
0 siblings, 1 reply; 7+ messages in thread
From: Greg KH @ 2019-12-06 16:29 UTC (permalink / raw)
To: Sowjanya Komatineni; +Cc: stable
On Fri, Dec 06, 2019 at 08:19:26AM -0800, Sowjanya Komatineni wrote:
>
> On 12/5/19 11:09 PM, Greg KH wrote:
> > On Thu, Dec 05, 2019 at 06:47:12PM -0800, Sowjanya Komatineni wrote:
> > > mclk is from clk_out_1 which is part of Tegra PMC block and pmc clocks
> > > are moved to Tegra PMC driver with pmc as clock provider and using pmc
> > > clock ids.
> > >
> > > New device tree uses clk_out_1 from pmc clock provider.
> > >
> > > So, this patch adds fallback to extern1 in case of retrieving mclk fails
> > > to be backward compatible of new device tree with older kernels.
> > >
> > > Cc: stable@vger.kernel.org
> > >
> > > Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
> > > ---
> > > sound/soc/tegra/tegra_asoc_utils.c | 10 ++++++++--
> > > 1 file changed, 8 insertions(+), 2 deletions(-)
> > <formletter>
> >
> > This is not the correct way to submit patches for inclusion in the
> > stable kernel tree. Please read:
> > https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
> > for how to do this properly.
> >
> > </formletter>
>
> Hi Greg,
>
> link says to option-1 is strongly preferred for for all patches except for
> submissions that are not in net/ and security related.
>
> Option-1 is to add Cc: stable@vger.kernel.org in sign-off area and I
> followed this.
That's fine, but then why did you just email a patch to yourself and the
list? Shouldn't you also submit the patch upstream to get it properly
merged first?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
2019-12-06 16:29 ` Greg KH
@ 2019-12-06 17:11 ` Sowjanya Komatineni
2019-12-06 17:15 ` Sowjanya Komatineni
0 siblings, 1 reply; 7+ messages in thread
From: Sowjanya Komatineni @ 2019-12-06 17:11 UTC (permalink / raw)
To: Greg KH; +Cc: stable
On 12/6/19 8:29 AM, Greg KH wrote:
> On Fri, Dec 06, 2019 at 08:19:26AM -0800, Sowjanya Komatineni wrote:
>> On 12/5/19 11:09 PM, Greg KH wrote:
>>> On Thu, Dec 05, 2019 at 06:47:12PM -0800, Sowjanya Komatineni wrote:
>>>> mclk is from clk_out_1 which is part of Tegra PMC block and pmc clocks
>>>> are moved to Tegra PMC driver with pmc as clock provider and using pmc
>>>> clock ids.
>>>>
>>>> New device tree uses clk_out_1 from pmc clock provider.
>>>>
>>>> So, this patch adds fallback to extern1 in case of retrieving mclk fails
>>>> to be backward compatible of new device tree with older kernels.
>>>>
>>>> Cc: stable@vger.kernel.org
>>>>
>>>> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
>>>> ---
>>>> sound/soc/tegra/tegra_asoc_utils.c | 10 ++++++++--
>>>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>> <formletter>
>>>
>>> This is not the correct way to submit patches for inclusion in the
>>> stable kernel tree. Please read:
>>> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
>>> for how to do this properly.
>>>
>>> </formletter>
>> Hi Greg,
>>
>> link says to option-1 is strongly preferred for for all patches except for
>> submissions that are not in net/ and security related.
>>
>> Option-1 is to add Cc: stable@vger.kernel.org in sign-off area and I
>> followed this.
> That's fine, but then why did you just email a patch to yourself and the
> list? Shouldn't you also submit the patch upstream to get it properly
> merged first?
>
> thanks,
>
> greg k-h
I set patches to the mailing list as per get_maintainers script.
Do I need to add any other alias to get patch applied for stable kernel
other than cc tag?
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
2019-12-06 17:11 ` Sowjanya Komatineni
@ 2019-12-06 17:15 ` Sowjanya Komatineni
2019-12-06 17:55 ` Greg KH
0 siblings, 1 reply; 7+ messages in thread
From: Sowjanya Komatineni @ 2019-12-06 17:15 UTC (permalink / raw)
To: Greg KH; +Cc: stable
On 12/6/19 9:11 AM, Sowjanya Komatineni wrote:
>
> On 12/6/19 8:29 AM, Greg KH wrote:
>> On Fri, Dec 06, 2019 at 08:19:26AM -0800, Sowjanya Komatineni wrote:
>>> On 12/5/19 11:09 PM, Greg KH wrote:
>>>> On Thu, Dec 05, 2019 at 06:47:12PM -0800, Sowjanya Komatineni wrote:
>>>>> mclk is from clk_out_1 which is part of Tegra PMC block and pmc
>>>>> clocks
>>>>> are moved to Tegra PMC driver with pmc as clock provider and using
>>>>> pmc
>>>>> clock ids.
>>>>>
>>>>> New device tree uses clk_out_1 from pmc clock provider.
>>>>>
>>>>> So, this patch adds fallback to extern1 in case of retrieving mclk
>>>>> fails
>>>>> to be backward compatible of new device tree with older kernels.
>>>>>
>>>>> Cc: stable@vger.kernel.org
>>>>>
>>>>> Signed-off-by: Sowjanya Komatineni <skomatineni@nvidia.com>
>>>>> ---
>>>>> sound/soc/tegra/tegra_asoc_utils.c | 10 ++++++++--
>>>>> 1 file changed, 8 insertions(+), 2 deletions(-)
>>>> <formletter>
>>>>
>>>> This is not the correct way to submit patches for inclusion in the
>>>> stable kernel tree. Please read:
>>>> https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
>>>>
>>>> for how to do this properly.
>>>>
>>>> </formletter>
>>> Hi Greg,
>>>
>>> link says to option-1 is strongly preferred for for all patches
>>> except for
>>> submissions that are not in net/ and security related.
>>>
>>> Option-1 is to add Cc: stable@vger.kernel.org in sign-off area and I
>>> followed this.
>> That's fine, but then why did you just email a patch to yourself and the
>> list? Shouldn't you also submit the patch upstream to get it properly
>> merged first?
>>
>> thanks,
>>
>> greg k-h
>
> I set patches to the mailing list as per get_maintainers script.
>
> Do I need to add any other alias to get patch applied for stable
> kernel other than cc tag?
>
Does this patch need to be sent separate to upstream (not part of this
series) with cc stable tag?
-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information. Any unauthorized review, use, disclosure or distribution
is prohibited. If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk
2019-12-06 17:15 ` Sowjanya Komatineni
@ 2019-12-06 17:55 ` Greg KH
0 siblings, 0 replies; 7+ messages in thread
From: Greg KH @ 2019-12-06 17:55 UTC (permalink / raw)
To: Sowjanya Komatineni; +Cc: stable
On Fri, Dec 06, 2019 at 09:15:20AM -0800, Sowjanya Komatineni wrote:
> -----------------------------------------------------------------------------------
> This email message is for the sole use of the intended recipient(s) and may contain
> confidential information. Any unauthorized review, use, disclosure or distribution
> is prohibited. If you are not the intended recipient, please contact the sender by
> reply email and destroy all copies of the original message.
> -----------------------------------------------------------------------------------
Now deleted, this is not compatible with public mailing lists, sorry.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-12-06 17:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1575600438-26795-1-git-send-email-skomatineni@nvidia.com>
2019-12-06 2:47 ` [PATCH v3 09/15] ASoC: tegra: Add fallback for audio mclk Sowjanya Komatineni
2019-12-06 7:09 ` Greg KH
2019-12-06 16:19 ` Sowjanya Komatineni
2019-12-06 16:29 ` Greg KH
2019-12-06 17:11 ` Sowjanya Komatineni
2019-12-06 17:15 ` Sowjanya Komatineni
2019-12-06 17:55 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).