答复: [PATCH] Powerpc/t4240: change the compatible flags for t4240qds board

Zhang Haijun-B42677 B42677 at freescale.com
Tue Jul 9 16:04:01 EST 2013



Regards & Thanks

Haijun.

________________________________________
发件人: Wood Scott-B07421
发送时间: 2013年7月8日 17:14
收件人: Zhang Haijun-B42677
抄送: linux-mmc at vger.kernel.org; linuxppc-dev at lists.ozlabs.org; cbouatmailru at gmail.com; cjb at laptop.org; Fleming Andy-AFLEMING; Wrobel Heinz-R39252; Zhang Haijun-B42677
主题: Re: [PATCH] Powerpc/t4240: change the compatible flags for t4240qds board

On 07/08/2013 02:16:03 AM, Haijun Zhang wrote:
> In order to make a difference between different T4240 board.
> Specify T4240QDS board the unique compatible flags for t4240qds
> eSDHC host.
>
> Signed-off-by: Haijun Zhang <Haijun.Zhang at freescale.com>
> ---
>  arch/powerpc/boot/dts/fsl/t4240si-post.dtsi | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> index bd611a9..08b47d0 100644
> --- a/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> +++ b/arch/powerpc/boot/dts/fsl/t4240si-post.dtsi
> @@ -397,7 +397,7 @@
>
>  /include/ "qoriq-esdhc-0.dtsi"
>       sdhc at 114000 {
> -             compatible = "fsl,t4240-esdhc", "fsl,esdhc";
> +             compatible = "fsl,t4240qds-esdhc", "fsl,esdhc";
>               sdhci,auto-cmd12;
>       };

NACK.  This node is describing the sdhc block of the t4240 SoC.  What
board you stick it in doesn't change what it is.

Plus, what about users with old device trees?

Currently no users use this ip block except esdhc driver.

How about change this in arch/powerpc/boot/dts/t4240qds.dts

+++ b/arch/powerpc/boot/dts/t4240qds.dts
@@ -117,6 +117,10 @@
                        };
                };
 
               sdhc at 114000 {
                      compatible = "fsl,t4240-esdhc", "fsl,esdhc";
               };

               i2c at 118000 {
            

+++ b/arch/powerpc/boot/dts/t4240qds.dts
@@ -117,6 +117,10 @@
                        };
                };
 
+               sdhc at 114000 {
+                       compatible = "fsl,t4240qds-esdhc", "fsl,esdhc";
+               };
+
                i2c at 118000 {
            

-Scott


More information about the Linuxppc-dev mailing list