lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z6TguAqGRS3eDhqa@lizhi-Precision-Tower-5810>
Date: Thu, 6 Feb 2025 11:18:00 -0500
From: Frank Li <Frank.li@....com>
To: Laurentiu Mihalcea <laurentiumihalcea111@...il.com>
Cc: Bard Liao <yung-chuan.liao@...ux.intel.com>,
	Daniel Baluta <daniel.baluta@....com>,
	Iuliana Prodan <iuliana.prodan@....com>,
	Jaroslav Kysela <perex@...ex.cz>, Takashi Iwai <tiwai@...e.com>,
	Mark Brown <broonie@...nel.org>, linux-kernel@...r.kernel.org,
	linux-sound@...r.kernel.org, imx@...ts.linux.dev
Subject: Re: [PATCH v2 4/8] ASoC: SOF: imx8: shuffle structure and function
 definitions

On Wed, Feb 05, 2025 at 03:30:18PM -0500, Laurentiu Mihalcea wrote:
> From: Laurentiu Mihalcea <laurentiu.mihalcea@....com>
>
> Shuffle the definitions of some structures and functions such that
> they are better grouped. This is purely a cosmetic change.
>
> Signed-off-by: Laurentiu Mihalcea <laurentiu.mihalcea@....com>
> Reviewed-by: Daniel Baluta <daniel.baluta@....com>
> Reviewed-by: Iuliana Prodan <iuliana.prodan@....com>

I don't think this patch is neccessary. It have not look better after
change position.

Frank

> ---
>  sound/soc/sof/imx/imx8.c | 86 ++++++++++++++++++++--------------------
>  1 file changed, 43 insertions(+), 43 deletions(-)
>
> diff --git a/sound/soc/sof/imx/imx8.c b/sound/soc/sof/imx/imx8.c
> index 52dff369d9cf..5d6524d695e2 100644
> --- a/sound/soc/sof/imx/imx8.c
> +++ b/sound/soc/sof/imx/imx8.c
> @@ -41,6 +41,49 @@
>  #define MBOX_OFFSET	0x800000
>  #define MBOX_SIZE	0x1000
>
> +static struct snd_soc_dai_driver imx8_dai[] = {
> +	IMX_SOF_DAI_DRV_ENTRY_BIDIR("esai0", 1, 8),
> +	IMX_SOF_DAI_DRV_ENTRY_BIDIR("sai1", 1, 32),
> +};
> +
> +static struct snd_sof_dsp_ops sof_imx8_ops;
> +
> +static int imx8_ops_init(struct snd_sof_dev *sdev)
> +{
> +	/* first copy from template */
> +	memcpy(&sof_imx8_ops, &sof_imx_ops, sizeof(sof_imx_ops));
> +
> +	/* then set common imx8 ops */
> +	sof_imx8_ops.dbg_dump = imx8_dump;
> +	sof_imx8_ops.dsp_arch_ops = &sof_xtensa_arch_ops;
> +	sof_imx8_ops.debugfs_add_region_item =
> +		snd_sof_debugfs_add_region_item_iomem;
> +
> +	/* ... and finally set DAI driver */
> +	sof_imx8_ops.drv = get_chip_info(sdev)->drv;
> +	sof_imx8_ops.num_drv = get_chip_info(sdev)->num_drv;
> +
> +	return 0;
> +}
> +
> +static int imx8_probe(struct snd_sof_dev *sdev)
> +{
> +	struct imx_sc_ipc *sc_ipc_handle;
> +	struct imx_common_data *common;
> +	int ret;
> +
> +	common = sdev->pdata->hw_pdata;
> +
> +	ret = imx_scu_get_handle(&sc_ipc_handle);
> +	if (ret < 0)
> +		return dev_err_probe(sdev->dev, ret,
> +				     "failed to fetch SC IPC handle\n");
> +
> +	common->chip_pdata = sc_ipc_handle;
> +
> +	return 0;
> +}
> +
>  /*
>   * DSP control.
>   */
> @@ -100,49 +143,6 @@ static int imx8_run(struct snd_sof_dev *sdev)
>  	return 0;
>  }
>
> -static int imx8_probe(struct snd_sof_dev *sdev)
> -{
> -	struct imx_sc_ipc *sc_ipc_handle;
> -	struct imx_common_data *common;
> -	int ret;
> -
> -	common = sdev->pdata->hw_pdata;
> -
> -	ret = imx_scu_get_handle(&sc_ipc_handle);
> -	if (ret < 0)
> -		return dev_err_probe(sdev->dev, ret,
> -				     "failed to fetch SC IPC handle\n");
> -
> -	common->chip_pdata = sc_ipc_handle;
> -
> -	return 0;
> -}
> -
> -static struct snd_soc_dai_driver imx8_dai[] = {
> -	IMX_SOF_DAI_DRV_ENTRY_BIDIR("esai0", 1, 8),
> -	IMX_SOF_DAI_DRV_ENTRY_BIDIR("sai1", 1, 32),
> -};
> -
> -static struct snd_sof_dsp_ops sof_imx8_ops;
> -
> -static int imx8_ops_init(struct snd_sof_dev *sdev)
> -{
> -	/* first copy from template */
> -	memcpy(&sof_imx8_ops, &sof_imx_ops, sizeof(sof_imx_ops));
> -
> -	/* then set common imx8 ops */
> -	sof_imx8_ops.dbg_dump = imx8_dump;
> -	sof_imx8_ops.dsp_arch_ops = &sof_xtensa_arch_ops;
> -	sof_imx8_ops.debugfs_add_region_item =
> -		snd_sof_debugfs_add_region_item_iomem;
> -
> -	/* ... and finally set DAI driver */
> -	sof_imx8_ops.drv = get_chip_info(sdev)->drv;
> -	sof_imx8_ops.num_drv = get_chip_info(sdev)->num_drv;
> -
> -	return 0;
> -}
> -
>  static const struct imx_chip_ops imx8_chip_ops = {
>  	.probe = imx8_probe,
>  	.core_kick = imx8_run,
> --
> 2.34.1
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ