summaryrefslogtreecommitdiff
path: root/arch/powerpc/cpu/mpc8xxx
diff options
context:
space:
mode:
authorJames Yang <James.Yang@freescale.com>2013-01-04 08:14:01 +0000
committerAndy Fleming <afleming@freescale.com>2013-01-30 11:25:13 -0600
commit992f2fb28ccce08613a34ce64b151f3a91ee3c3a (patch)
tree804c3d5c40a5191958d3f1a86173529693b54509 /arch/powerpc/cpu/mpc8xxx
parentbf4189307fe4a3df784722e831683f9a7fdd2142 (diff)
downloadu-boot-imx-992f2fb28ccce08613a34ce64b151f3a91ee3c3a.zip
u-boot-imx-992f2fb28ccce08613a34ce64b151f3a91ee3c3a.tar.gz
u-boot-imx-992f2fb28ccce08613a34ce64b151f3a91ee3c3a.tar.bz2
Fix data stage name matching issue
This fix allows the name of the stage to be specifed after the controler and DIMM is specified. Prior to this fix, if the data stage name is not the first entry on the command line, the operation is applied to all controller and DIMMs. Signed-off-by: James Yang <James.Yang@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
Diffstat (limited to 'arch/powerpc/cpu/mpc8xxx')
-rw-r--r--arch/powerpc/cpu/mpc8xxx/ddr/interactive.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c b/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c
index 4d1cf3c..0474acc 100644
--- a/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c
+++ b/arch/powerpc/cpu/mpc8xxx/ddr/interactive.c
@@ -1390,9 +1390,10 @@ static unsigned int fsl_ddr_parse_interactive_cmd(
unsigned int i, j;
unsigned int error = 0;
- unsigned int matched = 0;
for (i = 1; i < argc; i++) {
+ unsigned int matched = 0;
+
for (j = 0; j < n_opts; j++) {
if (strcmp(options[j].data_name, argv[i]) != 0)
continue;