From patchwork Tue Sep 24 08:03:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huaijie Yi X-Patchwork-Id: 1166448 X-Patchwork-Delegate: miquel.raynal@bootlin.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RKNcRZZo"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (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 ozlabs.org (Postfix) with ESMTPS id 46ctz04hq4z9sP3 for ; Tue, 24 Sep 2019 18:05:16 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=K45RUiw61bibVs5D9ixI2HS49CMcAO3V59nGr1fHkR0=; b=RKNcRZZovAtPJk IP/jYZLnbfxgRV4StKqwVMjDhKzO5KB8p5JtKEc6FCtX1vVKs59fv4Sngs/UGL5dy3E2zWSqTKuOG rJKZ6YeDPZz54G+u0Jd9rjKTcRd2naPXgiAhMyO+8Du/4TrPsuxm+QM8/pWsxs52fXvTCjTmceF+2 R84B1F1+Ec+OgaYNE+A86Da2JPOwaFx/eSUyqc58txlFNwlezDb6X1OBFfmZBWBO3eqbpRYrlEszf yM0U+EUwV5XQXBv87kFdR5rkRZ7T3sDhu9lI5xSFK9IT8iFYjD9aUd7ZwB+MiNMIvlcyEJu3RaOm7 B6iugWmh4vWJujxI8VBg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.2 #3 (Red Hat Linux)) id 1iCfov-0006dj-4C; Tue, 24 Sep 2019 08:05:13 +0000 Received: from szxga06-in.huawei.com ([45.249.212.32] helo=huawei.com) by bombadil.infradead.org with esmtps (Exim 4.92.2 #3 (Red Hat Linux)) id 1iCfnQ-0004Xx-Ng for linux-mtd@lists.infradead.org; Tue, 24 Sep 2019 08:03:42 +0000 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 4C2A023BE55810675A48; Tue, 24 Sep 2019 16:03:38 +0800 (CST) Received: from SZXY1Y004550421.china.huawei.com (10.61.99.243) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.439.0; Tue, 24 Sep 2019 16:03:30 +0800 From: Huaijie Yi To: , , , , , , Subject: [PATCH] mtd: change perm of module param phram to writable Date: Tue, 24 Sep 2019 08:03:15 +0000 Message-ID: <1569312195-18660-1-git-send-email-yihuaijie@huawei.com> X-Mailer: git-send-email 2.6.4.windows.1 MIME-Version: 1.0 X-Originating-IP: [10.61.99.243] X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190924_010341_064117_94A5A541 X-CRM114-Status: UNSURE ( 9.25 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.3 (--) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-2.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [45.249.212.32 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nixiaoming@huawei.com, linux-mtd@lists.infradead.org Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org we need param phram to be writable to create multiple device under built-in case. As cmdline could only set one device, and more devices must be created by writing ",," to /sys/module/phram/parameters/phram Signed-off-by: Xiaoming Ni Signed-off-by: Huaijie Yi --- drivers/mtd/devices/phram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/devices/phram.c b/drivers/mtd/devices/phram.c index a5833dd..e3469ec 100644 --- a/drivers/mtd/devices/phram.c +++ b/drivers/mtd/devices/phram.c @@ -312,7 +312,7 @@ static int phram_param_call(const char *val, const struct kernel_param *kp) #endif } -module_param_call(phram, phram_param_call, NULL, NULL, 000); +module_param_call(phram, phram_param_call, NULL, NULL, 0200); MODULE_PARM_DESC(phram, "Memory region to map. \"phram=,,\"");