]> git.dujemihanovic.xyz Git - u-boot.git/commit
powerpc/8xxx: Fix in USB device-tree fixup
authorramneek mehresh <ramneek.mehresh@freescale.com>
Fri, 22 Aug 2014 05:26:05 +0000 (10:56 +0530)
committerYork Sun <yorksun@freescale.com>
Wed, 24 Sep 2014 20:05:51 +0000 (13:05 -0700)
commite628c8f75de952031f7b9fb9ae465a2a99d4c7f8
treeac1c7e67f77170615da11d32d5b4268044d7575f
parent363fb32aca268701a0918d67099fb344194f1746
powerpc/8xxx: Fix in USB device-tree fixup

Fix following issues in USB device-tree fixup:
        - returns when either dr_mode or phy_type not defined.
          This was terminating fix-up when only either property
          was defined in hwconfig string
        - updates dr_mode_type or dr_phy_type with junk value when
          their index is -1. Now these are updated only when their
          respective index is pointing to relevant types
          in modes[] and phys[] array
        - dr_mode_type and dr_phy_type were not NULL for
          each controller

Signed-off-by: Ramneek Mehresh <ramneek.mehresh@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
arch/powerpc/cpu/mpc8xxx/fdt.c