Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2357EC433F5 for ; Fri, 29 Oct 2021 08:40:45 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C3E91600CC for ; Fri, 29 Oct 2021 08:40:43 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org C3E91600CC Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 40C318356D; Fri, 29 Oct 2021 10:40:41 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1635496841; bh=jZrZk8UeIJtOGRISwiX61+RyATX8AGbvh4VUx1YRFQo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=sUH5d0TjbQ6z+ilxbURd8xloJwLDWH3Em3Fmiyx/elnK8e748WljNd/hyR3KFFuU0 An/fFjBiTJUw6/rU9EaSH/0/L2D0vEJfq5Jh3FnRfaFYYxFi1htt9At5FQGqkFQuvE f7Y4hP9A10Smp1eY1vM/33Pxg8taYmaKCRpoVYxyyrn4rfTwaZvvxMytqsUYg3nkYH 3NPCOsjBHFf/UyYUDNL1GDjYte5rHoIXQtFMzE6gWwvmKUeEBq0EA5kCjdTfZz/dAb mFCJE7BRrgvRB7D56Wox057rNUkXNW9G763s8kEwnyBNDFS98wtWICV1RFQxIAP4VR iWoCpnexnA2vw== Received: from [IPv6:::1] (p578adb1c.dip0.t-ipconnect.de [87.138.219.28]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 480B683216; Fri, 29 Oct 2021 10:40:38 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1635496839; bh=jZrZk8UeIJtOGRISwiX61+RyATX8AGbvh4VUx1YRFQo=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=fTpiBZWVXp6k5bkdrw0NhP8shDdXir4WlQdfETlCsb63UAh2jAe2Id/oVkG1eBQEG 4JRLJff7jCsgDsUI4GKFfO7a0vMOx41OccIgmY4DbJMdHivdPXECoPdycExskXwDhE mhGp0kVSNtXY/ujBbpf3bhvCERRGR3ZJBUH7AMIf0fi4hEPu/yi+UbMXmXjGAj9JmY LkLTuHJ4sHhUD+uCpFQwH5gTvV8SEAxGNTmwQAaxPsihvWUdG6Djv5D24YM3Gb2g/4 TQBMqd6be0aQ5bmJ6Xg6E+pwhvwfxG3JACUpxyn8MyKUq7C3KLqRZLZYG0n3LNZmbj hFIGrmbU986hQ== Subject: Re: [PATCH v2] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num To: Sean Anderson , u-boot@lists.denx.de Cc: Andre Przywara , Maxime Ripard , Lukasz Majewski , Marek Szyprowski , Jagan Teki , Wolfgang Denk References: <20210708173605.973949-1-sean.anderson@seco.com> <8122d053-f147-5eb6-b517-08972e80d865@denx.de> <7e2c6a9b-62fa-bb59-4072-f40d31d8b664@seco.com> <8132fa42-a4ae-fd25-3950-8dfe82da634a@seco.com> From: Marek Vasut Message-ID: <78013be7-4250-8878-e0be-59b9482268f9@denx.de> Date: Fri, 29 Oct 2021 10:40:37 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: <8132fa42-a4ae-fd25-3950-8dfe82da634a@seco.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On 10/28/21 9:43 PM, Sean Anderson wrote: > Hi Marek, > > On 7/22/21 2:24 PM, Sean Anderson wrote: >> >> >> On 7/8/21 2:02 PM, Sean Anderson wrote: >>> >>> >>> On 7/8/21 2:00 PM, Marek Vasut wrote: >>>> On 7/8/21 7:36 PM, Sean Anderson wrote: >>>>> This allows specifying partitions using more extended syntax. This is >>>>> particularly useful to access eMMC hardware partitions. For example, >>>>> this allows something like >>>>> >>>>>     ums mmc 0.0,0.1,0.2,0.3 >>>> >>>> Shouldn't that be ums X mmc Y ? >>> >>> Yes. >>> >>>> >>>>> to expose four LUNs for each of the four default eMMC hardware >>>>> partitions. Note that the comma syntax was already present. >>>> >>>> That's all good, but is there some specification of the syntax >>>> somewhere instead of a random example ?\ >>> >>> Yes, see https://u-boot.readthedocs.io/en/latest/usage/partitions.html >>> >>> I suppose that https://u-boot.readthedocs.io/en/latest/usage/ums.html >>> should be updated as well, especially since the comma syntax is >>> undocumented. >> >> Upon closer inspection, the partition syntax is actually already >> documented. This patch just brings the command in-line with what is >> documented. > > Does this patch need any additional modifications? As stated above, this > new behavior is actually what is already documented. Update the commit message so the example isn't wrong (i.e. ums X mmc y). Validate that "ums 0 mmc 0" still works for exporting the entire block device, if it does, then I can pick it. Thanks