Message ID | 20210708171424.970928-1-sean.anderson@seco.com |
---|---|
State | Superseded |
Delegated to: | Marek Vasut |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=secospa.onmicrosoft.com header.i=@secospa.onmicrosoft.com header.a=rsa-sha256 header.s=selector2-secospa-onmicrosoft-com header.b=s32bi+60; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GLNGF3LW2z9sWc for <incoming@patchwork.ozlabs.org>; Fri, 9 Jul 2021 03:15:17 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C37E9831BD; Thu, 8 Jul 2021 19:15:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=seco.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=secospa.onmicrosoft.com header.i=@secospa.onmicrosoft.com header.b="s32bi+60"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8D315831BD; Thu, 8 Jul 2021 19:14:59 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-vi1eur04on0604.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0e::604]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 2E3DA831A5 for <u-boot@lists.denx.de>; Thu, 8 Jul 2021 19:14:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=seco.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sean.anderson@seco.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WChqC/Z/0I6p2E3UpZxiqjSAY14NKK0Xi8kf+B6t6LFOYuK4Yn7guHvtzDPPJw2F0jDc+2cV5qjSTSt/y1aikH1w8si2AQntjRvEHf2pdI1Sz90hK8GqD0oeLBfedRXxXxUQGNZ6aZgdPDn4N5RaO1P6tyBt2S15fEjydL5Q0aEkoeff+2sg5IPnu23H4YvETKjkKxzT6t+Mmt0xWT8lwJL0jsg3zMYvvLzoz6V4cgTbutB3zS38QtK841pKfbRsGkdbfA1e887t5l9GJvgoercr71bXxvq2EgCdfaHam9Jfh1oO69+TZyDmscuEALCais/8bxYOyj1y03UMWJyBVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=188Kw+90vquADOdqDzeFeyx10JU30uAKOEoZkt/09S4=; b=GAjhT9Pc7UnlkgrGtpDR7MuyWeeRe9rQaR09E2K/7Oyh3Zj7ijXdcRJR0BvixDv++WWaLdyt8b9cLwyXvWvvI5jhqf1phmvNNBJcnqAy4dlY1E656XTGhmrnJQZ8xmdCILvc9LOhiE3z4PSL+fGn67OjhgREf0I3TQUa9HKMjCGxGljdae4s+Q/ZyK4xMSojRTnEFvg9gN1lJmaF7pgZh2tnuIdKksDEtFMOH70DytRWyJXPJSMDahCFyoE8QT5FkBcAtEju64bUoTJqYP7Hdr5T5tzy03hiOBkbGeGFWayl+W46YDNq5kGU+6chcmlDb/2W9CUDj7swEVU1lhUXIA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=seco.com; dmarc=pass action=none header.from=seco.com; dkim=pass header.d=seco.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secospa.onmicrosoft.com; s=selector2-secospa-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=188Kw+90vquADOdqDzeFeyx10JU30uAKOEoZkt/09S4=; b=s32bi+60mST4nEoEiG6DYZ2lK4FpRUSoFk7cZd7luOClgpoa6vcNaw5zhwJg1BkqCLmKiHwMuJ87LxpEgITuwvy4VQZIWHT8DyHRRZJmPfsrLjEvdvKJQrduNyaLSimTVBrmDd3TXCpxNW9dc+S67w9h2FvR7NdlZArgpiH3dBU= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=seco.com; Received: from DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) by DBBPR03MB6762.eurprd03.prod.outlook.com (2603:10a6:10:20b::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.19; Thu, 8 Jul 2021 17:14:55 +0000 Received: from DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::40d5:3554:c709:6b1b]) by DB7PR03MB4523.eurprd03.prod.outlook.com ([fe80::40d5:3554:c709:6b1b%5]) with mapi id 15.20.4264.035; Thu, 8 Jul 2021 17:14:55 +0000 From: Sean Anderson <sean.anderson@seco.com> To: u-boot@lists.denx.de, Lukasz Majewski <lukma@denx.de> Cc: Maxime Ripard <maxime@cerno.tech>, Jun Li <jun.li@nxp.com>, Andre Przywara <andre.przywara@arm.com>, Jagan Teki <jagan@amarulasolutions.com>, Marek Vasut <marex@denx.de>, Marek Szyprowski <m.szyprowski@samsung.com>, Ye Li <ye.li@nxp.com>, Peng Fan <peng.fan@nxp.com>, Bryan O'Donoghue <pure.logic@nexus-software.ie>, Sean Anderson <sean.anderson@seco.com> Subject: [PATCH 1/4] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num Date: Thu, 8 Jul 2021 13:14:20 -0400 Message-Id: <20210708171424.970928-1-sean.anderson@seco.com> X-Mailer: git-send-email 2.25.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MN2PR13CA0005.namprd13.prod.outlook.com (2603:10b6:208:160::18) To DB7PR03MB4523.eurprd03.prod.outlook.com (2603:10a6:10:19::27) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from plantagenet.inhand.com (50.195.82.171) by MN2PR13CA0005.namprd13.prod.outlook.com (2603:10b6:208:160::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.12 via Frontend Transport; Thu, 8 Jul 2021 17:14:53 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4edf9fab-bd01-4ecf-d844-08d94233e7c9 X-MS-TrafficTypeDiagnostic: DBBPR03MB6762: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: <DBBPR03MB6762841390CBA139BBDC283696199@DBBPR03MB6762.eurprd03.prod.outlook.com> X-MS-Oob-TLC-OOBClassifiers: OLM:3826; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 6iJWghJ3hvTfoOgC7/D0fWEFkjBwDY5Vm/L8zAS4rV3rRtv0uY8eZYuatIdIwqTFIGDiok465hhXvgLNm/M/4w2InuZwAHCrhtG71ejCMmC5X75CbcwgqOYHzsckwn206rU52CXDreYv6Za+p/iDf8S+EHa8G8L+LeVRZ/eIUVbBpZgzC8fWI3se8UE7nJk95E4BGZ2PQdlNRxXdcB18cHsOL5bs7E2s5GXe9A/VIfbrQejrramEDeifGehoWDXYZQFw9Gft+lItffOOHpzmCROyH7Phh8E/zGrFg/KheLn7lerzm+SPy3H1MqAdJCdCzN3+nBkrtvMPXA58506tfi5iTce6bx53nDUhE25wT7wU9F2yf3FMOBBnu+JwSdhtmBNdtmNLukSB2OMMXW6sTK1Ug709rZfFcuamSTmhGZL/4LzY5pWiPNgoFrK3W/bndO8ShlCKQKiObIu2svd59w7/6xmhlo5GwtF/CZFJZJRWY33ppZb9Io30AjEuNUNGhBO7AqsyOR+dPhUdVW7Vi8ZU3rMBgYrbn3dtWmLbgmSKoRYGNQnl7v4g1PLFO8Ri5/ltfkkjJRg/p9zv2bUaGvnpEXVFhj4sXmp8+gOB3agTjmeYS3qUamGiD5KV+TO2tBJm+DeJKLJyp1xXBC+6+ekWoDAEfaU8L+PRm26y/RMauyd3HvTt2nbVxfMg35fpS+sSamaRzih4J3fOGJHbVg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB7PR03MB4523.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(52116002)(54906003)(498600001)(6506007)(6666004)(38350700002)(38100700002)(2906002)(8676002)(4326008)(36756003)(6486002)(8936002)(83380400001)(66946007)(66476007)(66556008)(86362001)(44832011)(1076003)(186003)(7416002)(6512007)(2616005)(107886003)(956004)(4744005)(26005)(6916009)(5660300002); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: SEoOt+nEynwoRrKn07FLDkCjDwide7e/caYvtqh3IGe59e8JXFDfGOqtnZivj9wlDLz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nHNSFleNj9/mMAYCX+oLKQLtnIc7UBNZ1JGSPcLB2KlActUIf5Qj1AJQlXKZqvpslWpjo1QEPE/FEHvzy2C8lOEOa6iRwypfCzoYyvtrS5Q0hMm7WlhW3Re+knkQKhSqVyJ2PEtrFEOlw5h++eJ/6r7qji+Ro8hx3vpJj/wuD5yqu4N9ZfZMmNFvJXA9xlf9W3fY5WrhbJ X-OriginatorOrg: seco.com X-MS-Exchange-CrossTenant-Network-Message-Id: 4edf9fab-bd01-4ecf-d844-08d94233e7c9 X-MS-Exchange-CrossTenant-AuthSource: DB7PR03MB4523.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jul 2021 17:14:55.0935 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: bebe97c3-6438-442e-ade3-ff17aa50e733 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: SSii0CdjD+regS+zTvmQxTnr4gI0z1fRlp8V4bd214+8EyFyuAV1BPcDo5YhEPAYDMrJeCauDFYDNx84FoSYqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBBPR03MB6762 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean |
Series |
[1/4] cmd: usb_mass_storage: Use part_get_info_by_dev_and_name_or_num
|
expand
|
On 7/8/21 7:14 PM, Sean Anderson wrote: > This allows specifying partitions using more extended syntax. This is > particularly useful to access eMMC hardware partitions. What kind of syntax ? That should be in the commit message. If this is separate patch, it should not be part of a series, but separate.
Hi Marek, On 7/8/21 1:23 PM, Marek Vasut wrote: > On 7/8/21 7:14 PM, Sean Anderson wrote: >> This allows specifying partitions using more extended syntax. This is >> particularly useful to access eMMC hardware partitions. > > What kind of syntax ? That should be in the commit message. See https://u-boot.readthedocs.io/en/latest/usage/partitions.html > If this is separate patch, it should not be part of a series, but separate. Yes, it should. --Sean
diff --git a/cmd/usb_mass_storage.c b/cmd/usb_mass_storage.c index 14fa7233c7..d4e619b842 100644 --- a/cmd/usb_mass_storage.c +++ b/cmd/usb_mass_storage.c @@ -74,8 +74,8 @@ static int ums_init(const char *devtype, const char *devnums_part_str) if (!devnum_part_str) break; - partnum = blk_get_device_part_str(devtype, devnum_part_str, - &block_dev, &info, 1); + partnum = part_get_info_by_dev_and_name_or_num(devtype, devnum_part_str, + &block_dev, &info, 1); if (partnum < 0) goto cleanup;
This allows specifying partitions using more extended syntax. This is particularly useful to access eMMC hardware partitions. Signed-off-by: Sean Anderson <sean.anderson@seco.com> --- This patch is independent of the others in this series and may be applied separately. cmd/usb_mass_storage.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)