From: Baruch Siach Subject: Re: [PATCH/RFC 2/2] mtd: m25p80: Call a platform power method in the driver Date: Sun, 28 Aug 2011 08:22:15 +0300 Message-ID: <20110828052215.GA7033@sapphire.tkos.co.il> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: spi-devel-general@lists.sourceforge.net, artem.bityutskiy@intel.com, linux-mtd@lists.infradead.org, dwmw2@infradead.org To: Stanimir Varbanov Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+gldm-linux-mtd-36=gmane.org@lists.infradead.org List-Id: linux-spi.vger.kernel.org Hi Stanimir, On Thu, Aug 25, 2011 at 04:29:12PM +0300, Stanimir Varbanov wrote: > On some devices the flash chip could be powered off when m25p driver > is probed. To avoid erroneous detection the power of the chip must be > turn on, add a power function in m25p_probe to switch on the power by > platform data. The power will be turned off at the probe end. [snip] > + /* power on device while probing */ > + m25p_power(data, 1); [snip] > +out: > + m25p_power(data, 0); Shouldn't you power off in m25p_remove() as well? baruch -- ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch@tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il - ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/