Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1196081 > unrolled thread
| Started by | "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> |
|---|---|
| First post | 2015-07-30 16:40 +0200 |
| Last post | 2015-08-04 11:10 +0200 |
| Articles | 7 — 3 participants |
Back to article view | Back to linux.kernel
[PATCH 6/6] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2015-07-30 16:40 +0200
Re: [PATCH 6/6] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2015-07-31 17:20 +0200
Re: [PATCH 6/6] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode Markus Pargmann <mpa@pengutronix.de> - 2015-08-02 21:00 +0200
[PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2015-08-03 00:50 +0200
Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode Mark Brown <broonie@kernel.org> - 2015-08-03 18:30 +0200
Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> - 2015-08-04 00:50 +0200
Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode Mark Brown <broonie@kernel.org> - 2015-08-04 11:10 +0200
| From | "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> |
|---|---|
| Date | 2015-07-30 16:40 +0200 |
| Subject | [PATCH 6/6] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode |
| Message-ID | <pRXa1-19k-9@gated-at.bofh.it> |
Adjust set DAI format function in fsl_ssi driver so it
doesn't fail and clears RXDIR in AC'97 mode.
Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
---
sound/soc/fsl/fsl_ssi.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 8e5ff5e..37aabe3 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -900,14 +900,16 @@ static int _fsl_ssi_set_dai_fmt(struct device *dev,
scr &= ~CCSR_SSI_SCR_SYS_CLK_EN;
break;
default:
- return -EINVAL;
+ if (!fsl_ssi_is_ac97(ssi_private))
+ return -EINVAL;
}
stcr |= strcr;
srcr |= strcr;
- if (ssi_private->cpu_dai_drv.symmetric_rates) {
- /* Need to clear RXDIR when using SYNC mode */
+ if (ssi_private->cpu_dai_drv.symmetric_rates
+ || fsl_ssi_is_ac97(ssi_private)) {
+ /* Need to clear RXDIR when using SYNC or AC97 mode */
srcr &= ~CCSR_SSI_SRCR_RXDIR;
scr |= CCSR_SSI_SCR_SYN;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> |
|---|---|
| Date | 2015-07-31 17:20 +0200 |
| Message-ID | <pSkgh-19Y-13@gated-at.bofh.it> |
| In reply to | #1196081 |
On 31.07.2015 07:58, Markus Pargmann wrote:
> On Thu, Jul 30, 2015 at 04:35:58PM +0200, Maciej S. Szmigiero wrote:
>> Adjust set DAI format function in fsl_ssi driver so it
>> doesn't fail and clears RXDIR in AC'97 mode.
>>
>> Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
>> ---
>> sound/soc/fsl/fsl_ssi.c | 8 +++++---
>> 1 files changed, 5 insertions(+), 3 deletions(-)
>>
>> diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
>> index 8e5ff5e..37aabe3 100644
>> --- a/sound/soc/fsl/fsl_ssi.c
>> +++ b/sound/soc/fsl/fsl_ssi.c
>> @@ -900,14 +900,16 @@ static int _fsl_ssi_set_dai_fmt(struct device *dev,
>> scr &= ~CCSR_SSI_SCR_SYS_CLK_EN;
>> break;
>> default:
>> - return -EINVAL;
>> + if (!fsl_ssi_is_ac97(ssi_private))
>> + return -EINVAL;
>
> I think it would be better to add another case for the other mode which
> is supported (AC97) instead of using the default case.
This is a switch of DAI clock masters and AC'97 is none of them:
while "case 0:" can be added this would be very similar to the current code.
Alternatively, the whole switch statement could be wrapped inside
"if (!fsl_ssi_is_ac97(ssi_private))" if that would be better
with regards to code style.
>> }
>>
>> stcr |= strcr;
>> srcr |= strcr;
>>
>> - if (ssi_private->cpu_dai_drv.symmetric_rates) {
>> - /* Need to clear RXDIR when using SYNC mode */
>> + if (ssi_private->cpu_dai_drv.symmetric_rates
>> + || fsl_ssi_is_ac97(ssi_private)) {
>
> Please fix this indention. Most of the driver is written with 2 tab
> indention after a line break and the new policy seems to be to indent on
> the opening bracket.
Will reindent this.
>
> Regards,
>
> Markus
Best regards,
Maciej Szmigiero
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Markus Pargmann <mpa@pengutronix.de> |
|---|---|
| Date | 2015-08-02 21:00 +0200 |
| Message-ID | <pT6Eh-49c-3@gated-at.bofh.it> |
| In reply to | #1197095 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Jul 31, 2015 at 05:13:06PM +0200, Maciej S. Szmigiero wrote:
> On 31.07.2015 07:58, Markus Pargmann wrote:
> > On Thu, Jul 30, 2015 at 04:35:58PM +0200, Maciej S. Szmigiero wrote:
> >> Adjust set DAI format function in fsl_ssi driver so it
> >> doesn't fail and clears RXDIR in AC'97 mode.
> >>
> >> Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
> >> ---
> >> sound/soc/fsl/fsl_ssi.c | 8 +++++---
> >> 1 files changed, 5 insertions(+), 3 deletions(-)
> >>
> >> diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
> >> index 8e5ff5e..37aabe3 100644
> >> --- a/sound/soc/fsl/fsl_ssi.c
> >> +++ b/sound/soc/fsl/fsl_ssi.c
> >> @@ -900,14 +900,16 @@ static int _fsl_ssi_set_dai_fmt(struct device *dev,
> >> scr &= ~CCSR_SSI_SCR_SYS_CLK_EN;
> >> break;
> >> default:
> >> - return -EINVAL;
> >> + if (!fsl_ssi_is_ac97(ssi_private))
> >> + return -EINVAL;
> >
> > I think it would be better to add another case for the other mode which
> > is supported (AC97) instead of using the default case.
>
> This is a switch of DAI clock masters and AC'97 is none of them:
> while "case 0:" can be added this would be very similar to the current code.
>
> Alternatively, the whole switch statement could be wrapped inside
> "if (!fsl_ssi_is_ac97(ssi_private))" if that would be better
> with regards to code style.
I looked at the wrong switch/case the DAIFMT_AC97 is actually used
but this patch is about the master clocks. It's fine then.
Thanks,
Markus
>
> >> }
> >>
> >> stcr |= strcr;
> >> srcr |= strcr;
> >>
> >> - if (ssi_private->cpu_dai_drv.symmetric_rates) {
> >> - /* Need to clear RXDIR when using SYNC mode */
> >> + if (ssi_private->cpu_dai_drv.symmetric_rates
> >> + || fsl_ssi_is_ac97(ssi_private)) {
> >
> > Please fix this indention. Most of the driver is written with 2 tab
> > indention after a line break and the new policy seems to be to indent on
> > the opening bracket.
>
> Will reindent this.
>
> >
> > Regards,
> >
> > Markus
>
> Best regards,
> Maciej Szmigiero
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[toc] | [prev] | [next] | [standalone]
| From | "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> |
|---|---|
| Date | 2015-08-03 00:50 +0200 |
| Subject | [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode |
| Message-ID | <pTaeS-Ud-9@gated-at.bofh.it> |
| In reply to | #1198279 |
Adjust set DAI format function in fsl_ssi driver
so it doesn't fail and clears RXDIR in AC'97 mode.
Changes from v1: fix indentation to be consistent with rest
of the driver.
Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name>
---
sound/soc/fsl/fsl_ssi.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c
index 8e5ff5e..1ba63bd 100644
--- a/sound/soc/fsl/fsl_ssi.c
+++ b/sound/soc/fsl/fsl_ssi.c
@@ -900,14 +900,16 @@ static int _fsl_ssi_set_dai_fmt(struct device *dev,
scr &= ~CCSR_SSI_SCR_SYS_CLK_EN;
break;
default:
- return -EINVAL;
+ if (!fsl_ssi_is_ac97(ssi_private))
+ return -EINVAL;
}
stcr |= strcr;
srcr |= strcr;
- if (ssi_private->cpu_dai_drv.symmetric_rates) {
- /* Need to clear RXDIR when using SYNC mode */
+ if (ssi_private->cpu_dai_drv.symmetric_rates
+ || fsl_ssi_is_ac97(ssi_private)) {
+ /* Need to clear RXDIR when using SYNC or AC97 mode */
srcr &= ~CCSR_SSI_SRCR_RXDIR;
scr |= CCSR_SSI_SCR_SYN;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2015-08-03 18:30 +0200 |
| Subject | Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode |
| Message-ID | <pTqMH-8nK-25@gated-at.bofh.it> |
| In reply to | #1198462 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Aug 03, 2015 at 12:44:11AM +0200, Maciej S. Szmigiero wrote: > Adjust set DAI format function in fsl_ssi driver > so it doesn't fail and clears RXDIR in AC'97 mode. > > Changes from v1: fix indentation to be consistent with rest > of the driver. Inter version changelogs go after the --- as covered in SubmittingPatches. > > Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name> Please don't bury new patches in reply to old submissions, especially not individual patches - it makes it hard to work out what's going on and make sure that the most current version of everything is being applied. In order to avoid confusion I'm not going to look at these, please resubmit as a new thread. Please also try to thread your patch series together (git send-email can do this for you) - it also helps people keep track of things.
[toc] | [prev] | [next] | [standalone]
| From | "Maciej S. Szmigiero" <mail@maciej.szmigiero.name> |
|---|---|
| Date | 2015-08-04 00:50 +0200 |
| Subject | Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode |
| Message-ID | <pTwIq-8j-15@gated-at.bofh.it> |
| In reply to | #1199019 |
On 03.08.2015 18:21, Mark Brown wrote: > On Mon, Aug 03, 2015 at 12:44:11AM +0200, Maciej S. Szmigiero wrote: >> Adjust set DAI format function in fsl_ssi driver >> so it doesn't fail and clears RXDIR in AC'97 mode. >> >> Changes from v1: fix indentation to be consistent with rest >> of the driver. > > Inter version changelogs go after the --- as covered in > SubmittingPatches. > >> >> Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name> > > Please don't bury new patches in reply to old submissions, especially > not individual patches - it makes it hard to work out what's going on > and make sure that the most current version of everything is being > applied. In order to avoid confusion I'm not going to look at these, > please resubmit as a new thread. > > Please also try to thread your patch series together (git send-email can > do this for you) - it also helps people keep track of things. Thanks for information. In cases like this where only one patch of six patch series is updated should other ones be resubmitted as well to keep the full patch series together? Best regards, Maciej Szmigiero -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2015-08-04 11:10 +0200 |
| Subject | Re: [PATCH 6/6 v2] ASoC: fsl_ssi: adjust set DAI format in AC'97 mode |
| Message-ID | <pTGop-60Z-11@gated-at.bofh.it> |
| In reply to | #1199307 |
[Multipart message — attachments visible in raw view] — view raw
On Tue, Aug 04, 2015 at 12:42:48AM +0200, Maciej S. Szmigiero wrote: > In cases like this where only one patch of six patch series is updated > should other ones be resubmitted as well to keep the full patch series > together? Yes, any unapplied patches should be resubmitted.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web