Message ID | 20220812013503.1724919-22-sjg@chromium.org |
---|---|
State | Accepted |
Commit | ef4b66bcd189e0db142e257cea1d225833cdc3b1 |
Delegated to: | Tom Rini |
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: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=HeMwlcVV; dkim-atps=neutral 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>) 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 (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4M3mbT3fcTz9sFs for <incoming@patchwork.ozlabs.org>; Fri, 12 Aug 2022 11:40:53 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9B85A84B14; Fri, 12 Aug 2022 03:36:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="HeMwlcVV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 58DAB84ADA; Fri, 12 Aug 2022 03:36:03 +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=-2.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id C371084AD3 for <u-boot@lists.denx.de>; Fri, 12 Aug 2022 03:35:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-oi1-x231.google.com with SMTP id j5so17636797oih.6 for <u-boot@lists.denx.de>; Thu, 11 Aug 2022 18:35:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=D18zA9418DRojlitN8oBZkbmleWPlazqAVoIzBJ5O60=; b=HeMwlcVVWOWZojVxG+vntZeS2A8cjy4z97KK9VaD4jZ+hunN9fPGActeuqdwM5MYSu fYmVivXCTNyBaLw26WaqU9tHvc7uw5Z8xC+PqrLXE49VXHvX9fIU3wzU04d1tnaMjrGQ tpQNapT/d8AV8qQ/X5fw+CU0T7oYKp26JldcU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=D18zA9418DRojlitN8oBZkbmleWPlazqAVoIzBJ5O60=; b=FVT1vI+9OfAjYeretnqY1POeYNpmEgKJhez+OYOTVjrFlfD6I8OcujhdZ6SvQAJ79W H/jyPNhWkjGE2BnEl7mFwksO31txQiJPoGy+50WZWFiwKIqbu6UeglaqgnsSq08U2B6i 0FCPTM37nb8TKzlQKQfg/a+SWwtCG1E1SK1lI5p5AzVsOBhmtSaM9zeZfJz0YKeBgire g5qKBE7EQ1MEhTSEgErPMrrPRgyexqYrrw3A/CvMTgwayeX7kOWUkfvHJhJV9mP6qyo7 Vx7jra30bv12AoXVWey0dZjuVqy13U0GtphmuPLXmwqBN/nbGhdY531t6wxrC9LTC3Wc uSwg== X-Gm-Message-State: ACgBeo1I0yxMP45W26lsdtEGj6wAmovosLOMB8USovzySGmoVBt3II7D CeBwgJWyFbKCvno5hC9ho2oW4vQ/GfCRBg== X-Google-Smtp-Source: AA6agR6cTUUksZzevbiAIxxb0KUcznm7BJV6rpEC+GrFtXpMMo4wZC4CatiGYz5ykZ4v3PO2g/rPvg== X-Received: by 2002:aca:a8d4:0:b0:343:3d2b:dbb8 with SMTP id r203-20020acaa8d4000000b003433d2bdbb8mr3554926oie.85.1660268150264; Thu, 11 Aug 2022 18:35:50 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id x21-20020a056870b41500b0010c5005d427sm158518oap.33.2022.08.11.18.35.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 18:35:49 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Simon Glass <sjg@chromium.org>, AKASHI Takahiro <takahiro.akashi@linaro.org>, Sean Anderson <sean.anderson@seco.com>, schspa <schspa@gmail.com> Subject: [PATCH v2 21/24] disk: Handle UCLASS_EFI_MEDIA in dev_print() Date: Thu, 11 Aug 2022 19:35:00 -0600 Message-Id: <20220812013503.1724919-22-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.595.g718a3a8f04-goog In-Reply-To: <20220812013503.1724919-1-sjg@chromium.org> References: <20220812013503.1724919-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.6 at phobos.denx.de X-Virus-Status: Clean |
Series |
blk: Rationalise the block interface
|
expand
|
diff --git a/disk/part.c b/disk/part.c index 75aff7eba5a..5705c229d59 100644 --- a/disk/part.c +++ b/disk/part.c @@ -111,7 +111,7 @@ static lba512_t lba512_muldiv(lba512_t block_count, lba512_t mul_by, return bc_quot * mul_by + ((bc_rem * mul_by) >> right_shift); } -void dev_print (struct blk_desc *dev_desc) +void dev_print(struct blk_desc *dev_desc) { lba512_t lba512; /* number of blocks if 512bytes block size */ @@ -148,6 +148,9 @@ void dev_print (struct blk_desc *dev_desc) case UCLASS_VIRTIO: printf("%s VirtIO Block Device\n", dev_desc->vendor); break; + case UCLASS_EFI_MEDIA: + printf("EFI media Block Device %d\n", dev_desc->devnum); + break; case UCLASS_INVALID: puts("device type unknown\n"); return;
This is currently missing. Add it. Fix the code style for the function while we are here. Suggested-by: AKASHI Takahiro <takahiro.akashi@linaro.org> Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: - Add new patch to handle UCLASS_EFI_MEDIA in dev_print() disk/part.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)