Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751911AbbKLGXz (ORCPT ); Thu, 12 Nov 2015 01:23:55 -0500 Received: from mail-pa0-f44.google.com ([209.85.220.44]:32785 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750812AbbKLGXx (ORCPT ); Thu, 12 Nov 2015 01:23:53 -0500 From: Saurabh Sengar To: computersforpeace@gmail.com, joe@perches.com Cc: andy.shevchenko@gmail.com, joern@lazybastard.org, dwmw2@infradead.org, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] mtd: phram: error handling Date: Thu, 12 Nov 2015 11:53:46 +0530 Message-Id: <1447309426-3583-1-git-send-email-saurabh.truth@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20151111194449.GH12143@google.com> References: <20151111194449.GH12143@google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1614 Lines: 39 > More importantly, it's good to test these cases too: > * phram is built-in (not a module), with and without a phram= line on > the commandline > * writing to /sys/module/phram/parameters/phram (for both the module > and built-in cases) Hi Brian, 1) I have tried phram as built-in, with and without phram= line in cmdline but both the time there was no phram directory found in /sys/modules, neither /dev/mtd0 (do I need to enablesome config options ?) 2) There was no 'parameters' directory inside /sys/module/phram when I used phram as module, though /dev/mtd0 and /dev/mtd0ro were present I tried searching phram in kernel/Documentation but couldn't found anything. I have few queries related to phram driver, please answer if your time permits. (Feel free to ignore if I am taking too much your time, I know these are too many :) ) Q1) Phram driver is used for accessing memory which are there but not currently mapped in system? am I correct? Q2) When I register device with junk names like phram=saurabh,0x1f7000000,0x400, it registers fine with name 'saurabh', isn't it wrong ? Q3) If I access some memory which does not even exist, driver still registers and even read operation is successfull to it. eg: phram=ram,8Gi,1ki (My laptop have 4GB ram but accessing 8GB address of ram) Regards, Saurabh ------------------------------------------- -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/