From patchwork Sun Jul 12 17:59:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1327583 X-Patchwork-Delegate: sr@denx.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=amarulasolutions.com header.i=@amarulasolutions.com header.a=rsa-sha256 header.s=google header.b=czVa+0+P; dkim-atps=neutral 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 RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4B4ZKx3dlJz9sQt for ; Mon, 13 Jul 2020 03:59:33 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C26A581F7C; Sun, 12 Jul 2020 19:59:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.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=amarulasolutions.com header.i=@amarulasolutions.com header.b="czVa+0+P"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 2AF4781F88; Sun, 12 Jul 2020 19:59:27 +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.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) (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 65F0381F11 for ; Sun, 12 Jul 2020 19:59:24 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=amarulasolutions.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jagan@amarulasolutions.com Received: by mail-pg1-x542.google.com with SMTP id t6so4990951pgq.1 for ; Sun, 12 Jul 2020 10:59:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i2rHKDh2ft8LjtEhwcX2fu4hSEMW4pAtq4gtzL0RCoI=; b=czVa+0+P8/OfxxAiWp0a9bJ2WMWQfX0N5z8F1HiB+LdK0MtEySdJF7mvc/bY/hOoKb pUATwpXxvD8vrrfXFwprAsrPeciKefFFgklCVdGugBMs9QUIVbeElqpK1ebGwtfdIN26 Mz16PGYywR5ms3pwwpfDuudztnhC59y6pHeHE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=i2rHKDh2ft8LjtEhwcX2fu4hSEMW4pAtq4gtzL0RCoI=; b=KedoSXAAmfqVmN0ggDg5LcDtqTpljDp9Gxk0nnr3Z2O/SpBbYDhGpHYU+nrHwDoQqx 7opqel7eMP+4sBtzy8JCP+zZIzT8sYGw26XcD/LIVJIu+2u9VJ0jhPhaSMii3QnerZ6J NBIQG0L5BRePLc9D5yVgj1DLAg7H+8bslNqp81wB/RRCOtBqsvUzTKzcTiqOwNGQGcsv jQF6qYIkFvcrC2qlXjF7bBLWvCnMjjaeGWBe2Jzu/8wAcxz421+09Jmxc0ZcYVAuT5SR Fggo7RsBhqlH1oJgZDcYFSskYYRJYkWtVEaySKLDgqqU1xP6119JKAuOfRc+CNJejQkX SnJQ== X-Gm-Message-State: AOAM531ywV12dZqK4G8f0vXmnGpHqarXBaMi3l4c8MiqdAykTaiQ1Jrl 7nyq+QlGhQpQQ7gdW2FHJ2Eriw== X-Google-Smtp-Source: ABdhPJyFvuUPJURlDGwYSCr4PTkE2DNOVet/7KTZaVY3vbl72EzQv3dcsOOMNMxFgv8CyVvR+0ViZA== X-Received: by 2002:a05:6a00:224c:: with SMTP id i12mr18888438pfu.18.1594576762717; Sun, 12 Jul 2020 10:59:22 -0700 (PDT) Received: from localhost.localdomain ([2405:201:c809:c7d5:6ca6:2ca5:d575:69a4]) by smtp.gmail.com with ESMTPSA id d16sm12338997pfo.156.2020.07.12.10.59.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jul 2020 10:59:21 -0700 (PDT) From: Jagan Teki To: Simon Glass , Tom Rini Cc: u-boot@lists.denx.de, Jagan Teki Subject: [PATCH] cmd: mvebu/bubt: Drop unused SPI_FLASH_PROTECTION Date: Sun, 12 Jul 2020 23:29:01 +0530 Message-Id: <20200712175901.127788-1-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean SPI_FLASH_PROTECTION config item is never used in anywhere in the U-Boot tree. Drop it. Signed-off-by: Jagan Teki Reviewed-by: Stefan Roese --- cmd/mvebu/bubt.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/cmd/mvebu/bubt.c b/cmd/mvebu/bubt.c index a27b0df8ae..b3b5844267 100644 --- a/cmd/mvebu/bubt.c +++ b/cmd/mvebu/bubt.c @@ -299,9 +299,6 @@ static int spi_burn_image(size_t image_size) return -ENOMEDIUM; } -#ifdef CONFIG_SPI_FLASH_PROTECTION - spi_flash_protect(flash, 0); -#endif erase_bytes = image_size + (flash->erase_size - image_size % flash->erase_size); printf("Erasing %d bytes (%d blocks) at offset 0 ...", @@ -320,10 +317,6 @@ static int spi_burn_image(size_t image_size) else printf("Done!\n"); -#ifdef CONFIG_SPI_FLASH_PROTECTION - spi_flash_protect(flash, 1); -#endif - return ret; }