From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by bombadil.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1OR6lO-0005vb-IV for linux-mtd@lists.infradead.org; Tue, 22 Jun 2010 16:55:55 +0000 Received: by bwz6 with SMTP id 6so1015077bwz.36 for ; Tue, 22 Jun 2010 09:55:52 -0700 (PDT) Date: Tue, 22 Jun 2010 20:55:45 +0400 From: Anton Vorontsov To: Barry Song <21cnbao@gmail.com> Subject: Re: [Uclinux-dist-devel] [PATCH 1/2] mtd: m25p80: Reworkprobing/JEDEC code Message-ID: <20100622165545.GA10255@oksana.dev.rtsoft.ru> References: <20100618133212.GA5276@oksana.dev.rtsoft.ru> <0F1B54C89D5F954D8535DB252AF412FA065551D8@chinexm1.ad.analog.com> <20100621071551.GA16109@oksana.dev.rtsoft.ru> <20100621073909.GA20674@oksana.dev.rtsoft.ru> <20100621112049.GA9273@oksana.dev.rtsoft.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: David Brownell , Artem Bityutskiy , linux-kernel@vger.kernel.org, "Song, Barry" , linuxppc-dev@ozlabs.org, linux-mtd@lists.infradead.org, uclinux-dist-devel@blackfin.uclinux.org, Andrew Morton , David Woodhouse List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Jun 22, 2010 at 02:37:52PM +0800, Barry Song wrote: [...] > >                jid = jedec_probe(spi); > >                if (!jid) { > > -                       dev_info(&spi->dev, "non-JEDEC variant of %s\n", > > -                                id->name); > > +                       return -ENODEV; > The patch looks good to me. Only problem is NULL is also returned by > spi_write_then_read() fail: [...] > Here much better for -EIO (return tmp)? Agreed. Though, this is not a regression, and I guess desires its own patch. Here are two patches, one for 2.6.35 (minimal changes to fix the JEDEC problem), another for 2.6.36.