* [PATCH] mtd: m25p80: add message if mmap flash read is supported
@ 2016-04-27 20:36 Heiner Kallweit
[not found] ` <9111b023-d1e5-3084-4320-acf727e828f4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Heiner Kallweit @ 2016-04-27 20:36 UTC (permalink / raw)
To: Brian Norris
Cc: MTD Mailing List,
linux-spi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
As a follow-up to commit 08922f644878c9 "mtd: devices: m25p80: add support for
mmap read request" add an info to syslog if mmap flash read is supported for a
device.
Signed-off-by: Heiner Kallweit <hkallweit1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
drivers/mtd/devices/m25p80.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c
index 9d68544..433b100 100644
--- a/drivers/mtd/devices/m25p80.c
+++ b/drivers/mtd/devices/m25p80.c
@@ -233,6 +233,9 @@ static int m25p_probe(struct spi_device *spi)
if (ret)
return ret;
+ if (spi_flash_read_supported(spi))
+ dev_info(&spi->dev, "memory-mapped flash read supported\n");
+
return mtd_device_register(&nor->mtd, data ? data->parts : NULL,
data ? data->nr_parts : 0);
}
--
2.8.0
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: m25p80: add message if mmap flash read is supported
[not found] ` <9111b023-d1e5-3084-4320-acf727e828f4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2016-05-05 0:54 ` Brian Norris
0 siblings, 0 replies; 2+ messages in thread
From: Brian Norris @ 2016-05-05 0:54 UTC (permalink / raw)
To: Heiner Kallweit; +Cc: MTD Mailing List
(moving linux-spi to BCC, since this is MTD-only, and doesn't concern
the SPI core)
On Wed, Apr 27, 2016 at 10:36:48PM +0200, Heiner Kallweit wrote:
> As a follow-up to commit 08922f644878c9 "mtd: devices: m25p80: add support for
> mmap read request" add an info to syslog if mmap flash read is supported for a
> device.
Any particular reason you want this to be printed? There are quite a few
other features we don't print to the log right now.
Brian
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-05 0:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 20:36 [PATCH] mtd: m25p80: add message if mmap flash read is supported Heiner Kallweit
[not found] ` <9111b023-d1e5-3084-4320-acf727e828f4-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2016-05-05 0:54 ` Brian Norris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).