From patchwork Thu Feb 10 08:11:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: AKASHI Takahiro X-Patchwork-Id: 541400 Delivered-To: patch@linaro.org Received: by 2002:ad5:420f:0:0:0:0:0 with SMTP id e15csp2038935imo; Thu, 10 Feb 2022 00:13:30 -0800 (PST) X-Google-Smtp-Source: ABdhPJxfpuH7/1jxUSsQNc2b4tfcP8iE8T7OSwRzUz4vqS4B0pCiJ5XUuUkph2F9j/1g6kNVa7fa X-Received: by 2002:a17:906:9742:: with SMTP id o2mr5336985ejy.254.1644480809878; Thu, 10 Feb 2022 00:13:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644480809; cv=none; d=google.com; s=arc-20160816; b=wOd4mqxCeKYgDPl4jS3ndakZUJFiMlPjZSPGxCB6mc7TaRZNHNWrOWQ/ADJ80JnguR PjwBQefRP/Gz1OhCQUUY+W9WwEVhXhCMS3Q99umPrLj+TodZ9rFFse8k39QCj/+L1w2N ngmDtHe+nB42rMS/wVpr+WYdzU8hQP3t4qwR+Wlq7ViCi2Phb/zMHP8uLxWHxuXXOcWG 8jFyLsx8+2wsCTr//RpaQq48s5bQCBkembmgu4iQ5Hzbj3PWgJ2l+x5D0ZsEzoXARFsY KUw0UQvQX+MPfUmPSSfIYBJsB9H4gK83FZfW+pCQ5S/jy6Jh0QkmFoB7+8yrn5Apq4ga dJfA== 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=XX0iEQ4dt4saQZhqaVxrcJum90hF8rJcNwW2ChZ7JxE=; b=bzubaPQEoRSPByuHObgMgvRMLdy1kFXmbQ1/87hu3ZrQ8+Nm/oqfRhFKjbwonRnVai 0ty0hHjhXAOhc4Tzna0vURxTGb2vPUFWo87/zGV3hxjH9IqTej5mIjSKOedvxIpaybYb murDV3gA1b6Ln7HZ7PtWMcx4EQhpWrcH88eHF1xjD6RHe2u9ggZMzyT0ugNBsw6w8Lcd rbS7W3atGcA95LVUyYMIhHpFNhhvSau9Rq+eT8uEV5ljJCM2jPbj4KoyZB4XiCaol4z4 npUpGaivwPyG4OLskSNyRrXm7Xxos85EFq8H+qEtQG0AcbkxNJ8fio5i3IRWVYDhONF/ UXuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lKUct46u; 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: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id el12si12235698edb.382.2022.02.10.00.13.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 00:13:29 -0800 (PST) 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=lKUct46u; 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 68A8183542; Thu, 10 Feb 2022 09:12:55 +0100 (CET) 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="lKUct46u"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 645DE81112; Thu, 10 Feb 2022 09:12:50 +0100 (CET) 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, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.2 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (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 816408141A for ; Thu, 10 Feb 2022 09:12:35 +0100 (CET) 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-pj1-x102e.google.com with SMTP id m7so4525997pjk.0 for ; Thu, 10 Feb 2022 00:12:35 -0800 (PST) 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=XX0iEQ4dt4saQZhqaVxrcJum90hF8rJcNwW2ChZ7JxE=; b=lKUct46u6/J9urrIdR8WJ4GiiBLe55D1F7vLVPexltFJ2F9q8Ewz+Qp+1doE9J0s4W 0g/m9ogtj2W/oxOxi0nl2WmbMkfcZS5g1bXX35AKv0RRG8l3SNvcUA8OVKEpk1jeUh9X SkgofiB7S6UdWGweAJTaz6aSzp4mkfScxSaa4YPypJ2zFrPBg3WS6kM0svmJhFmTSrsF wy1ZhhJEzgAEqCVfYjGDlM468qkMu4w7Gs3/+fjiPRQOsZR7j0MnC9AzxDS80p0v9Aqf Z6a7OPf2gztEmF2FsDfXKG4uBjcr7IED4RBCxBRMU0nzeEnWIdSbk0p4IHnSDKQjK5w4 P47A== 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=XX0iEQ4dt4saQZhqaVxrcJum90hF8rJcNwW2ChZ7JxE=; b=ESVEeaHyFVGQMXBRr71dhWw4idFmlseBsEInaeLFr3cT9Jwy61ukJsr09Exj8tJ2ql D4L9yySYfl+nljOvSitwsUCK32SeZua/AkPBRUzh+TyQnsDw1L1BuHq5eCpFbH2MkuiV jX4nYLc8DjwMjumxXa2CmCVvkOyMQao/DYXpgwccv26SQBKiLb/8OCflc3HCrsf2UVNQ WpM/aIT4Qhf94apAADVCNyExQab4FqM0AEYZELQmJkibMwb1hqzqVvJA4uMAEwTwufuB clteH1Vthc6KhZyic3arXTQ1EIKfmAcLuTFg8LAkYptbCMcC7i3JzOiEY7z9Hi1MTtd2 0Z5A== X-Gm-Message-State: AOAM533ES5esNma6B1zxxhKvfCVYlgCrr44VM3yB/JDT6cCmACZDkLWS hUpxdi0LVc61c7jIIvxQjDIZxw== X-Received: by 2002:a17:902:e5c1:: with SMTP id u1mr6323683plf.52.1644480753857; Thu, 10 Feb 2022 00:12:33 -0800 (PST) Received: from localhost.localdomain ([2400:4050:c3e1:100:412e:384:fab9:f24]) by smtp.gmail.com with ESMTPSA id lk8sm1529208pjb.40.2022.02.10.00.12.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Feb 2022 00:12:33 -0800 (PST) From: AKASHI Takahiro To: lukma@denx.de, peng.fan@nxp.com, jh80.chung@samsung.com, bmeng.cn@gmail.com, peng.ma@nxp.com, sr@denx.de, xypron.glpk@gmx.de, sjg@chromium.org, ilias.apalodimas@linaro.org Cc: masami.hiramatsu@linaro.org, u-boot@lists.denx.de, AKASHI Takahiro Subject: [PATCH v2 06/20] block: ide: call device_probe() after scanning Date: Thu, 10 Feb 2022 17:11:10 +0900 Message-Id: <20220210081124.86612-7-takahiro.akashi@linaro.org> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220210081124.86612-1-takahiro.akashi@linaro.org> References: <20220210081124.86612-1-takahiro.akashi@linaro.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.5 at phobos.denx.de X-Virus-Status: Clean 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 Reviewed-by: Simon Glass --- drivers/block/ide.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 085aa356feef..a96df4f0a3c7 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -1145,6 +1145,10 @@ static int ide_probe(struct udevice *udev) blksz, size, &blk_dev); if (ret) return ret; + + ret = blk_probe_or_unbind(blk_dev); + if (ret) + return ret; } }