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 AAC0BC433EF for ; Sat, 11 Jun 2022 03:00:52 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6AD468442F; Sat, 11 Jun 2022 04:59:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com 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=konsulko.com header.i=@konsulko.com header.b="qKezfM9+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 7ED6D8441D; Sat, 11 Jun 2022 04:59:51 +0200 (CEST) Received: from mail-qv1-xf31.google.com (mail-qv1-xf31.google.com [IPv6:2607:f8b0:4864:20::f31]) (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 0FC2984419 for ; Sat, 11 Jun 2022 04:59:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qv1-xf31.google.com with SMTP id l1so864131qvh.1 for ; Fri, 10 Jun 2022 19:59:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=H3TSNBhFXr7zOnzbnV2YAjsRFao1GuI+ZeQRihNRSHs=; b=qKezfM9+1BRAUYrO3PwN9Q/w8sLyiQEPseNCDsElT1S6KyeAfrXIFMrdrDpVHFnwM3 SWx9eCsObtvGtmOxzm0Ub6uk++kjwd5GOOgCwjFMAnY/JukP3N4IeiHejulUp4i9Kxi1 wsFod32bJvFVigjy17WFJc9npy45xvkPbF25E= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=H3TSNBhFXr7zOnzbnV2YAjsRFao1GuI+ZeQRihNRSHs=; b=Y6Ig5eUC1+sQlCKVXvc68F3iSVemrTE219R7ehNBgl9T2j/Z1uz8089kIWVyEY8M9b PAAQTw5Y24DFDGhjWRjO2RG5lmQnqL4p5Ru6gnb+oNtSngoFuXDoP63HNlxreINUnuyc ZpRIvZo3cfZMl7/P775mw/EPRjDA0tkPZjbCTbjvWhKlEc0DRz9vX5mqgZ+L4IdKMuWZ ce78uEMWBDmIW6fBVq/3+niZcDemJ2lL+DUXMJK/Nq0CkPu0IKHTdQv/5I2rc4J4GFVY CImS15sXp+NiOSU1YwItaS36YQikpgkD/Xh8qS8Jh4JnkwkaRADH5poAVU4YaITwWQcX lylA== X-Gm-Message-State: AOAM533q3fXCsK2BIfSOiqGpgwHs0uiz5V3+k3iZwNsnD/Vlou4Qrned 7wP646XFJ12qmdy998xmd9W4paKuRAKZDA== X-Google-Smtp-Source: ABdhPJwSNh7neit/5W+2j3SbuxxEMI6aAZOBQg/odvBrtIxfhgkb8dATpnYjF3t+fS5tfGe2kngiBQ== X-Received: by 2002:ad4:5bc1:0:b0:42d:758c:f694 with SMTP id t1-20020ad45bc1000000b0042d758cf694mr90044992qvt.99.1654916387189; Fri, 10 Jun 2022 19:59:47 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id 142-20020a370894000000b006a6acd33f18sm899926qki.8.2022.06.10.19.59.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Jun 2022 19:59:46 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 07/15] block: ide: Remove ide_preinit function Date: Fri, 10 Jun 2022 22:59:30 -0400 Message-Id: <20220611025938.2151916-7-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220611025938.2151916-1-trini@konsulko.com> References: <20220611025938.2151916-1-trini@konsulko.com> 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.5 at phobos.denx.de X-Virus-Status: Clean The only platform currently that defines an ide_preinit function has an empty one that immediately returns. Remove this hook. Signed-off-by: Tom Rini --- board/freescale/m5253demo/m5253demo.c | 5 ----- drivers/block/ide.c | 9 --------- include/configs/M5253DEMO.h | 5 ----- include/ide.h | 4 ---- 4 files changed, 23 deletions(-) diff --git a/board/freescale/m5253demo/m5253demo.c b/board/freescale/m5253demo/m5253demo.c index 2a4703579dab..85f5f0c03409 100644 --- a/board/freescale/m5253demo/m5253demo.c +++ b/board/freescale/m5253demo/m5253demo.c @@ -93,11 +93,6 @@ int testdram(void) #ifdef CONFIG_IDE #include -int ide_preinit(void) -{ - return (0); -} - void ide_set_reset(int idereset) { atac_t *ata = (atac_t *) CONFIG_SYS_ATA_BASE_ADDR; diff --git a/drivers/block/ide.c b/drivers/block/ide.c index e8518ff3a11a..3270a9f032f3 100644 --- a/drivers/block/ide.c +++ b/drivers/block/ide.c @@ -695,15 +695,6 @@ void ide_init(void) unsigned char c; int i, bus; -#ifdef CONFIG_IDE_PREINIT - WATCHDOG_RESET(); - - if (ide_preinit()) { - puts("ide_preinit failed\n"); - return; - } -#endif /* CONFIG_IDE_PREINIT */ - WATCHDOG_RESET(); /* ATAPI Drives seems to need a proper IDE Reset */ diff --git a/include/configs/M5253DEMO.h b/include/configs/M5253DEMO.h index 384217a0d989..840d3b4672e6 100644 --- a/include/configs/M5253DEMO.h +++ b/include/configs/M5253DEMO.h @@ -19,11 +19,6 @@ . = DEFINED(env_offset) ? env_offset : .; \ env/embedded.o(.text*); -#ifdef CONFIG_IDE -/* ATA */ -# define CONFIG_IDE_PREINIT 1 -#endif - #ifdef CONFIG_DRIVER_DM9000 # define CONFIG_DM9000_BASE (CONFIG_SYS_CS1_BASE | 0x300) # define DM9000_IO CONFIG_DM9000_BASE diff --git a/include/ide.h b/include/ide.h index 2994b7a76226..426cef4e39e0 100644 --- a/include/ide.h +++ b/include/ide.h @@ -33,10 +33,6 @@ ulong ide_write(struct blk_desc *block_dev, lbaint_t blknr, lbaint_t blkcnt, const void *buffer); #endif -#ifdef CONFIG_IDE_PREINIT -int ide_preinit(void); -#endif - #if defined(CONFIG_OF_IDE_FIXUP) int ide_device_present(int dev); #endif -- 2.25.1