mbox series

[00/11] ASoC: qdsp6: Fix dt based module loading

Message ID 20180625143115.8346-1-srinivas.kandagatla@linaro.org
Headers show
Series ASoC: qdsp6: Fix dt based module loading | expand

Message

Srinivas Kandagatla June 25, 2018, 2:31 p.m. UTC
Recent discussion on https://lkml.org/lkml/2018/6/18/1282 suggested
that qdsp6 code is using less common of_platform apis which would
not give dt based module loading support.

Suggestion from Rob was to add compatible strings to the dais nodes
This patchset adds this. Also this patchset has 2 trivial fixes which
is removing redundant owner and fix a error check in q6routing.

Thanks,
srini

Srinivas Kandagatla (11):
  ASoC: q6adm: dt-bindings: add compatible string to routing
  ASoC: q6asm: dt-bindings: add compatible string to dais
  ASoC: q6afe: dt-bindings: add compatible string to dais
  ASoC: qdsp6: q6adm: use of_platform_populate/depopulate()
  ASoC: qdsp6: q6asm: use of_platform_populate/depopulate()
  ASoC: qdsp6: q6afe: use of_platform_populate/depopulate()
  ASoC: qdsp6: q6afe-dai: support dt based module loading
  ASoC: qdsp6: q6asm-dai: support dt based module loading
  ASoC: qdsp6: q6routing: support dt based module loading
  ASoC: qcom: apq8096: remove redundant owner assignment
  ASoC: qdsp6: q6routing: add proper error check

 Documentation/devicetree/bindings/sound/qcom,q6adm.txt |  6 ++++++
 Documentation/devicetree/bindings/sound/qcom,q6afe.txt |  6 ++++++
 Documentation/devicetree/bindings/sound/qcom,q6asm.txt |  6 ++++++
 sound/soc/qcom/apq8096.c                               |  1 -
 sound/soc/qcom/qdsp6/q6adm.c                           | 15 ++-------------
 sound/soc/qcom/qdsp6/q6afe-dai.c                       |  8 ++++++++
 sound/soc/qcom/qdsp6/q6afe.c                           | 16 ++--------------
 sound/soc/qcom/qdsp6/q6asm-dai.c                       |  8 ++++++++
 sound/soc/qcom/qdsp6/q6asm.c                           | 17 ++---------------
 sound/soc/qcom/qdsp6/q6routing.c                       | 10 +++++++++-
 10 files changed, 49 insertions(+), 44 deletions(-)

-- 
2.16.2

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Niklas Cassel June 25, 2018, 6:03 p.m. UTC | #1
Acked-by: Niklas Cassel <niklas.cassel@linaro.org>


On Mon, Jun 25, 2018 at 03:31:14PM +0100, Srinivas Kandagatla wrote:
> module owner is already set in platform_driver_register(), so remove this

> redundant assignment.

> 

> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> ---

>  sound/soc/qcom/apq8096.c | 1 -

>  1 file changed, 1 deletion(-)

> 

> diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c

> index 561cd429e6f2..6e79fec7e789 100644

> --- a/sound/soc/qcom/apq8096.c

> +++ b/sound/soc/qcom/apq8096.c

> @@ -245,7 +245,6 @@ static struct platform_driver msm_snd_apq8096_driver = {

>  	.remove = apq8096_platform_remove,

>  	.driver = {

>  		.name = "msm-snd-apq8096",

> -		.owner = THIS_MODULE,

>  		.of_match_table = msm_snd_apq8096_dt_match,

>  	},

>  };

> -- 

> 2.16.2

> 

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Niklas Cassel June 25, 2018, 6:04 p.m. UTC | #2
On Mon, Jun 25, 2018 at 03:31:15PM +0100, Srinivas Kandagatla wrote:
> q6adm_open can return error pointer or a null in error cases.

> Fix this check this.


Instead of "Fix this check this.", how about "Fix the return handling."

> 

> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>

> ---

>  sound/soc/qcom/qdsp6/q6routing.c | 2 +-

>  1 file changed, 1 insertion(+), 1 deletion(-)

> 

> diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c

> index caf2f847a886..c18f808c7730 100644

> --- a/sound/soc/qcom/qdsp6/q6routing.c

> +++ b/sound/soc/qcom/qdsp6/q6routing.c

> @@ -310,7 +310,7 @@ int q6routing_stream_open(int fedai_id, int perf_mode,

>  			      session->channels, topology, perf_mode,

>  			      session->bits_per_sample, 0, 0);

>  

> -	if (!copp) {

> +	if (IS_ERR_OR_NULL(copp)) {

>  		mutex_unlock(&routing_data->lock);

>  		return -EINVAL;

>  	}

> -- 

> 2.16.2

> 

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Srinivas Kandagatla June 26, 2018, 8:53 a.m. UTC | #3
On 25/06/18 19:04, Niklas Cassel wrote:
> On Mon, Jun 25, 2018 at 03:31:15PM +0100, Srinivas Kandagatla wrote:

>> q6adm_open can return error pointer or a null in error cases.

>> Fix this check this.

> Instead of "Fix this check this.", how about "Fix the return handling."


Thanks,  I will reword this!
--srini
> 

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Srinivas Kandagatla June 26, 2018, 8:56 a.m. UTC | #4
On 25/06/18 19:03, Niklas Cassel wrote:
> You can remove pdev_routing from struct q6adm,

> since it is no longer in use.

yep, I thought I removed this, but it looks like its still there.
Will fix this in next version.

thanks,
srini
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html