Re: [PATCH 2/3] ASoC: fsl_sai: Add imx7d platform support

Mark Brown
2015-08-11T09:39:04Z

[-- Attachment #1.1: Type: text/plain, Size: 848 bytes --]

On Fri, Aug 07, 2015 at 12:34:37PM -0700, Nicolin Chen wrote:
> On Fri, Aug 07, 2015 at 02:23:52PM +0800, Zidan Wang wrote:

> > + if (of_device_is_compatible(pdev->dev.of_node, "fsl,imx7d-sai"))
> > + sai->sai_on_imx = true;

> What's the difference between imx6sx-sai and imx7d-sai?

> I think you may put its compatible model in the DT instead of adding
> a copy in the driver unless the SAI on the imx7d really has something
> different.

> For example:
> compatible = "fsl,imx6q-ssi", "fsl,imx51-ssi";
> /* The driver only has imx51-ssi */

It's generally good to have compatibles in the DT even if we believe the
hardware is identical since it can happen that differences are found
later (either due to new features being added or bugs found) and having
the explicit compatibles in DT already means that we only need to update
the driver.

[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]