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 40721C19F2A for ; Sun, 7 Aug 2022 15:51:12 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C3DCB84979; Sun, 7 Aug 2022 17:48:25 +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="bLT0ce/B"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id F09208496D; Sun, 7 Aug 2022 17:48:21 +0200 (CEST) Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) (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 7C1D884933 for ; Sun, 7 Aug 2022 17:48:19 +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-oa1-x2b.google.com with SMTP id 586e51a60fabf-10d845dcf92so7989429fac.12 for ; Sun, 07 Aug 2022 08:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=eDbINZHg6UxcZbEhyxyTwJljRKbUUadcSZLaTceUxYQ=; b=bLT0ce/B6GpuWuIvoxAJbhOaiO+mASN6zfRP9cwbs8BssCA0Eu4pF4hwDjx83B11Mg HGMGWk2eC05650AoynRYn+p+KfVlT5cgueqqUaxhovdmVp9RrPOITxCr6b1/8Phuad9Q Jo5PwJwmLcXjHFr3lIlnPrJcqwkBfSUJTbsMo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=eDbINZHg6UxcZbEhyxyTwJljRKbUUadcSZLaTceUxYQ=; b=MAsTjkNP6BDdwhYROoPBt1F0YbjMjFYyGa1TEZfZ5X2eMiy+Ky3Sqvy2XxGHFoGLuV Rwfut5RSsPKcTKdbOyf9wG00Qkap7upUHBb0pIDCUDnmhLjcsrLLdumK2FFjKoXpXKlk J0brACogLrTM+xu0I9zku1Hm+HjO7a+2YQKiQAzIlW+OaN3HCAiaU6PMO/v49xo5ZVQ4 hCW2Fx5qoa0FmzfuAcvp5daBAd2Cr56KT8s33W5+j256ZVLQa5985QJ0JporEor35YHJ S+CnwhtGwUxTZ4/4cSKG3ykHEmABkUBaW5WvAth9wOeKnTSpG79nwuxq1K+BpqzX7R1f /j9Q== X-Gm-Message-State: ACgBeo3Aa9HHGHiLbi7c5DiBH5A0U+lyVS6gD+jWUr2CKk9I/RkLLVYu JAt9Ur/iI7mhiixN5ghH+7r9eP6DPtAcXg== X-Google-Smtp-Source: AA6agR7OzO6SrtHB8/+1spcl4ifKQ90M4m1zW1WrQZLNtUJ2z1qwLqxf1zYC1DeCVIwxCu1N3fn6XQ== X-Received: by 2002:a05:6870:418d:b0:10e:6822:3ecf with SMTP id y13-20020a056870418d00b0010e68223ecfmr10060884oac.57.1659887282088; Sun, 07 Aug 2022 08:48:02 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id y18-20020a056808131200b0034290c4ed01sm1553412oiv.41.2022.08.07.08.48.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Aug 2022 08:48:01 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , AKASHI Takahiro , Masahisa Kojima , Oleksii Bidnichenko , schspa Subject: [PATCH 16/23] blk: Drop IF_TYPE_ATAPI Date: Sun, 7 Aug 2022 09:47:01 -0600 Message-Id: <20220807154708.1418967-17-sjg@chromium.org> X-Mailer: git-send-email 2.37.1.559.g78731f0fdb-goog In-Reply-To: <20220807154708.1418967-1-sjg@chromium.org> References: <20220807154708.1418967-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.6 at phobos.denx.de X-Virus-Status: Clean This is not really needed since it does the same things as IDE. Drop it. Signed-off-by: Simon Glass --- disk/part.c | 5 ----- drivers/block/blk-uclass.c | 2 -- include/blk.h | 1 - 3 files changed, 8 deletions(-) diff --git a/disk/part.c b/disk/part.c index 5f64da54e54..a5c1d7a0aec 100644 --- a/disk/part.c +++ b/disk/part.c @@ -128,7 +128,6 @@ void dev_print (struct blk_desc *dev_desc) dev_desc->product, dev_desc->revision); break; - case IF_TYPE_ATAPI: case IF_TYPE_IDE: case IF_TYPE_SATA: printf ("Model: %s Firm: %s Ser#: %s\n", @@ -257,9 +256,6 @@ static void print_part_header(const char *type, struct blk_desc *dev_desc) case IF_TYPE_SCSI: puts ("SCSI"); break; - case IF_TYPE_ATAPI: - puts ("ATAPI"); - break; case IF_TYPE_USB: puts ("USB"); break; @@ -767,7 +763,6 @@ void part_set_generic_name(const struct blk_desc *dev_desc, switch (dev_desc->if_type) { case IF_TYPE_IDE: case IF_TYPE_SATA: - case IF_TYPE_ATAPI: devtype = "hd"; break; case IF_TYPE_SCSI: diff --git a/drivers/block/blk-uclass.c b/drivers/block/blk-uclass.c index f16cb279d4e..57230e9bab7 100644 --- a/drivers/block/blk-uclass.c +++ b/drivers/block/blk-uclass.c @@ -20,7 +20,6 @@ static const char *if_typename_str[IF_TYPE_COUNT] = { [IF_TYPE_IDE] = "ide", [IF_TYPE_SCSI] = "scsi", - [IF_TYPE_ATAPI] = "atapi", [IF_TYPE_USB] = "usb", [IF_TYPE_MMC] = "mmc", [IF_TYPE_SD] = "sd", @@ -36,7 +35,6 @@ static const char *if_typename_str[IF_TYPE_COUNT] = { static enum uclass_id if_type_uclass_id[IF_TYPE_COUNT] = { [IF_TYPE_IDE] = UCLASS_IDE, [IF_TYPE_SCSI] = UCLASS_SCSI, - [IF_TYPE_ATAPI] = UCLASS_INVALID, [IF_TYPE_USB] = UCLASS_MASS_STORAGE, [IF_TYPE_MMC] = UCLASS_MMC, [IF_TYPE_SD] = UCLASS_INVALID, diff --git a/include/blk.h b/include/blk.h index 1898ebdda54..c7461f9f35a 100644 --- a/include/blk.h +++ b/include/blk.h @@ -31,7 +31,6 @@ enum if_type { IF_TYPE_UNKNOWN = 0, IF_TYPE_IDE, IF_TYPE_SCSI, - IF_TYPE_ATAPI, IF_TYPE_USB, IF_TYPE_MMC, IF_TYPE_SD, -- 2.37.1.559.g78731f0fdb-goog