ds1wm.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. /*
  2. * 1-wire busmaster driver for DS1WM and ASICs with embedded DS1WMs
  3. * such as HP iPAQs (including h5xxx, h2200, and devices with ASIC3
  4. * like hx4700).
  5. *
  6. * Copyright (c) 2004-2005, Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
  7. * Copyright (c) 2004-2007, Matt Reimer <mreimer@vpop.net>
  8. *
  9. * Use consistent with the GNU GPL is permitted,
  10. * provided that this copyright notice is
  11. * preserved in its entirety in all copies and derived works.
  12. */
  13. #include <linux/module.h>
  14. #include <linux/interrupt.h>
  15. #include <linux/irq.h>
  16. #include <linux/pm.h>
  17. #include <linux/platform_device.h>
  18. #include <linux/err.h>
  19. #include <linux/delay.h>
  20. #include <linux/mfd/core.h>
  21. #include <linux/mfd/ds1wm.h>
  22. #include <linux/slab.h>
  23. #include <asm/io.h>
  24. #include "../w1.h"
  25. #include "../w1_int.h"
  26. #define DS1WM_CMD 0x00 /* R/W 4 bits command */
  27. #define DS1WM_DATA 0x01 /* R/W 8 bits, transmit/receive buffer */
  28. #define DS1WM_INT 0x02 /* R/W interrupt status */
  29. #define DS1WM_INT_EN 0x03 /* R/W interrupt enable */
  30. #define DS1WM_CLKDIV 0x04 /* R/W 5 bits of divisor and pre-scale */
  31. #define DS1WM_CNTRL 0x05 /* R/W master control register (not used yet) */
  32. #define DS1WM_CMD_1W_RESET (1 << 0) /* force reset on 1-wire bus */
  33. #define DS1WM_CMD_SRA (1 << 1) /* enable Search ROM accelerator mode */
  34. #define DS1WM_CMD_DQ_OUTPUT (1 << 2) /* write only - forces bus low */
  35. #define DS1WM_CMD_DQ_INPUT (1 << 3) /* read only - reflects state of bus */
  36. #define DS1WM_CMD_RST (1 << 5) /* software reset */
  37. #define DS1WM_CMD_OD (1 << 7) /* overdrive */
  38. #define DS1WM_INT_PD (1 << 0) /* presence detect */
  39. #define DS1WM_INT_PDR (1 << 1) /* presence detect result */
  40. #define DS1WM_INT_TBE (1 << 2) /* tx buffer empty */
  41. #define DS1WM_INT_TSRE (1 << 3) /* tx shift register empty */
  42. #define DS1WM_INT_RBF (1 << 4) /* rx buffer full */
  43. #define DS1WM_INT_RSRF (1 << 5) /* rx shift register full */
  44. #define DS1WM_INTEN_EPD (1 << 0) /* enable presence detect int */
  45. #define DS1WM_INTEN_IAS (1 << 1) /* INTR active state */
  46. #define DS1WM_INTEN_ETBE (1 << 2) /* enable tx buffer empty int */
  47. #define DS1WM_INTEN_ETMT (1 << 3) /* enable tx shift register empty int */
  48. #define DS1WM_INTEN_ERBF (1 << 4) /* enable rx buffer full int */
  49. #define DS1WM_INTEN_ERSRF (1 << 5) /* enable rx shift register full int */
  50. #define DS1WM_INTEN_DQO (1 << 6) /* enable direct bus driving ops */
  51. #define DS1WM_INTEN_NOT_IAS (~DS1WM_INTEN_IAS) /* all but INTR active state */
  52. #define DS1WM_TIMEOUT (HZ * 5)
  53. static struct {
  54. unsigned long freq;
  55. unsigned long divisor;
  56. } freq[] = {
  57. { 1000000, 0x80 },
  58. { 2000000, 0x84 },
  59. { 3000000, 0x81 },
  60. { 4000000, 0x88 },
  61. { 5000000, 0x82 },
  62. { 6000000, 0x85 },
  63. { 7000000, 0x83 },
  64. { 8000000, 0x8c },
  65. { 10000000, 0x86 },
  66. { 12000000, 0x89 },
  67. { 14000000, 0x87 },
  68. { 16000000, 0x90 },
  69. { 20000000, 0x8a },
  70. { 24000000, 0x8d },
  71. { 28000000, 0x8b },
  72. { 32000000, 0x94 },
  73. { 40000000, 0x8e },
  74. { 48000000, 0x91 },
  75. { 56000000, 0x8f },
  76. { 64000000, 0x98 },
  77. { 80000000, 0x92 },
  78. { 96000000, 0x95 },
  79. { 112000000, 0x93 },
  80. { 128000000, 0x9c },
  81. /* you can continue this table, consult the OPERATION - CLOCK DIVISOR
  82. section of the ds1wm spec sheet. */
  83. };
  84. struct ds1wm_data {
  85. void __iomem *map;
  86. int bus_shift; /* # of shifts to calc register offsets */
  87. struct platform_device *pdev;
  88. const struct mfd_cell *cell;
  89. int irq;
  90. int slave_present;
  91. void *reset_complete;
  92. void *read_complete;
  93. void *write_complete;
  94. int read_error;
  95. /* last byte received */
  96. u8 read_byte;
  97. /* byte to write that makes all intr disabled, */
  98. /* considering active_state (IAS) (optimization) */
  99. u8 int_en_reg_none;
  100. };
  101. static inline void ds1wm_write_register(struct ds1wm_data *ds1wm_data, u32 reg,
  102. u8 val)
  103. {
  104. __raw_writeb(val, ds1wm_data->map + (reg << ds1wm_data->bus_shift));
  105. }
  106. static inline u8 ds1wm_read_register(struct ds1wm_data *ds1wm_data, u32 reg)
  107. {
  108. return __raw_readb(ds1wm_data->map + (reg << ds1wm_data->bus_shift));
  109. }
  110. static irqreturn_t ds1wm_isr(int isr, void *data)
  111. {
  112. struct ds1wm_data *ds1wm_data = data;
  113. u8 intr;
  114. u8 inten = ds1wm_read_register(ds1wm_data, DS1WM_INT_EN);
  115. /* if no bits are set in int enable register (except the IAS)
  116. than go no further, reading the regs below has side effects */
  117. if (!(inten & DS1WM_INTEN_NOT_IAS))
  118. return IRQ_NONE;
  119. ds1wm_write_register(ds1wm_data,
  120. DS1WM_INT_EN, ds1wm_data->int_en_reg_none);
  121. /* this read action clears the INTR and certain flags in ds1wm */
  122. intr = ds1wm_read_register(ds1wm_data, DS1WM_INT);
  123. ds1wm_data->slave_present = (intr & DS1WM_INT_PDR) ? 0 : 1;
  124. if ((intr & DS1WM_INT_TSRE) && ds1wm_data->write_complete) {
  125. inten &= ~DS1WM_INTEN_ETMT;
  126. complete(ds1wm_data->write_complete);
  127. }
  128. if (intr & DS1WM_INT_RBF) {
  129. /* this read clears the RBF flag */
  130. ds1wm_data->read_byte = ds1wm_read_register(ds1wm_data,
  131. DS1WM_DATA);
  132. inten &= ~DS1WM_INTEN_ERBF;
  133. if (ds1wm_data->read_complete)
  134. complete(ds1wm_data->read_complete);
  135. }
  136. if ((intr & DS1WM_INT_PD) && ds1wm_data->reset_complete) {
  137. inten &= ~DS1WM_INTEN_EPD;
  138. complete(ds1wm_data->reset_complete);
  139. }
  140. ds1wm_write_register(ds1wm_data, DS1WM_INT_EN, inten);
  141. return IRQ_HANDLED;
  142. }
  143. static int ds1wm_reset(struct ds1wm_data *ds1wm_data)
  144. {
  145. unsigned long timeleft;
  146. DECLARE_COMPLETION_ONSTACK(reset_done);
  147. ds1wm_data->reset_complete = &reset_done;
  148. /* enable Presence detect only */
  149. ds1wm_write_register(ds1wm_data, DS1WM_INT_EN, DS1WM_INTEN_EPD |
  150. ds1wm_data->int_en_reg_none);
  151. ds1wm_write_register(ds1wm_data, DS1WM_CMD, DS1WM_CMD_1W_RESET);
  152. timeleft = wait_for_completion_timeout(&reset_done, DS1WM_TIMEOUT);
  153. ds1wm_data->reset_complete = NULL;
  154. if (!timeleft) {
  155. dev_err(&ds1wm_data->pdev->dev, "reset failed, timed out\n");
  156. return 1;
  157. }
  158. if (!ds1wm_data->slave_present) {
  159. dev_dbg(&ds1wm_data->pdev->dev, "reset: no devices found\n");
  160. return 1;
  161. }
  162. return 0;
  163. }
  164. static int ds1wm_write(struct ds1wm_data *ds1wm_data, u8 data)
  165. {
  166. unsigned long timeleft;
  167. DECLARE_COMPLETION_ONSTACK(write_done);
  168. ds1wm_data->write_complete = &write_done;
  169. ds1wm_write_register(ds1wm_data, DS1WM_INT_EN,
  170. ds1wm_data->int_en_reg_none | DS1WM_INTEN_ETMT);
  171. ds1wm_write_register(ds1wm_data, DS1WM_DATA, data);
  172. timeleft = wait_for_completion_timeout(&write_done, DS1WM_TIMEOUT);
  173. ds1wm_data->write_complete = NULL;
  174. if (!timeleft) {
  175. dev_err(&ds1wm_data->pdev->dev, "write failed, timed out\n");
  176. return -ETIMEDOUT;
  177. }
  178. return 0;
  179. }
  180. static u8 ds1wm_read(struct ds1wm_data *ds1wm_data, unsigned char write_data)
  181. {
  182. unsigned long timeleft;
  183. u8 intEnable = DS1WM_INTEN_ERBF | ds1wm_data->int_en_reg_none;
  184. DECLARE_COMPLETION_ONSTACK(read_done);
  185. ds1wm_read_register(ds1wm_data, DS1WM_DATA);
  186. ds1wm_data->read_complete = &read_done;
  187. ds1wm_write_register(ds1wm_data, DS1WM_INT_EN, intEnable);
  188. ds1wm_write_register(ds1wm_data, DS1WM_DATA, write_data);
  189. timeleft = wait_for_completion_timeout(&read_done, DS1WM_TIMEOUT);
  190. ds1wm_data->read_complete = NULL;
  191. if (!timeleft) {
  192. dev_err(&ds1wm_data->pdev->dev, "read failed, timed out\n");
  193. ds1wm_data->read_error = -ETIMEDOUT;
  194. return 0xFF;
  195. }
  196. ds1wm_data->read_error = 0;
  197. return ds1wm_data->read_byte;
  198. }
  199. static int ds1wm_find_divisor(int gclk)
  200. {
  201. int i;
  202. for (i = ARRAY_SIZE(freq)-1; i >= 0; --i)
  203. if (gclk >= freq[i].freq)
  204. return freq[i].divisor;
  205. return 0;
  206. }
  207. static void ds1wm_up(struct ds1wm_data *ds1wm_data)
  208. {
  209. int divisor;
  210. struct ds1wm_driver_data *plat = ds1wm_data->pdev->dev.platform_data;
  211. if (ds1wm_data->cell->enable)
  212. ds1wm_data->cell->enable(ds1wm_data->pdev);
  213. divisor = ds1wm_find_divisor(plat->clock_rate);
  214. dev_dbg(&ds1wm_data->pdev->dev,
  215. "found divisor 0x%x for clock %d\n", divisor, plat->clock_rate);
  216. if (divisor == 0) {
  217. dev_err(&ds1wm_data->pdev->dev,
  218. "no suitable divisor for %dHz clock\n",
  219. plat->clock_rate);
  220. return;
  221. }
  222. ds1wm_write_register(ds1wm_data, DS1WM_CLKDIV, divisor);
  223. /* Let the w1 clock stabilize. */
  224. msleep(1);
  225. ds1wm_reset(ds1wm_data);
  226. }
  227. static void ds1wm_down(struct ds1wm_data *ds1wm_data)
  228. {
  229. ds1wm_reset(ds1wm_data);
  230. /* Disable interrupts. */
  231. ds1wm_write_register(ds1wm_data, DS1WM_INT_EN,
  232. ds1wm_data->int_en_reg_none);
  233. if (ds1wm_data->cell->disable)
  234. ds1wm_data->cell->disable(ds1wm_data->pdev);
  235. }
  236. /* --------------------------------------------------------------------- */
  237. /* w1 methods */
  238. static u8 ds1wm_read_byte(void *data)
  239. {
  240. struct ds1wm_data *ds1wm_data = data;
  241. return ds1wm_read(ds1wm_data, 0xff);
  242. }
  243. static void ds1wm_write_byte(void *data, u8 byte)
  244. {
  245. struct ds1wm_data *ds1wm_data = data;
  246. ds1wm_write(ds1wm_data, byte);
  247. }
  248. static u8 ds1wm_reset_bus(void *data)
  249. {
  250. struct ds1wm_data *ds1wm_data = data;
  251. ds1wm_reset(ds1wm_data);
  252. return 0;
  253. }
  254. static void ds1wm_search(void *data, struct w1_master *master_dev,
  255. u8 search_type, w1_slave_found_callback slave_found)
  256. {
  257. struct ds1wm_data *ds1wm_data = data;
  258. int i;
  259. int ms_discrep_bit = -1;
  260. u64 r = 0; /* holds the progress of the search */
  261. u64 r_prime, d;
  262. unsigned slaves_found = 0;
  263. unsigned int pass = 0;
  264. dev_dbg(&ds1wm_data->pdev->dev, "search begin\n");
  265. while (true) {
  266. ++pass;
  267. if (pass > 100) {
  268. dev_dbg(&ds1wm_data->pdev->dev,
  269. "too many attempts (100), search aborted\n");
  270. return;
  271. }
  272. if (ds1wm_reset(ds1wm_data)) {
  273. dev_dbg(&ds1wm_data->pdev->dev,
  274. "pass: %d reset error (or no slaves)\n", pass);
  275. break;
  276. }
  277. dev_dbg(&ds1wm_data->pdev->dev,
  278. "pass: %d r : %0#18llx writing SEARCH_ROM\n", pass, r);
  279. ds1wm_write(ds1wm_data, search_type);
  280. dev_dbg(&ds1wm_data->pdev->dev,
  281. "pass: %d entering ASM\n", pass);
  282. ds1wm_write_register(ds1wm_data, DS1WM_CMD, DS1WM_CMD_SRA);
  283. dev_dbg(&ds1wm_data->pdev->dev,
  284. "pass: %d begining nibble loop\n", pass);
  285. r_prime = 0;
  286. d = 0;
  287. /* we work one nibble at a time */
  288. /* each nibble is interleaved to form a byte */
  289. for (i = 0; i < 16; i++) {
  290. unsigned char resp, _r, _r_prime, _d;
  291. _r = (r >> (4*i)) & 0xf;
  292. _r = ((_r & 0x1) << 1) |
  293. ((_r & 0x2) << 2) |
  294. ((_r & 0x4) << 3) |
  295. ((_r & 0x8) << 4);
  296. /* writes _r, then reads back: */
  297. resp = ds1wm_read(ds1wm_data, _r);
  298. if (ds1wm_data->read_error) {
  299. dev_err(&ds1wm_data->pdev->dev,
  300. "pass: %d nibble: %d read error\n", pass, i);
  301. break;
  302. }
  303. _r_prime = ((resp & 0x02) >> 1) |
  304. ((resp & 0x08) >> 2) |
  305. ((resp & 0x20) >> 3) |
  306. ((resp & 0x80) >> 4);
  307. _d = ((resp & 0x01) >> 0) |
  308. ((resp & 0x04) >> 1) |
  309. ((resp & 0x10) >> 2) |
  310. ((resp & 0x40) >> 3);
  311. r_prime |= (unsigned long long) _r_prime << (i * 4);
  312. d |= (unsigned long long) _d << (i * 4);
  313. }
  314. if (ds1wm_data->read_error) {
  315. dev_err(&ds1wm_data->pdev->dev,
  316. "pass: %d read error, retrying\n", pass);
  317. break;
  318. }
  319. dev_dbg(&ds1wm_data->pdev->dev,
  320. "pass: %d r\': %0#18llx d:%0#18llx\n",
  321. pass, r_prime, d);
  322. dev_dbg(&ds1wm_data->pdev->dev,
  323. "pass: %d nibble loop complete, exiting ASM\n", pass);
  324. ds1wm_write_register(ds1wm_data, DS1WM_CMD, ~DS1WM_CMD_SRA);
  325. dev_dbg(&ds1wm_data->pdev->dev,
  326. "pass: %d resetting bus\n", pass);
  327. ds1wm_reset(ds1wm_data);
  328. if ((r_prime & ((u64)1 << 63)) && (d & ((u64)1 << 63))) {
  329. dev_err(&ds1wm_data->pdev->dev,
  330. "pass: %d bus error, retrying\n", pass);
  331. continue; /* start over */
  332. }
  333. dev_dbg(&ds1wm_data->pdev->dev,
  334. "pass: %d found %0#18llx\n", pass, r_prime);
  335. slave_found(master_dev, r_prime);
  336. ++slaves_found;
  337. dev_dbg(&ds1wm_data->pdev->dev,
  338. "pass: %d complete, preparing next pass\n", pass);
  339. /* any discrepency found which we already choose the
  340. '1' branch is now is now irrelevant we reveal the
  341. next branch with this: */
  342. d &= ~r;
  343. /* find last bit set, i.e. the most signif. bit set */
  344. ms_discrep_bit = fls64(d) - 1;
  345. dev_dbg(&ds1wm_data->pdev->dev,
  346. "pass: %d new d:%0#18llx MS discrep bit:%d\n",
  347. pass, d, ms_discrep_bit);
  348. /* prev_ms_discrep_bit = ms_discrep_bit;
  349. prepare for next ROM search: */
  350. if (ms_discrep_bit == -1)
  351. break;
  352. r = (r & ~(~0ull << (ms_discrep_bit))) | 1 << ms_discrep_bit;
  353. } /* end while true */
  354. dev_dbg(&ds1wm_data->pdev->dev,
  355. "pass: %d total: %d search done ms d bit pos: %d\n", pass,
  356. slaves_found, ms_discrep_bit);
  357. }
  358. /* --------------------------------------------------------------------- */
  359. static struct w1_bus_master ds1wm_master = {
  360. .read_byte = ds1wm_read_byte,
  361. .write_byte = ds1wm_write_byte,
  362. .reset_bus = ds1wm_reset_bus,
  363. .search = ds1wm_search,
  364. };
  365. static int ds1wm_probe(struct platform_device *pdev)
  366. {
  367. struct ds1wm_data *ds1wm_data;
  368. struct ds1wm_driver_data *plat;
  369. struct resource *res;
  370. int ret;
  371. if (!pdev)
  372. return -ENODEV;
  373. ds1wm_data = kzalloc(sizeof(*ds1wm_data), GFP_KERNEL);
  374. if (!ds1wm_data)
  375. return -ENOMEM;
  376. platform_set_drvdata(pdev, ds1wm_data);
  377. res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
  378. if (!res) {
  379. ret = -ENXIO;
  380. goto err0;
  381. }
  382. ds1wm_data->map = ioremap(res->start, resource_size(res));
  383. if (!ds1wm_data->map) {
  384. ret = -ENOMEM;
  385. goto err0;
  386. }
  387. /* calculate bus shift from mem resource */
  388. ds1wm_data->bus_shift = resource_size(res) >> 3;
  389. ds1wm_data->pdev = pdev;
  390. ds1wm_data->cell = mfd_get_cell(pdev);
  391. if (!ds1wm_data->cell) {
  392. ret = -ENODEV;
  393. goto err1;
  394. }
  395. plat = pdev->dev.platform_data;
  396. if (!plat) {
  397. ret = -ENODEV;
  398. goto err1;
  399. }
  400. res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
  401. if (!res) {
  402. ret = -ENXIO;
  403. goto err1;
  404. }
  405. ds1wm_data->irq = res->start;
  406. ds1wm_data->int_en_reg_none = (plat->active_high ? DS1WM_INTEN_IAS : 0);
  407. if (res->flags & IORESOURCE_IRQ_HIGHEDGE)
  408. irq_set_irq_type(ds1wm_data->irq, IRQ_TYPE_EDGE_RISING);
  409. if (res->flags & IORESOURCE_IRQ_LOWEDGE)
  410. irq_set_irq_type(ds1wm_data->irq, IRQ_TYPE_EDGE_FALLING);
  411. ret = request_irq(ds1wm_data->irq, ds1wm_isr,
  412. IRQF_DISABLED | IRQF_SHARED, "ds1wm", ds1wm_data);
  413. if (ret)
  414. goto err1;
  415. ds1wm_up(ds1wm_data);
  416. ds1wm_master.data = (void *)ds1wm_data;
  417. ret = w1_add_master_device(&ds1wm_master);
  418. if (ret)
  419. goto err2;
  420. return 0;
  421. err2:
  422. ds1wm_down(ds1wm_data);
  423. free_irq(ds1wm_data->irq, ds1wm_data);
  424. err1:
  425. iounmap(ds1wm_data->map);
  426. err0:
  427. kfree(ds1wm_data);
  428. return ret;
  429. }
  430. #ifdef CONFIG_PM
  431. static int ds1wm_suspend(struct platform_device *pdev, pm_message_t state)
  432. {
  433. struct ds1wm_data *ds1wm_data = platform_get_drvdata(pdev);
  434. ds1wm_down(ds1wm_data);
  435. return 0;
  436. }
  437. static int ds1wm_resume(struct platform_device *pdev)
  438. {
  439. struct ds1wm_data *ds1wm_data = platform_get_drvdata(pdev);
  440. ds1wm_up(ds1wm_data);
  441. return 0;
  442. }
  443. #else
  444. #define ds1wm_suspend NULL
  445. #define ds1wm_resume NULL
  446. #endif
  447. static int ds1wm_remove(struct platform_device *pdev)
  448. {
  449. struct ds1wm_data *ds1wm_data = platform_get_drvdata(pdev);
  450. w1_remove_master_device(&ds1wm_master);
  451. ds1wm_down(ds1wm_data);
  452. free_irq(ds1wm_data->irq, ds1wm_data);
  453. iounmap(ds1wm_data->map);
  454. kfree(ds1wm_data);
  455. return 0;
  456. }
  457. static struct platform_driver ds1wm_driver = {
  458. .driver = {
  459. .name = "ds1wm",
  460. },
  461. .probe = ds1wm_probe,
  462. .remove = ds1wm_remove,
  463. .suspend = ds1wm_suspend,
  464. .resume = ds1wm_resume
  465. };
  466. static int __init ds1wm_init(void)
  467. {
  468. printk("DS1WM w1 busmaster driver - (c) 2004 Szabolcs Gyurko\n");
  469. return platform_driver_register(&ds1wm_driver);
  470. }
  471. static void __exit ds1wm_exit(void)
  472. {
  473. platform_driver_unregister(&ds1wm_driver);
  474. }
  475. module_init(ds1wm_init);
  476. module_exit(ds1wm_exit);
  477. MODULE_LICENSE("GPL");
  478. MODULE_AUTHOR("Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>, "
  479. "Matt Reimer <mreimer@vpop.net>,"
  480. "Jean-Francois Dagenais <dagenaisj@sonatest.com>");
  481. MODULE_DESCRIPTION("DS1WM w1 busmaster driver");