From: Wolfgang Denk Date: Wed, 13 Apr 2011 07:35:08 +0200 Subject: [U-Boot] [U-BOOT] [PATCH] mmc: enable switch partition function In-Reply-To: References: <1296463665-26551-1-git-send-email-leiwen@marvell.com> <20110208142758.1945014B9A0D@gemini.denx.de> <20110208151331.DE1E614B9A0D@gemini.denx.de> <20110412193123.05E1214F02E@gemini.denx.de> Message-ID: <20110413053508.41B4D151F83@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Lei Wen, In message you wrote: > > > Why don't you follow the existing examples from other storage devices, > > where we have a "dev" subcommand that allows to select one of the > > existing devices as "active" device? =A0Similarly, you could here select > > an active device/partition pair. > > dev subcommand to act as "sw_part" in my first patch? I'm not really sure I understand what this command was supposed to do. What I want to see is consistency with other drivers, i. e. you should be able to use "mmc dev" to select a device and optionally a partition on it as current device, so the remaining "mmc" commands do not need any device arguments any more. > How about this solution? > Like if want to access the dev 0 and hardware partition 1, we could use the > command as "mmc read 0:1 ***". > If not pass the :[part] parameter to the dev number, like "mmc read 0 ***", > that would means the partition is 0 by default. For this case, if that device > has no capabilty of multi hardware partition, it would act like normal, or > switch to the default 0 before any further action. I want to get rid of the device argument in all these calls. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Der Horizont vieler Menschen ist ein Kreis mit Radius Null -- und das nennen sie ihren Standpunkt.