Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 755D2C001DF for ; Sun, 30 Jul 2023 17:16:24 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 2D2658696C; Sun, 30 Jul 2023 19:15:56 +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="Dea8WJhY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A3F6B86934; Sun, 30 Jul 2023 19:15:43 +0200 (CEST) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 CEA8086928 for ; Sun, 30 Jul 2023 19:15:40 +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-io1-xd35.google.com with SMTP id ca18e2360f4ac-790a590237aso16284339f.3 for ; Sun, 30 Jul 2023 10:15:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1690737339; x=1691342139; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ABUdSh2bmXbcLDuj/qsOAcAqKtLWwSQ4qfThqP5EZ+4=; b=Dea8WJhYPR7i+I/QafzZ13e1khhug54TOCPAiJeAmIbNlDJ3Wo4maL8wu9YEZc2e03 G0RH3vo9YEFJgT5HHe2G8XyRSdX+pqL5/KTJzrkh+1SgciyPP2uObMgekkPpj5cYWwhK xhDzaJOE8vhIHm4MVSS7Nar1AiQWLvte0Sn8Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690737339; x=1691342139; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ABUdSh2bmXbcLDuj/qsOAcAqKtLWwSQ4qfThqP5EZ+4=; b=IlZdDDsAohiwb6FGpY+B4mzGrIxzu6Ie1FlibIagMV9LCTv+CTspEVh066V/0mVYc2 cNbMVTh0w4GuasI++8ISpz4nY2Nl30DqekT7cdpjGiTkdBDWPvPNC9n8Ob7rE0lW/52f qTP+hw73+kNbK+Boi93cGXUX00AZZxEF7wSEAts75EjMuNx8GAo0T4U4P/ne1Hcq37Dp jEbQHEQYp1CZ0Xpq51JlyPiX+bhnSXAfUR912kn7tQrjl/RgooCYmGcG2XHXEhAe3voF fzEt4KmQUD9zeNTcIv7i1EpmCcaAq19WwgNzrYpUgnHjEdt1q9kK8pWFuYbV6le9KzK7 GgfQ== X-Gm-Message-State: ABy/qLYyxBPmFu5GxmqqtXvqlsgtEsEBdR8rRxsWT/GDk35umB7hEif1 RWMnBnszy9S5Tq5T8h+fQ5D+QR4RrfdH2a0L5kc= X-Google-Smtp-Source: APBJJlHFA98LrOOsJZqLQZUevGy618w702BMfPcY8W0/01gjh10vwIkKpNCVAkop2GML4npmYdpEYg== X-Received: by 2002:a5e:8816:0:b0:780:bb63:1869 with SMTP id l22-20020a5e8816000000b00780bb631869mr6595680ioj.13.1690737339501; Sun, 30 Jul 2023 10:15:39 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id y11-20020a6bd80b000000b00786582eb9fbsm2657473iob.15.2023.07.30.10.15.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 30 Jul 2023 10:15:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mattijs Korpershoek , Bin Meng , Simon Glass Subject: [PATCH v2 5/9] bootstd: Correct creating of bootdev sibling Date: Sun, 30 Jul 2023 11:15:15 -0600 Message-ID: <20230730171531.914677-5-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.487.g6d72f3e995-goog In-Reply-To: <20230730171531.914677-1-sjg@chromium.org> References: <20230730171531.914677-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 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.8 at phobos.denx.de X-Virus-Status: Clean Use the correct function here, since there may be multiple IDE devices available. Signed-off-by: Simon Glass Reviewed-by: Mattijs Korpershoek --- (no changes since v1) drivers/block/ide.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/ide.c b/drivers/block/ide.c index 89201dd4d229..c698f9cbd558 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -1059,9 +1059,9 @@ static int ide_probe(struct udevice *udev) desc->lba48 = pdesc.lba48; desc->type = pdesc.type; - ret = bootdev_setup_for_dev(udev, "ide_bootdev"); + ret = bootdev_setup_for_sibling_blk(blk, "ide_bootdev"); if (ret) - return log_msg_ret("bootdev", ret); + return log_msg_ret("bd", ret); } return 0; -- 2.41.0.487.g6d72f3e995-goog