Message ID | 20211001050228.55183-12-takahiro.akashi@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp451794jaf; Thu, 30 Sep 2021 22:05:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwMvVDAsST8+RuLe2rp1cHTZofoILRJKY3qR+QxqTZdoYZwskVgDx3L+YwkfRzvT3TyfywU X-Received: by 2002:a17:906:354a:: with SMTP id s10mr2398648eja.475.1633064705506; Thu, 30 Sep 2021 22:05:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633064705; cv=none; d=google.com; s=arc-20160816; b=S4fMGB4irwrBnhnnTC6O0haneKDb5zfxxQYAZ2zKy96n9Ii1F8ycSvY82pRb89rD6J r7xJtpY3uTtVk2qSjgMLy1SF7RElzq9SC93etn9fEp/TOFrxFnqAIjFqk+v8ctSfQphT RO57IxcdGIR1/CYgVC3criU9xnyh9Y2ObMyiMJ0JyvFxQein/EDEeialRDok3XVjajJh beoEybg2pmjK0HplzwSTQ08XNLoEhZ25dPbwp4RfDDg159T9q7nKtosOCmLFDg9Z8VO5 oqThAZBiggxlafsVREmh9s0fQIzqDL0NPTMrPJarc+8cyRBo87grBFiPZhUSXEhWR/nF vcvA== 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=DUqHk6GqAD3KhgmdEMlQyPoaCBbyBnak6/KyeiOBA7Q=; b=jgw+N/JiIpfLFVwg97+AiE6Z4WWgUn+fLU6tFttMxBLPh+577ivVjYC3EUWVWztz8u 6wAtAeE/xVjZOH+PpZ2iF1DOSJalQ2gvBUMJ1be2SE6XB7tzHWnl7abd+5O/WjatrUsF svlW7oLlSLfszH40Jw2x0MR46gFlOMGt3LbIMNi437QN3oPhUZUYq4pDf7JjlQg/gg/i HvURUkVKcpwm9y/UbyDXtnAk+Bxo+zQRTNhEyCxZlNsVmNQBREEYJ+ByTq+xK+pkRKwk +ldznQOZl+aZrTMDCbPJNA1pYYMtUVpG1UMrPsXGjZldI8VV5jwDzdVcYKDpXxdN0XKm w3BA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PePSl2+d; 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 24si5690368ejg.618.2021.09.30.22.05.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:05:05 -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=PePSl2+d; 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 862A182EBD; Fri, 1 Oct 2021 07:03:47 +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="PePSl2+d"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 573E582F08; Fri, 1 Oct 2021 07:03:30 +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-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (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 700F682B9F for <u-boot@lists.denx.de>; Fri, 1 Oct 2021 07:03:25 +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-x52b.google.com with SMTP id 133so8383306pgb.1 for <u-boot@lists.denx.de>; Thu, 30 Sep 2021 22:03:25 -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=DUqHk6GqAD3KhgmdEMlQyPoaCBbyBnak6/KyeiOBA7Q=; b=PePSl2+dpjrvDUiPtY918ySDfFdiWKT6A/mlR2A7hfMyVvbNk2EAEv6kjTQDEBHhV6 nmwqt34KutDWRMfBWNkDx4Pd4D1O33mA+x4D7ePIJTAwXJP49ONLm3wZ+NAObXOtHLCU GAb2NGa+20OY3bgsyUP0mcTK2ULJ+SypLpoPvJBXmdO2JODUSxw5Xlf5yr2OPnQFJP6D sitfGOZac12QYhYUyo1qRtDV46XDommz5Q7q4GiRNhRpTJipbqSJSkfAPns8tv9/XdQm KMO+8sDb5CmnqauhGqy3OWXubEPx7z8bBDoMUhL32qAvz8utkkqNgPwjz0SJobx5tHg8 RWfQ== 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=DUqHk6GqAD3KhgmdEMlQyPoaCBbyBnak6/KyeiOBA7Q=; b=RocKRBFWmPXr9pVNga4qzrrEYQXrSxcZ5p8hxRFiLDqMwD+sKhu4z5i7uvSSgrL8Ba YhuPetwhkKp0Yo40fN+VBs9RQeG/aC9ZzV384I5+1NmhFUncfUGOgbXM2UGCxh4lbAKB ewC1uDsuKTZOiV7tMm81jRNg2jfmOywJH6yDoLQqUorclAsn1vftvBITDdG++Xp8RIKg G9Ddq5ZvmUsyVDrLB333XKnqzdrQ/75sCrItLXbhYiQ/bVaxYVp4wChnntR0fN03J5Wu wdyw9NscclgjFTLhgYN7R14wQhBAjkWAghjjMhKCfdlFWtLs4TGgP4XOHJ5/GEVonjuD A2vw== X-Gm-Message-State: AOAM532TRWBb8PwJOsdAlTN0SjuphBF5H/jP2EQ+sIuy79KQgwi7LrjP DxRYxv0cL+UR6ie/O9ASAlbk/Q== X-Received: by 2002:a63:4f:: with SMTP id 76mr8041498pga.457.1633064603624; Thu, 30 Sep 2021 22:03:23 -0700 (PDT) Received: from localhost.localdomain (122-100-26-52m5.mineo.jp. [122.100.26.52]) by smtp.gmail.com with ESMTPSA id z8sm4615113pgc.53.2021.09.30.22.03.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Sep 2021 22:03:23 -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: [RFC 06/22] block: ide: call device_probe() after scanning Date: Fri, 1 Oct 2021 14:01:55 +0900 Message-Id: <20211001050228.55183-12-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211001050228.55183-1-takahiro.akashi@linaro.org> References: <20211001050228.55183-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/drivers/block/ide.c b/drivers/block/ide.c index c99076c6f45d..31aaed09ab70 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -1151,6 +1151,12 @@ static int ide_probe(struct udevice *udev) blksz, size, &blk_dev); if (ret) return ret; + + ret = device_probe(blk_dev); + if (ret) { + device_unbind(blk_dev); + return ret; + } } }
Every time an ide 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> --- drivers/block/ide.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.33.0