svn commit: r320259 - head/sys/dev/jedec_ts

Andriy Gapon avg at FreeBSD.org
Fri Jun 23 06:25:40 UTC 2017


Author: avg
Date: Fri Jun 23 06:25:39 2017
New Revision: 320259
URL: https://svnweb.freebsd.org/changeset/base/320259

Log:
  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

Modified:
  head/sys/dev/jedec_ts/jedec_ts.c

Modified: head/sys/dev/jedec_ts/jedec_ts.c
==============================================================================
--- head/sys/dev/jedec_ts/jedec_ts.c	Fri Jun 23 03:55:00 2017	(r320258)
+++ head/sys/dev/jedec_ts/jedec_ts.c	Fri Jun 23 06:25:39 2017	(r320259)
@@ -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);


More information about the svn-src-all mailing list