11 Aug
2015
11 Aug
'15
11:38 a.m.
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.