From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com ([134.134.136.20]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1g1pSh-0001Fs-Ht for linux-mtd@lists.infradead.org; Mon, 17 Sep 2018 09:04:57 +0000 Subject: Re: [PATCH v2] mtd: spi-nor: Use DMA-safe buffer for JEDEC ID in spi_nor_read_id() To: Boris Brezillon Cc: Marek Vasut , Brian Norris , linux-mtd@lists.infradead.org, David Woodhouse , Richard Weinberger References: <20180917081018.14475-1-jarkko.nikula@linux.intel.com> <20180917101851.3d359d18@bbrezillon> <20180917102821.16c69697@bbrezillon> <08b87712-b018-e448-21b5-aa7c3c7b82cc@linux.intel.com> <20180917104633.5a18bcd1@bbrezillon> From: Jarkko Nikula Message-ID: <03fe4a2a-2b74-b4b9-b143-9a1ef5cb4907@linux.intel.com> Date: Mon, 17 Sep 2018 12:04:43 +0300 MIME-Version: 1.0 In-Reply-To: <20180917104633.5a18bcd1@bbrezillon> 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 09/17/2018 11:46 AM, Boris Brezillon wrote: > On Mon, 17 Sep 2018 11:41:31 +0300 > Jarkko Nikula wrote: > >> On 09/17/2018 11:28 AM, Boris Brezillon wrote: >>> >>> Hm, I just had a look at all ->read/write_reg() call sites and it seems >>> we have the same problem in other places. Maybe it's just better to fix >>> the problem in m25p80 ->read/write_reg() implems for now and see how we >>> can fix that generically afterwards. >>> >> It's not only m25p80, how about all other cases calling spi_nor_scan()? >> > > I agree, the problem is more generic than that, but commit 4120f8d158ef > only breaks the m25p80 driver, and I'd like to keep the fix as simple as > possible. > You are right, I looked at too quickly spi_nor_scan() users. Those others are controller drivers. -- Jarkko