Message ID | 1583290274-5525-1-git-send-email-light.hsieh@mediatek.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=k6TP=4V=vger.kernel.org=linux-block-owner@kernel.org> Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E3FDE1580 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 4 Mar 2020 02:51:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B95A32073B for <patchwork-linux-block@patchwork.kernel.org>; Wed, 4 Mar 2020 02:51:33 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=mediatek.com header.i=@mediatek.com header.b="DnjbDt+6" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387411AbgCDCvV (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Tue, 3 Mar 2020 21:51:21 -0500 Received: from mailgw01.mediatek.com ([210.61.82.183]:27958 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S2387505AbgCDCvV (ORCPT <rfc822;linux-block@vger.kernel.org>); Tue, 3 Mar 2020 21:51:21 -0500 X-UUID: d9ff75900a824d6d85d786cf561d1d24-20200304 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=hICaNOxn3n/TJ2nKOekirNGAVVkQjyBKYCXj0p1qQX8=; b=DnjbDt+6lPAKfhG4vNbaB2ChrHTknqluv2eRzdT3mXmzQRuhC7eSvI/38E6zuPNwbiQ3XGsX6MUNdNTNCXVDtoaxwoP/ArpqNqw99CC+6+xUAobYS4TJrLG9XRpBKGNf8o0NBFE+23M/D7MIii7dFrS2CHcthqdBaadV8X++m+Y=; X-UUID: d9ff75900a824d6d85d786cf561d1d24-20200304 Received: from mtkcas09.mediatek.inc [(172.21.101.178)] by mailgw01.mediatek.com (envelope-from <light.hsieh@mediatek.com>) (Cellopoint E-mail Firewall v4.1.10 Build 0809 with TLS) with ESMTP id 1754846288; Wed, 04 Mar 2020 10:51:17 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs02n2.mediatek.inc (172.21.101.101) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Wed, 4 Mar 2020 10:48:34 +0800 Received: from mtkswgap22.mediatek.inc (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1395.4 via Frontend Transport; Wed, 4 Mar 2020 10:51:54 +0800 From: <light.hsieh@mediatek.com> To: <ulf.hansson@linaro.org> CC: <linux-mediatek@lists.infradead.org>, <axboe@kernel.dk>, <linux-block@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <kuohong.wang@mediatek.com>, <stanley.chu@mediatek.com>, Light Hsieh <light.hsieh@mediatek.com> Subject: [PATCH v1 0/3] set ro attribute of block device according to write-protection status Date: Wed, 4 Mar 2020 10:51:11 +0800 Message-ID: <1583290274-5525-1-git-send-email-light.hsieh@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty MIME-Version: 1.0 Content-Type: text/plain X-TM-SNTS-SMTP: 59A6C29AEBE25DCB4E8D7679D2008F7C04344D37A7708C9A0A0046E1FC43673F2000:8 X-MTK: N Content-Transfer-Encoding: base64 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org |
Series |
set ro attribute of block device according to write-protection status
|
expand
|
From: Light Hsieh <light.hsieh@mediatek.com> Light Hsieh (3): mmc: record wp_grp_size and boot_wp_status mmc: check write-protection status during BLKROSET ioctl block: set partition read/write policy according to write-protection status block/ioctl.c | 2 +- block/partition-generic.c | 10 +++ drivers/mmc/core/block.c | 217 ++++++++++++++++++++++++++++++++++++++++++++++ drivers/mmc/core/mmc.c | 16 ++++ include/linux/blkdev.h | 1 + include/linux/mmc/card.h | 3 + include/linux/mmc/mmc.h | 2 + 7 files changed, 250 insertions(+), 1 deletion(-)