From patchwork Mon Apr 25 13:59:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ying-Chun Liu X-Patchwork-Id: 1621956 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=HMeGUT8+; dkim-atps=neutral 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=) 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) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4Kn67x2LM8z9s0B for ; Mon, 25 Apr 2022 23:59:25 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E39C583CE9; Mon, 25 Apr 2022 15:59:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="HMeGUT8+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id CE18A83C96; Mon, 25 Apr 2022 15:59:15 +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,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) (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 8C1EC83953 for ; Mon, 25 Apr 2022 15:59:12 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=grandpaul@gmail.com Received: by mail-pl1-x634.google.com with SMTP id s17so27252722plg.9 for ; Mon, 25 Apr 2022 06:59:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9q+gq9fu0MCO1jxFxWexC3j3uGx2hPTyVyCQ4HOeGFI=; b=HMeGUT8+h8Oxqs3CKSeU8H5T2Ue9t0FU1+I/7XvM4pTFAx1XiJ2RCTq4Hx+m0NmKeP YlbMrFIvU1J4ijvXMQN3h9tmO2KLmFd3M92PQ1Zr1P601ZhA+dBglIWgWC1iG0pMWn4W V9fun50E3IXCAgpyb/nbDbfMkkPhEb4dMobKVjk+yhUR9Sg7UZfGigHceQnT33PWsCCa zDubQaXcEsxcAeBTqHubFWY1OurAqwh9W1SzZeM1XXKfKJUybgyVtS9qJGJeEKosUHzE BO7lbSGwGoO7yJQKf2bXD5086LWsXq/KbVX+VcAc87nEx/Xczs3UUy0t2gpud2orr7P1 gPWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9q+gq9fu0MCO1jxFxWexC3j3uGx2hPTyVyCQ4HOeGFI=; b=LC7AJfgj9HJJnfUcBBjUy8UOweJdAB1fqeaq1jKqwIKtsQ4fCUuDhy1bpAK9QVyIuC lLz5ya0n6UndabQmkJa4fTRLx8svOcmUNcqWlHpT0UaPaZEWiFHz/APonKkWS+6zp0cM xhoA/XFAjho+WAfPhkS8L1DHmI6aiJMZt4+wPh7nQP5Q5MbACTbFY7NA0AiaZXo4uBLs jdvmZ9rFic3hgkabbpvK1pTCyUK4kfWYKhyRyOWqJGSF9/hQZkOdhXRfA0OeDwAg7Gsy 8qX+imcvhIKTQuSVGtG8mUuwrCPKlpl5ngYOcavJqH4YZrRzxXEX7Yc1Oj2gLAuZIt+r 1R3w== X-Gm-Message-State: AOAM532Tsg3cBBk2Qlr1Rk4uLCxVag1XaOReQmUHoiIVrN6Nz9ad7mmB NCdHB3JOciTdqErorkCU3ph1VR5gbqE= X-Google-Smtp-Source: ABdhPJxcUV3gM1VoWOxp/IwvlpjAEvQaVOAWJcflBlyveogwcKE89y/xhTnV1kwNXr3zrBZRGHoxjg== X-Received: by 2002:a17:902:9005:b0:156:8a9d:ba49 with SMTP id a5-20020a170902900500b001568a9dba49mr18456180plp.42.1650895150449; Mon, 25 Apr 2022 06:59:10 -0700 (PDT) Received: from localhost ([111.184.129.17]) by smtp.gmail.com with ESMTPSA id s1-20020a17090a1c0100b001cd4989fee1sm15479443pjs.45.2022.04.25.06.59.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Apr 2022 06:59:09 -0700 (PDT) From: Ying-Chun Liu To: u-boot@lists.denx.de Cc: "Ying-Chun Liu (PaulLiu)" Subject: [PATCH 0/2] allow to write protect single boot partition Date: Mon, 25 Apr 2022 21:59:01 +0800 Message-Id: <20220425135903.271098-1-grandpaul@gmail.com> X-Mailer: git-send-email 2.35.1 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.5 at phobos.denx.de X-Virus-Status: Clean From: "Ying-Chun Liu (PaulLiu)" Modify mmc wp command and mmc driver to allow write protect only a single boot partition. Ying-Chun Liu (PaulLiu) (2): drivers: mmc: write protect single boot area cmd: mmc: allow to write protect single boot partition cmd/mmc.c | 18 +++++++++++++++--- drivers/mmc/mmc.c | 27 +++++++++++++++++++++++++++ include/mmc.h | 16 ++++++++++++++++ 3 files changed, 58 insertions(+), 3 deletions(-)