[alsa-devel] [PATCH 2/3] ASoC: fsl_sai: Add imx7d platform support
Mark Brown
broonie at kernel.org
Tue Aug 11 11:38:49 CEST 2015
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20150811/42db5d0e/attachment.sig>
More information about the Alsa-devel
mailing list