From: Michael Walle <hidden> Date: 2019-11-28 22:38:25
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.
Signed-off-by: Michael Walle <redacted>
---
sound/soc/fsl/fsl_sai.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
On Thu, Nov 28, 2019 at 11:38:02PM +0100, Michael Walle wrote:
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.
Signed-off-by: Michael Walle <redacted>
From: Daniel Baluta <hidden> Date: 2019-12-05 08:44:02
On Fri, Nov 29, 2019 at 12:40 AM Michael Walle [off-list ref] wrote:
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.
Hi Michael,
Thanks for the patch. We have a similar change inside our internal tree
(it is on my long TODO list to upstream :D).
We add the shared flag conditionally on a dts property.
Do you think it is a good idea to always add shared flag? I'm thinking
on SAI IP integrations where the interrupt is edge triggered.
AFAIK edge triggered interrupts do not get along very well
with sharing an interrupt line.
From: Michael Walle <hidden> Date: 2019-12-05 09:18:20
Hi Daniel,
Am 2019-12-05 09:43, schrieb Daniel Baluta:
On Fri, Nov 29, 2019 at 12:40 AM Michael Walle [off-list ref]
wrote:
quoted
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.
Hi Michael,
Thanks for the patch. We have a similar change inside our internal tree
(it is on my long TODO list to upstream :D).
We add the shared flag conditionally on a dts property.
Do you think it is a good idea to always add shared flag? I'm thinking
on SAI IP integrations where the interrupt is edge triggered.
Mhh, I don't really get the point to make the flag conditionally. If
there is only one user, the flag won't hurt, correct?
If there are two users, we need the flag anyway.
AFAIK edge triggered interrupts do not get along very well
with sharing an interrupt line.
So in that case you shouldn't use shared edge triggered interrupts in
the
SoC in the first place, I guess.
-michael
From: Daniel Baluta <hidden> Date: 2019-12-05 09:45:48
On Thu, Dec 5, 2019 at 11:18 AM Michael Walle [off-list ref] wrote:
Hi Daniel,
Am 2019-12-05 09:43, schrieb Daniel Baluta:
quoted
On Fri, Nov 29, 2019 at 12:40 AM Michael Walle [off-list ref]
wrote:
quoted
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.
Hi Michael,
Thanks for the patch. We have a similar change inside our internal tree
(it is on my long TODO list to upstream :D).
We add the shared flag conditionally on a dts property.
Do you think it is a good idea to always add shared flag? I'm thinking
on SAI IP integrations where the interrupt is edge triggered.
Mhh, I don't really get the point to make the flag conditionally. If
there is only one user, the flag won't hurt, correct?
If there are two users, we need the flag anyway.
quoted
AFAIK edge triggered interrupts do not get along very well
with sharing an interrupt line.
So in that case you shouldn't use shared edge triggered interrupts in
the
SoC in the first place, I guess.
I think you make a good point. I was thinking that it would hurt the single
user case. But it is fine.
Thanks for the patch.
Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
From: Mark Brown <broonie@kernel.org> Date: 2019-12-09 18:59:30
The patch
ASoC: fsl_sai: add IRQF_SHARED
has been applied to the asoc tree at
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-5.6
All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying
to this mail.
Thanks,
Mark
From 2eb2d314a80eb8bb1a6faf2a74321d4497e1687d Mon Sep 17 00:00:00 2001
From: Michael Walle <redacted>
Date: Thu, 28 Nov 2019 23:38:02 +0100
Subject: [PATCH] ASoC: fsl_sai: add IRQF_SHARED
The LS1028A SoC uses the same interrupt line for adjacent SAIs. Use
IRQF_SHARED to be able to use these SAIs simultaneously.
Signed-off-by: Michael Walle <redacted>
Reviewed-by: Fabio Estevam <festevam@gmail.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Acked-by: Daniel Baluta <daniel.baluta@nxp.com>
Link: https://lore.kernel.org/r/20191128223802.18228-1-michael@walle.cc
Signed-off-by: Mark Brown <broonie@kernel.org>
---
sound/soc/fsl/fsl_sai.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)