From 2da4ac8256f432877432a46bd5999934b0f8c12b Mon Sep 17 00:00:00 2001 From: avg Date: Fri, 23 Jun 2017 06:25:39 +0000 Subject: [PATCH] jedec_ts: read device id from the correct register Due to my braino / typo the driver was reading the Vendor ID register twice. MFC after: 3 days --- sys/dev/jedec_ts/jedec_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/jedec_ts/jedec_ts.c b/sys/dev/jedec_ts/jedec_ts.c index d1e9596c8769..c8d13796d4fb 100644 --- a/sys/dev/jedec_ts/jedec_ts.c +++ b/sys/dev/jedec_ts/jedec_ts.c @@ -114,7 +114,7 @@ ts_attach(device_t dev) device_printf(dev, "failed to read Manufacturer ID\n"); return (ENXIO); } - err = ts_readw_be(dev, 6, &devid); + err = ts_readw_be(dev, 7, &devid); if (err != 0) { device_printf(dev, "failed to read Device ID\n"); return (ENXIO);