From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.8 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C173DC432C1 for ; Tue, 24 Sep 2019 08:05:14 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F8C5214DA for ; Tue, 24 Sep 2019 08:05:14 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RKNcRZZo" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3F8C5214DA Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=huawei.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-mtd-bounces+linux-mtd=archiver.kernel.org@lists.infradead.org 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-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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" Errors-To: linux-mtd-bounces+linux-mtd=archiver.kernel.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=,,\""); -- 1.8.5.6 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/