]> git.hungrycats.org Git - linux/commit
ASoC: rsnd: adg: care clock-frequency size
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Thu, 6 Sep 2018 03:21:33 +0000 (03:21 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Oct 2018 07:18:14 +0000 (09:18 +0200)
commitee3953f7b81ca3bafa0f764e7da28dae8228cbc7
treef90c3c89a662bb3ed0bc70c639700b963fd3abbe
parentb7bad669da54e53587b7b3c9e7984eb59774f2c7
ASoC: rsnd: adg: care clock-frequency size

[ Upstream commit 69235ccf491d2e26aefd465c0d3ccd1e3b2a9a9c ]

ADG has buffer over flow bug if DT has more than 3 clock-frequency.
This patch fixup this issue, and uses first 2 values.

clock-frequency = <x y>; /* this is OK */
clock-frequency = <x y z>; /* this is NG */

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Tested-by: Hiroyuki Yokoyama <hiroyuki.yokoyama.vx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/sh/rcar/adg.c