From mboxrd@z Thu Jan 1 00:00:00 1970 From: Boris Brezillon Subject: Re: [PATCH v3 6/7] mtd: spinand: Use the spi-mem dirmap API Date: Thu, 24 Jan 2019 09:49:44 +0100 Message-ID: <20190124094944.726dd4e0@bbrezillon> References: <20181106160536.13415-1-boris.brezillon@bootlin.com> <20181106160536.13415-7-boris.brezillon@bootlin.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: Yogesh Narayan Gaur , Vignesh R , Tudor Ambarus , Richard Weinberger , Cyrille Pitchen , linux-spi@vger.kernel.org, Marek Vasut , Frieder Schrempf , Mark Brown , linux-mtd@lists.infradead.org, Piotr Bugalski , Brian Norris , David Woodhouse To: Boris Brezillon , Miquel Raynal , Stefan Roese Return-path: In-Reply-To: <20181106160536.13415-7-boris.brezillon@bootlin.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+gldm-linux-mtd-36=gmane.org@lists.infradead.org List-Id: linux-spi.vger.kernel.org Hi Miquel, On Tue, 6 Nov 2018 17:05:35 +0100 Boris Brezillon wrote: > Make use of the spi-mem direct mapping API to let advanced controllers > optimize read/write operations when they support direct mapping. > > Signed-off-by: Boris Brezillon > Reviewed-by: Miquel Raynal Can we drop/revert this patch until we find out what's going on with Stefan's setup. > +const struct spi_mem_op * > +spinand_find_supported_op(struct spinand_device *spinand, > + const struct spi_mem_op *ops, > + unsigned int nops) > +{ > + unsigned int i; > + > + for (i = 0; i < nops; i++) { > + if (spi_mem_supports_op(spinand->spimem, &ops[i])) > + return &ops[i]; > + } > + > + return NULL; > +} > + Looks like this function is never used. Probably a leftover from early versions of this patch :-/. Regards, Boris ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/