Message ID | 20211004034430.41355-4-takahiro.akashi@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:ac0:890a:0:0:0:0:0 with SMTP id 10csp1061849imy; Sun, 3 Oct 2021 20:45:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw7EnNF0iXC49wcuftw2YWP1SavPPnfVcSTxjTGoMxhFlMUq/KXMJIp1lXJb4CHYP8ngU0/ X-Received: by 2002:a17:906:2441:: with SMTP id a1mr14605738ejb.414.1633319131792; Sun, 03 Oct 2021 20:45:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633319131; cv=none; d=google.com; s=arc-20160816; b=IMp3EgMvCF0iUjG+BVFBPz1sm0JSAmxhP9viOApWzXWOFiC+HJ0zuNeJPprX3XHZDu gJ51BY5l/ucDa6NmMxGGhetBf2EmKco1Q66PQNYrJl1EB5LsU7EVbr7K2NpBKtaloxkG LZkbAomjlXbM3YjLJc9zh13jbIlg55sW52uOmGPbILc7NcmOGOtBo2003odoxPy1NrR4 EktJ5cbGYXcTTJS6EPmlMW+6iV+KBxm3cafk50ZXvE7sMJG28RowyBcYUv24bDMlphGN Eup5y/ltW+G5qxeLVjxrkObO7g5fbAIaSUOFLvEZbvFzcjolmdG94WjwVt5IJHZG1mWw OujQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=z/s8T5Z2+8B0u0/BcispJFM9kCTqYbxHAZfCLDDXxgk=; b=nClQ4n+VQszijrVViApLSw8GWeLF8dnBOHZ3TW/m4wcCsUYhPb7yYbE/Ah1YXMAmW+ xlJpA8PfIiDNpDYZdisyX0Fp82YTmCBNOaZre4Zsnkqq2U9O38F7u3Q7oomRU3w2Ithd /utVeGHq6ABTADBRt2x5xIsom2TlXPRNw3brgslv+i2Acwe10MCfg+E4qWvTAiuSoExk HE4xYxjnEruaw90VOKz63cg+e1zhDJJ7+dfxp+znhEwWrzHIzXbjp/tcB3jJpot3GgqE Y7Lzb/U9+3B9bJTgAN01j2Q+MzuLxoWiy3k1Gs+6Q1Icyvt1HzyPTsPzBG5TrcmjZHs8 bwyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e4Zl2TxM; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id kg28si13239360ejc.418.2021.10.03.20.45.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:31 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=e4Zl2TxM; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 018248353B; Mon, 4 Oct 2021 05:45:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.b="e4Zl2TxM"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B320483556; Mon, 4 Oct 2021 05:45:20 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) (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 03F188352D for <u-boot@lists.denx.de>; Mon, 4 Oct 2021 05:45:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=takahiro.akashi@linaro.org Received: by mail-pg1-x52a.google.com with SMTP id g184so15265547pgc.6 for <u-boot@lists.denx.de>; Sun, 03 Oct 2021 20:45:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=z/s8T5Z2+8B0u0/BcispJFM9kCTqYbxHAZfCLDDXxgk=; b=e4Zl2TxMtRrs+7x8mbUHzYUIH68hnfH7PxW6D9VNZxdqaBDk6NHwdORI6wVFm5nrRM iERSKFNSyO74hjRBKm7syLCvVT/z02MUYIc7yc32sVaCcZxWIyt3XnhGpTUa3UV00n7R p1N+hUH9q7x9VJTJCZgD6O0Cg7w7lx/TEY2u6tTRAHBFqEtbEg2jJ9XIrLSb/ok4LCtX lhTPtAtR00Na3GlPadhYr6hnVTUHCG2+7t8T2cNn67pRd7v9GyrWjoQ7BTgNp3d/Fk0t B0hv5mKSCW4gq8HwABt6EAcK3y+YtHKEyfC8k5W2Fjixf3jUlsfpgf29dVJgkROnS8s0 +jSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=z/s8T5Z2+8B0u0/BcispJFM9kCTqYbxHAZfCLDDXxgk=; b=d28ENIcuZ4bkaE5ooWssz2nfTDc40dgAz48MqrDddZcDc7lEwOx0Tik7IhbZ8S+ZRc uTC0Yd5L3wSl3pNSLVqEZ92H6fUXR8C3Zh0f/tR4tO9UTWUsDF/2xcXsdgs60tVye3Ks kv/JfySZxnadN8OltiF/Inxuhub6lTQ3OYwFSuQ3Yho/0AbJwzfoSgw/kxmAfVQLOLpU AmcoX7LnTD13kMEo+3Ap5WNP1PvCsaFLnnpD8MJlB7mT88L2nU7rUpBlblU15QmdWwCM JRP7vX6MCxbiN+8sX3UXYtJW9qwB7evFwKDUCkhSVU+SQGI8+M8eG5gzDGFhcJc3wsmL w28w== X-Gm-Message-State: AOAM532x0ompjOJ4cxsDFJxUTSqc3g4sDkyPxdp1XImpMjyfvdKrstb0 qTcGnWO4cvQowTfU6nGUvksB6A== X-Received: by 2002:a63:e446:: with SMTP id i6mr9223502pgk.288.1633319114372; Sun, 03 Oct 2021 20:45:14 -0700 (PDT) Received: from localhost.localdomain (61-205-96-147m5.grp4.mineo.jp. [61.205.96.147]) by smtp.gmail.com with ESMTPSA id a11sm11863515pgj.75.2021.10.03.20.45.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 03 Oct 2021 20:45:13 -0700 (PDT) From: AKASHI Takahiro <takahiro.akashi@linaro.org> To: xypron.glpk@gmx.de, agraf@csgraf.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: u-boot@lists.denx.de, AKASHI Takahiro <takahiro.akashi@linaro.org> Subject: [resent RFC 03/22] usb: storage: call device_probe() after scanning Date: Mon, 4 Oct 2021 12:44:11 +0900 Message-Id: <20211004034430.41355-4-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211004034430.41355-1-takahiro.akashi@linaro.org> References: <20211004034430.41355-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 |
efi_loader: more tightly integrate UEFI disks to device model
|
expand
|
diff --git a/common/usb_storage.c b/common/usb_storage.c index 946c6b2b323a..5f294f17491f 100644 --- a/common/usb_storage.c +++ b/common/usb_storage.c @@ -239,6 +239,12 @@ static int usb_stor_probe_device(struct usb_device *udev) if (ret) return ret; } + + ret = device_probe(dev); + if (ret) { + device_unbind(dev); + return ret; + } } #else /* We don't have space to even probe if we hit the maximum */
Every time a usb bus/port is scanned and a new device is detected, we want to call device_probe() as it will give us a chance to run additional post-processings for some purposes. In particular, support for creating partitions on a device will be added. Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org> --- common/usb_storage.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.33.0