From patchwork Sun Sep 1 22:26:13 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1979439 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=cSZyg7qy; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1)) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Wxmhv3JhRz1yZ9 for ; Mon, 2 Sep 2024 08:27:11 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 40CFA88A1B; Mon, 2 Sep 2024 00:26: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=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="cSZyg7qy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5805C889FC; Mon, 2 Sep 2024 00:26:50 +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,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-io1-xd30.google.com (mail-io1-xd30.google.com [IPv6:2607:f8b0:4864:20::d30]) (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 4D9CB884C3 for ; Mon, 2 Sep 2024 00:26:48 +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-xd30.google.com with SMTP id ca18e2360f4ac-82a20593e53so140624639f.2 for ; Sun, 01 Sep 2024 15:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1725229606; x=1725834406; darn=lists.denx.de; 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=a7DdkER2RHUOjzF7TxOxm/2QRIyR5m8rS9CgKjZAWUo=; b=cSZyg7qy4UrBODxQR3zFfvKUoFMw6sRHev1yTZb+l533om9wY9AwP7MeoeXEBxZbNB Vna62JorLueO9uqUmFrkupL1Dj9fOZjTlhH1pYpRYQB7Yevjc/ir0mU0TcxuUcZy4ULc GHgPr0QVn8TKxOhUni3JTmhQPaPpr7YzEuP3g= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725229606; x=1725834406; 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=a7DdkER2RHUOjzF7TxOxm/2QRIyR5m8rS9CgKjZAWUo=; b=ipTCNZx6zuwIud8WFNcHqmQugYc2qD5jB1d8PJKpwLVfr/LIAM5TyUzQ0PYZ2GnQIp xf6o76w/aYSwvWM7Fq6+oLSQVQDMkyyEYViL22LM/PvlpkA+dbamQ0FLbsBI1UV+lULj H1YvEiE3lQEquUPsO5ZfkutvWFHyKrdNGuVok6YnebNjzJIFlKNLUBxwEWt/87pSJ6Mb e3PYHIBUxQFxcjHZGh2lu8bFrmrym0pFokU+pibACAG+RRJy4+sx3VDShQfAkIo99VtO cmaUfc1cLgF4zQOq6RocmwLcaUMlsOmQtOrBoJaJhs/04JhtGv/EcIr2VX/3XVncMJcc /RGQ== X-Gm-Message-State: AOJu0YyYe9DiRIZUYNrFMVd8v8Qz1JlhmFOkoek/VRT76JMEWB2GlgeX EVBnZeCICyD2NnBKs1OCwC9beQfi3oLgcmtyKENL1SG+NXzItocw6xvOFVNmYa4Ma99mMK7hmfE = X-Google-Smtp-Source: AGHT+IHoMVaRivTvhb+vR+FL6pA2O7oAKDpXxIrtNNQ3LQlhhcqZZUKxJKVhtJxn+baUwecMpZc4fg== X-Received: by 2002:a05:6602:1352:b0:827:86d9:4e1d with SMTP id ca18e2360f4ac-82a11085691mr1050147639f.17.1725229606539; Sun, 01 Sep 2024 15:26:46 -0700 (PDT) Received: from chromium.org (c-107-2-138-191.hsd1.co.comcast.net. [107.2.138.191]) by smtp.gmail.com with ESMTPSA id ca18e2360f4ac-82a1a4c099asm215751839f.48.2024.09.01.15.26.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Sep 2024 15:26:45 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH v4 02/23] nvmxip: Avoid probing on boot Date: Sun, 1 Sep 2024 16:26:13 -0600 Message-Id: <20240901222634.460873-3-sjg@chromium.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240901222634.460873-1-sjg@chromium.org> References: <20240901222634.460873-1-sjg@chromium.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.8 at phobos.denx.de X-Virus-Status: Clean Devices should be probed when they are used, not before. Drop this boot-time probing. Signed-off-by: Simon Glass --- (no changes since v1) drivers/mtd/nvmxip/nvmxip-uclass.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/mtd/nvmxip/nvmxip-uclass.c b/drivers/mtd/nvmxip/nvmxip-uclass.c index 58e8c3fb74b..d18bd0e3d6b 100644 --- a/drivers/mtd/nvmxip/nvmxip-uclass.c +++ b/drivers/mtd/nvmxip/nvmxip-uclass.c @@ -53,14 +53,7 @@ int nvmxip_probe(struct udevice *udev) return 0; } -static int nvmxip_post_bind(struct udevice *udev) -{ - dev_or_flags(udev, DM_FLAG_PROBE_AFTER_BIND); - return 0; -} - UCLASS_DRIVER(nvmxip) = { .name = "nvmxip", .id = UCLASS_NVMXIP, - .post_bind = nvmxip_post_bind, };