linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default
@ 2020-04-22  4:15 Samuel Holland
  2020-04-22  9:14 ` [linux-sunxi] " Clément Péron
  2020-04-22 15:16 ` Maxime Ripard
  0 siblings, 2 replies; 6+ messages in thread
From: Samuel Holland @ 2020-04-22  4:15 UTC (permalink / raw)
  To: Maxime Ripard, Chen-Yu Tsai
  Cc: Rob Herring, devicetree, linux-arm-kernel, linux-kernel,
	linux-sunxi, Samuel Holland

As of v5.7-rc2, Linux now prints the following message at boot:

  [   33.848525] platform sound_spdif: deferred probe pending

This is because &sound_spdif is waiting on its DAI link component
&spdif to probe, but &spdif is disabled in the DTS. Disable the
audio card as well to match.

Signed-off-by: Samuel Holland <samuel@sholland.org>
---
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
index 6f8c30d89b9b..6c233ff031c6 100644
--- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
+++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
@@ -169,6 +169,7 @@ link0_codec: codec {
 	sound_spdif {
 		compatible = "simple-audio-card";
 		simple-audio-card,name = "On-board SPDIF";
+		status = "disabled";
 
 		simple-audio-card,cpu {
 			sound-dai = <&spdif>;
-- 
2.24.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [linux-sunxi] [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default
  2020-04-22  4:15 [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default Samuel Holland
@ 2020-04-22  9:14 ` Clément Péron
  2020-04-22 15:16 ` Maxime Ripard
  1 sibling, 0 replies; 6+ messages in thread
From: Clément Péron @ 2020-04-22  9:14 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Maxime Ripard, Chen-Yu Tsai, Rob Herring, devicetree,
	linux-arm-kernel, linux-kernel, linux-sunxi

Hi Samuel,

On Wed, 22 Apr 2020 at 06:11, Samuel Holland <samuel@sholland.org> wrote:
>
> As of v5.7-rc2, Linux now prints the following message at boot:
>
>   [   33.848525] platform sound_spdif: deferred probe pending
>
> This is because &sound_spdif is waiting on its DAI link component
> &spdif to probe, but &spdif is disabled in the DTS. Disable the
> audio card as well to match.
>
> Signed-off-by: Samuel Holland <samuel@sholland.org>
> ---
>  arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> index 6f8c30d89b9b..6c233ff031c6 100644
> --- a/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> +++ b/arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi
> @@ -169,6 +169,7 @@ link0_codec: codec {
>         sound_spdif {
>                 compatible = "simple-audio-card";
>                 simple-audio-card,name = "On-board SPDIF";
> +               status = "disabled";
>
>                 simple-audio-card,cpu {
>                         sound-dai = <&spdif>;

This "On-board SPDIF" node is board specific and should be moved to
each board instead of be disabled here.

Maybe drop the node, and people who need it whould reintroduce it properly?

Regards,
Clement


> --
> 2.24.1
>
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/20200422041502.7497-1-samuel%40sholland.org.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default
  2020-04-22  4:15 [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default Samuel Holland
  2020-04-22  9:14 ` [linux-sunxi] " Clément Péron
@ 2020-04-22 15:16 ` Maxime Ripard
  2020-04-22 23:50   ` Samuel Holland
  1 sibling, 1 reply; 6+ messages in thread
From: Maxime Ripard @ 2020-04-22 15:16 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Chen-Yu Tsai, Rob Herring, devicetree, linux-arm-kernel,
	linux-kernel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

Hi,

On Tue, Apr 21, 2020 at 11:15:02PM -0500, Samuel Holland wrote:
> As of v5.7-rc2, Linux now prints the following message at boot:
> 
>   [   33.848525] platform sound_spdif: deferred probe pending
> 
> This is because &sound_spdif is waiting on its DAI link component
> &spdif to probe, but &spdif is disabled in the DTS. Disable the
> audio card as well to match.
> 
> Signed-off-by: Samuel Holland <samuel@sholland.org>

The patch looks good, but don't we have some boards with SPDIF enabled that
should be modified accordingly?

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default
  2020-04-22 15:16 ` Maxime Ripard
@ 2020-04-22 23:50   ` Samuel Holland
  2020-04-23  7:35     ` [linux-sunxi] " Clément Péron
  2020-04-23  9:49     ` Maxime Ripard
  0 siblings, 2 replies; 6+ messages in thread
From: Samuel Holland @ 2020-04-22 23:50 UTC (permalink / raw)
  To: Maxime Ripard
  Cc: Chen-Yu Tsai, Rob Herring, devicetree, linux-arm-kernel,
	linux-kernel, linux-sunxi

Maxime,

On 4/22/20 10:16 AM, Maxime Ripard wrote:
> On Tue, Apr 21, 2020 at 11:15:02PM -0500, Samuel Holland wrote:
>> As of v5.7-rc2, Linux now prints the following message at boot:
>>
>>   [   33.848525] platform sound_spdif: deferred probe pending
>>
>> This is because &sound_spdif is waiting on its DAI link component
>> &spdif to probe, but &spdif is disabled in the DTS. Disable the
>> audio card as well to match.
>>
>> Signed-off-by: Samuel Holland <samuel@sholland.org>
> 
> The patch looks good, but don't we have some boards with SPDIF enabled that
> should be modified accordingly?

I don't see any in-tree. The only A64 DTS that references &spdif at all is
sun50i-a64-pine64.dts, which explicitly disables it:

	/* On Euler connector */
	&spdif {
  		status = "disabled";
	};

I'm leaning toward agreeing with Clement that the sound_spdif node (and also
spdif_out) should be removed altogether from the A64 DTSI.

Regards,
Samuel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [linux-sunxi] Re: [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default
  2020-04-22 23:50   ` Samuel Holland
@ 2020-04-23  7:35     ` Clément Péron
  2020-04-23  9:49     ` Maxime Ripard
  1 sibling, 0 replies; 6+ messages in thread
From: Clément Péron @ 2020-04-23  7:35 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Maxime Ripard, Chen-Yu Tsai, Marcus Cooper, Rob Herring,
	devicetree, linux-arm-kernel, linux-kernel, linux-sunxi

Hi Samuel, Maxime,

On Thu, 23 Apr 2020 at 01:50, Samuel Holland <samuel@sholland.org> wrote:
>
> Maxime,
>
> On 4/22/20 10:16 AM, Maxime Ripard wrote:
> > On Tue, Apr 21, 2020 at 11:15:02PM -0500, Samuel Holland wrote:
> >> As of v5.7-rc2, Linux now prints the following message at boot:
> >>
> >>   [   33.848525] platform sound_spdif: deferred probe pending
> >>
> >> This is because &sound_spdif is waiting on its DAI link component
> >> &spdif to probe, but &spdif is disabled in the DTS. Disable the
> >> audio card as well to match.
> >>
> >> Signed-off-by: Samuel Holland <samuel@sholland.org>
> >
> > The patch looks good, but don't we have some boards with SPDIF enabled that
> > should be modified accordingly?
>
> I don't see any in-tree. The only A64 DTS that references &spdif at all is
> sun50i-a64-pine64.dts, which explicitly disables it:

This has been introduced by Marcus Cooper for the Pine64 audio extension.
https://store.pine64.org/?product=pine64-stereo-audio-dac-pot-board

So this should be moved to an overlay no?

Regards,
Clement

>
>         /* On Euler connector */
>         &spdif {
>                 status = "disabled";
>         };
>
> I'm leaning toward agreeing with Clement that the sound_spdif node (and also
> spdif_out) should be removed altogether from the A64 DTSI.
>
> Regards,
> Samuel
>
> --
> You received this message because you are subscribed to the Google Groups "linux-sunxi" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to linux-sunxi+unsubscribe@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/linux-sunxi/b554ea70-16da-1637-d349-db51dddcf95b%40sholland.org.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default
  2020-04-22 23:50   ` Samuel Holland
  2020-04-23  7:35     ` [linux-sunxi] " Clément Péron
@ 2020-04-23  9:49     ` Maxime Ripard
  1 sibling, 0 replies; 6+ messages in thread
From: Maxime Ripard @ 2020-04-23  9:49 UTC (permalink / raw)
  To: Samuel Holland
  Cc: Chen-Yu Tsai, Rob Herring, devicetree, linux-arm-kernel,
	linux-kernel, linux-sunxi

[-- Attachment #1: Type: text/plain, Size: 1265 bytes --]

On Wed, Apr 22, 2020 at 06:50:54PM -0500, Samuel Holland wrote:
> Maxime,
> 
> On 4/22/20 10:16 AM, Maxime Ripard wrote:
> > On Tue, Apr 21, 2020 at 11:15:02PM -0500, Samuel Holland wrote:
> >> As of v5.7-rc2, Linux now prints the following message at boot:
> >>
> >>   [   33.848525] platform sound_spdif: deferred probe pending
> >>
> >> This is because &sound_spdif is waiting on its DAI link component
> >> &spdif to probe, but &spdif is disabled in the DTS. Disable the
> >> audio card as well to match.
> >>
> >> Signed-off-by: Samuel Holland <samuel@sholland.org>
> > 
> > The patch looks good, but don't we have some boards with SPDIF enabled that
> > should be modified accordingly?
> 
> I don't see any in-tree. The only A64 DTS that references &spdif at all is
> sun50i-a64-pine64.dts, which explicitly disables it:
> 
> 	/* On Euler connector */
> 	&spdif {
>   		status = "disabled";
> 	};
> 
> I'm leaning toward agreeing with Clement that the sound_spdif node (and also
> spdif_out) should be removed altogether from the A64 DTSI.

Yeah, I agree, it's pretty much what we've been doing in other SoCs. Especially
if we don't have any DT in-tree using it, we don't really have any incentive to
make it common.

Maxime

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-04-23  9:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-22  4:15 [PATCH] arm64: dts: allwinner: a64: Disable SPDIF by default Samuel Holland
2020-04-22  9:14 ` [linux-sunxi] " Clément Péron
2020-04-22 15:16 ` Maxime Ripard
2020-04-22 23:50   ` Samuel Holland
2020-04-23  7:35     ` [linux-sunxi] " Clément Péron
2020-04-23  9:49     ` Maxime Ripard

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).