From mboxrd@z Thu Jan 1 00:00:00 1970 From: York Sun Date: Mon, 24 Feb 2014 15:58:05 -0800 Subject: [U-Boot] [PATCH][v2] fsl/usb: Limit phy_type comparison to first four characters In-Reply-To: <1392636516-2791-1-git-send-email-nikhil.badola@freescale.com> References: <1392636516-2791-1-git-send-email-nikhil.badola@freescale.com> Message-ID: <530BDC8D.4000806@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 02/17/2014 03:28 AM, Nikhil Badola wrote: > Use first four characters for phy_type comparison. Strcmp() should not > be used to check the phy_type string which maybe parsed by hwconfig_subarg(). > Hwconfig_subarg() returns part of hwconfig string starting from > phy_type value till the end of the string. Since phy_type could be > either "utmi" or "ulpi", strncmp() should be used so that a comparison > of "utmi;fsl_ddr:bank_intlv=auto" with "utmi" will succeed. > > Signed-off-by: Shaohui Xie > Signed-off-by: Nikhil Badola > --- > Changes for v2: > - Changed patch heading > - Changed patch commit message > Applied to u-boot-mpc85xx/master. Thanks. York