From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.bugwerft.de ([2a03:6000:1011::59]) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fbZBS-00035z-U6 for linux-mtd@lists.infradead.org; Fri, 06 Jul 2018 22:26:36 +0000 Subject: Re: [PATCH 3/3] mtd: rawnand: marvell: add suspend and resume hooks From: Daniel Mack To: Boris Brezillon Cc: miquel.raynal@bootlin.com, robert.jarzmik@free.fr, dwmw2@infradead.org, linux-mtd@lists.infradead.org References: <20180706201415.1930-1-daniel@zonque.org> <20180706201415.1930-3-daniel@zonque.org> <20180706232239.269a8d61@bbrezillon> Message-ID: <82165d1d-7cfd-28b0-89d6-dbaa24a658d5@zonque.org> Date: Sat, 7 Jul 2018 00:26:22 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Saturday, July 07, 2018 12:15 AM, Daniel Mack wrote: > Hi, > > On 07/06/2018 11:22 PM, Boris Brezillon wrote: >> On Fri, 6 Jul 2018 22:14:15 +0200 >> Daniel Mack wrote: >> >>> This patch restores the suspend and resume hooks that the old driver used >>> to have. Apart from stopping and starting the clocks, the resume callback >>> also nullifies the selected_chip pointer, so the next command that is issued >>> will re-select the chip and thereby restore the timing registers. >>> >>> Without this patch, a PXA3xx based system would cough up an error similar to >>> the one below after resume. >>> >>> [ 44.660162] marvell-nfc 43100000.nand-controller: Timeout waiting for RB signal >>> [ 44.671492] ubi0 error: ubi_io_write: error -110 while writing 2048 bytes to PEB 102:38912, written 0 bytes >>> [ 44.682887] CPU: 0 PID: 1417 Comm: remote-control Not tainted 4.18.0-rc2+ #344 >>> [ 44.691197] Hardware name: Marvell PXA3xx (Device Tree Support) >>> [ 44.697111] Backtrace: >>> [ 44.699593] [] (dump_backtrace) from [] (show_stack+0x18/0x1c) >>> [ 44.708931] r7:00000800 r6:00009800 r5:00000066 r4:c6139000 >>> [ 44.715833] [] (show_stack) from [] (dump_stack+0x20/0x28) >>> [ 44.724206] [] (dump_stack) from [] (ubi_io_write+0x3d4/0x630) >>> [ 44.732925] [] (ubi_io_write) from [] (ubi_eba_write_leb+0x690/0x6fc) >>> ... >>> >>> Signed-off-by: Daniel Mack >> >> You probably want patch 2 and 3 backported to stable. > > Given that nobody has cared so far and the only board that depends on > proper PM that seems to be using this driver has bitrot quite badly in > the past and is undergoing a major rewrite currently, I'm not sure > whether it's worth it really. Ah, I only see this now, but patch 2 also fixes a problem with the .remove() callback of this driver which also blindly grabs ->reg_clk without further checks. Hence the entire series actually qualifies for stable@ I figure? Thanks, Daniel