linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ASoC: About graph node issue without 'reg' property
@ 2018-12-13 10:39 Kunihiko Hayashi
  2018-12-13 16:24 ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Kunihiko Hayashi @ 2018-12-13 10:39 UTC (permalink / raw)
  To: Kuninori Morimoto, Mark Brown
  Cc: Liam Girdwood, alsa-devel, linux-kernel, Masahiro Yamada,
	Masami Hiramatsu

Hello Morimoto-san, Mark,

I found that your commit b6f3fc005a2c ("ASoC: simple-card-utils:
fixup asoc_simple_card_get_dai_id() counting") replaced with
of_graph_parse_endpoint(), that needs 'reg' property in each port
that has an endpoint.

Currently devicetrees for UniPhier SoCs have also audio graph nodes [1],
and these graph nodes include an endpoint for each port.
Although the port doesn't have 'reg' property, it has worked fine before.
And after applying the commit, it doesn't work.

It is written in Documentation/devicetree/bindings/graph.txt
that common scheme is to include the 'reg' property.

Maybe I think that we'd better add 'reg' properties to each port,
however, there might be same matter in other SoCs, so I'm not sure
whether your patch breaks the backword compatibility or
our devicetrees are wrong.

I'd be glad if I could hear something about this issue from you.

Thank you,

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/socionext/uniphier-ld20.dtsi#n348

---
Best Regards,
Kunihiko Hayashi



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

* Re: ASoC: About graph node issue without 'reg' property
  2018-12-13 10:39 ASoC: About graph node issue without 'reg' property Kunihiko Hayashi
@ 2018-12-13 16:24 ` Mark Brown
  2018-12-13 18:27   ` Mark Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2018-12-13 16:24 UTC (permalink / raw)
  To: Kunihiko Hayashi
  Cc: Kuninori Morimoto, Liam Girdwood, alsa-devel, linux-kernel,
	Masahiro Yamada, Masami Hiramatsu

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

On Thu, Dec 13, 2018 at 07:39:45PM +0900, Kunihiko Hayashi wrote:

> Maybe I think that we'd better add 'reg' properties to each port,
> however, there might be same matter in other SoCs, so I'm not sure
> whether your patch breaks the backword compatibility or
> our devicetrees are wrong.

> I'd be glad if I could hear something about this issue from you.

There's an ongoing thread between Morimoto-san and Tony Lindgren around
the graph card including this issue, there Morimoto-san proposed some
code which would let the reg property be optional.  Device trees should
still be updated but that way we wouldn't actually break anything which
would be good.

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

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

* Re: ASoC: About graph node issue without 'reg' property
  2018-12-13 16:24 ` Mark Brown
@ 2018-12-13 18:27   ` Mark Brown
  2018-12-14  0:05     ` Kuninori Morimoto
  0 siblings, 1 reply; 6+ messages in thread
From: Mark Brown @ 2018-12-13 18:27 UTC (permalink / raw)
  To: Kunihiko Hayashi
  Cc: Kuninori Morimoto, Liam Girdwood, alsa-devel, linux-kernel,
	Masahiro Yamada, Masami Hiramatsu

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

On Thu, Dec 13, 2018 at 04:24:28PM +0000, Mark Brown wrote:
> On Thu, Dec 13, 2018 at 07:39:45PM +0900, Kunihiko Hayashi wrote:
> 
> > Maybe I think that we'd better add 'reg' properties to each port,
> > however, there might be same matter in other SoCs, so I'm not sure
> > whether your patch breaks the backword compatibility or
> > our devicetrees are wrong.

> > I'd be glad if I could hear something about this issue from you.

> There's an ongoing thread between Morimoto-san and Tony Lindgren around
> the graph card including this issue, there Morimoto-san proposed some
> code which would let the reg property be optional.  Device trees should
> still be updated but that way we wouldn't actually break anything which
> would be good.

There's a patch now - "[PATCH][RFC] ASoC: simple-card-utils: fixup
asoc_simple_card_get_dai_id() ID method".

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

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

* Re: ASoC: About graph node issue without 'reg' property
  2018-12-13 18:27   ` Mark Brown
@ 2018-12-14  0:05     ` Kuninori Morimoto
  2018-12-14  2:13       ` Kunihiko Hayashi
  0 siblings, 1 reply; 6+ messages in thread
From: Kuninori Morimoto @ 2018-12-14  0:05 UTC (permalink / raw)
  To: Mark Brown
  Cc: Kunihiko Hayashi, Liam Girdwood, alsa-devel, linux-kernel,
	Masahiro Yamada, Masami Hiramatsu


Hi Hayashi-san

Sorry for my buggy patch.
I and Tony could confirm that my posted patch can solve
this issue. I will re-post it again as v3 patch-series.
I'm happy if you can test it (and give it Tested-by).

	https://patchwork.kernel.org/patch/10727943/

> [1  <text/plain; us-ascii (quoted-printable)>]
> On Thu, Dec 13, 2018 at 04:24:28PM +0000, Mark Brown wrote:
> > On Thu, Dec 13, 2018 at 07:39:45PM +0900, Kunihiko Hayashi wrote:
> > 
> > > Maybe I think that we'd better add 'reg' properties to each port,
> > > however, there might be same matter in other SoCs, so I'm not sure
> > > whether your patch breaks the backword compatibility or
> > > our devicetrees are wrong.
> 
> > > I'd be glad if I could hear something about this issue from you.
> 
> > There's an ongoing thread between Morimoto-san and Tony Lindgren around
> > the graph card including this issue, there Morimoto-san proposed some
> > code which would let the reg property be optional.  Device trees should
> > still be updated but that way we wouldn't actually break anything which
> > would be good.
> 
> There's a patch now - "[PATCH][RFC] ASoC: simple-card-utils: fixup
> asoc_simple_card_get_dai_id() ID method".
> [2 signature.asc <application/pgp-signature (7bit)>]
> No public key for 24D68B725D5487D0 created at 2018-12-14T03:27:38+0900 using RSA

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

* Re: ASoC: About graph node issue without 'reg' property
  2018-12-14  0:05     ` Kuninori Morimoto
@ 2018-12-14  2:13       ` Kunihiko Hayashi
  2018-12-17  0:47         ` Kuninori Morimoto
  0 siblings, 1 reply; 6+ messages in thread
From: Kunihiko Hayashi @ 2018-12-14  2:13 UTC (permalink / raw)
  To: Kuninori Morimoto, Mark Brown
  Cc: Liam Girdwood, alsa-devel, linux-kernel, Masahiro Yamada,
	Masami Hiramatsu

Hi Morimoto-san, Mark,

On Fri, 14 Dec 2018 09:05:02 +0900 <kuninori.morimoto.gx@renesas.com> wrote:

> 
> Hi Hayashi-san
> 
> Sorry for my buggy patch.
> I and Tony could confirm that my posted patch can solve
> this issue. I will re-post it again as v3 patch-series.
> I'm happy if you can test it (and give it Tested-by).
> 
> 	https://patchwork.kernel.org/patch/10727943/

Thank you for your great effort, and sorry my cross-post before your RFC patch
because I didn't catch it.

I confirmed your RFC patch solved the issue.
I'll also test your v3 patch-series on my environment.

> > [1  <text/plain; us-ascii (quoted-printable)>]
> > On Thu, Dec 13, 2018 at 04:24:28PM +0000, Mark Brown wrote:
> > > On Thu, Dec 13, 2018 at 07:39:45PM +0900, Kunihiko Hayashi wrote:
> > > 
> > > > Maybe I think that we'd better add 'reg' properties to each port,
> > > > however, there might be same matter in other SoCs, so I'm not sure
> > > > whether your patch breaks the backword compatibility or
> > > > our devicetrees are wrong.
> > 
> > > > I'd be glad if I could hear something about this issue from you.
> > 
> > > There's an ongoing thread between Morimoto-san and Tony Lindgren around
> > > the graph card including this issue, there Morimoto-san proposed some
> > > code which would let the reg property be optional.  Device trees should
> > > still be updated but that way we wouldn't actually break anything which
> > > would be good.

Yes. It's desiable to add the reg property in spite of the fixes.
I'll update our devicetrees.

Thank you,

> > 
> > There's a patch now - "[PATCH][RFC] ASoC: simple-card-utils: fixup
> > asoc_simple_card_get_dai_id() ID method".
> > [2 signature.asc <application/pgp-signature (7bit)>]
> > No public key for 24D68B725D5487D0 created at 2018-12-14T03:27:38+0900 using RSA


---
Best Regards,
Kunihiko Hayashi



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

* Re: ASoC: About graph node issue without 'reg' property
  2018-12-14  2:13       ` Kunihiko Hayashi
@ 2018-12-17  0:47         ` Kuninori Morimoto
  0 siblings, 0 replies; 6+ messages in thread
From: Kuninori Morimoto @ 2018-12-17  0:47 UTC (permalink / raw)
  To: Kunihiko Hayashi
  Cc: Mark Brown, Liam Girdwood, alsa-devel, linux-kernel,
	Masahiro Yamada, Masami Hiramatsu


Hi Hayashi-san

> > > > There's an ongoing thread between Morimoto-san and Tony Lindgren around
> > > > the graph card including this issue, there Morimoto-san proposed some
> > > > code which would let the reg property be optional.  Device trees should
> > > > still be updated but that way we wouldn't actually break anything which
> > > > would be good.
> 
> Yes. It's desiable to add the reg property in spite of the fixes.
> I'll update our devicetrees.

I'm not OF-graph guy, but having reg is optional, not mandatory I think.
Yeah, my previous patch was not good for it :(

Best regards
---
Kuninori Morimoto

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

end of thread, other threads:[~2018-12-17  0:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-12-13 10:39 ASoC: About graph node issue without 'reg' property Kunihiko Hayashi
2018-12-13 16:24 ` Mark Brown
2018-12-13 18:27   ` Mark Brown
2018-12-14  0:05     ` Kuninori Morimoto
2018-12-14  2:13       ` Kunihiko Hayashi
2018-12-17  0:47         ` Kuninori Morimoto

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