From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gate.crashing.org ([63.228.1.57]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cz9wi-0006mq-NX for linux-mtd@lists.infradead.org; Fri, 14 Apr 2017 22:44:08 +0000 Message-ID: <1492209763.25766.27.camel@kernel.crashing.org> Subject: Re: [PATCH 10/10] mtd: spi-nor: aspeed: optimize read mode From: Benjamin Herrenschmidt To: Marek Vasut , =?ISO-8859-1?Q?C=E9dric?= Le Goater , linux-mtd@lists.infradead.org Cc: Cyrille Pitchen , Boris Brezillon , David Woodhouse , Brian Norris , Richard Weinberger , Joel Stanley , Rob Herring Date: Sat, 15 Apr 2017 08:42:43 +1000 In-Reply-To: References: <1491497808-25487-1-git-send-email-clg@kaod.org> <1491497808-25487-11-git-send-email-clg@kaod.org> <7d80fbb3-81d9-3ac0-6bb9-47d2d4cf0855@gmail.com> <6f7f424c-2a3f-4b6d-f7aa-bfae749de0b3@gmail.com> <1492206032.25766.7.camel@kernel.crashing.org> <26f0d520-bfe3-cc26-d3d5-3185813b7ffb@gmail.com> <1492207894.25766.20.camel@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2017-04-15 at 00:25 +0200, Marek Vasut wrote: > That sounds like a good option, yes. And if it's just forcing fixed > speed, that's awesome, but I think there are more values that might need > to be passed ... I think that's what Cedric can answer. Yes, fixed and delay. Not a huge deal. Also a module parameter makes it hard to specify different settings for different instances of the device/flash. IE, there can be multiple flash controllers and each of them can have multiple chip selects. The DT is the only sane way for that. > > That becomes akin to what we do with Ethernet PHYs for example :) > > Even better, I recall seeing some speed DT props in the SPI binding > docs, so we already have those in place. Right though the gate delay is rather IP block specific but that's not a huge issue. Cheers, Ben.