From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 5 Dec 2013 15:12:25 +0800 From: Huang Shijie To: Brian Norris Subject: Re: [PATCH 0/4] mtd: spi-nor: add a new framework for SPI NOR Message-ID: <20131205071224.GA8936@shlinux2.ap.freescale.net> References: <1385447575-23773-1-git-send-email-b32955@freescale.com> <20131127043253.GA9468@ld-irv-0074.broadcom.com> <5298AA23.7080404@st.com> <1386082273.18201.61.camel@shinybook.infradead.org> <20131204184405.GE9468@ld-irv-0074.broadcom.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20131204184405.GE9468@ld-irv-0074.broadcom.com> Cc: marex@denx.de, Angus Clark , broonie@linaro.org, David Woodhouse , Linus Walleij , linux-spi@vger.kernel.org, linux-mtd@lists.infradead.org, pekon@ti.com, sourav.poddar@ti.com, Lee Jones , linux-arm-kernel@lists.infradead.org List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Dec 04, 2013 at 10:44:05AM -0800, Brian Norris wrote: > > I mostly bring this up, though, because it is an example of hardware > that > > (a) can operate as a true SPI device (hardware (1) can handle generic > SPI transfers), but > (b) requires knowledge of the details of SPI flash in order to get > optimal usage out of the acceleration from (2). > > In my book, point (a) and (b) hold some bearing over the question of > "where should this SPI NOR framework live", because it is reasonable > that a single driver for this hardware should be able to handle either > true SPI devices or accelerated SPI-NOR flash. We have add a @read_id hook for the spi-nor layer, you can use it to read out more info (such as the Device Geometry Definition) for your spi-nor controller driver. Is it okay? thanks Huang Shijie