rmi_f01.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. /*
  2. * Copyright (c) 2011-2016 Synaptics Incorporated
  3. * Copyright (c) 2011 Unixphere
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of the GNU General Public License version 2 as published by
  7. * the Free Software Foundation.
  8. */
  9. #include <linux/kernel.h>
  10. #include <linux/rmi.h>
  11. #include <linux/slab.h>
  12. #include <linux/uaccess.h>
  13. #include <linux/of.h>
  14. #include "rmi_driver.h"
  15. #define RMI_PRODUCT_ID_LENGTH 10
  16. #define RMI_PRODUCT_INFO_LENGTH 2
  17. #define RMI_DATE_CODE_LENGTH 3
  18. #define PRODUCT_ID_OFFSET 0x10
  19. #define PRODUCT_INFO_OFFSET 0x1E
  20. /* Force a firmware reset of the sensor */
  21. #define RMI_F01_CMD_DEVICE_RESET 1
  22. /* Various F01_RMI_QueryX bits */
  23. #define RMI_F01_QRY1_CUSTOM_MAP BIT(0)
  24. #define RMI_F01_QRY1_NON_COMPLIANT BIT(1)
  25. #define RMI_F01_QRY1_HAS_LTS BIT(2)
  26. #define RMI_F01_QRY1_HAS_SENSOR_ID BIT(3)
  27. #define RMI_F01_QRY1_HAS_CHARGER_INP BIT(4)
  28. #define RMI_F01_QRY1_HAS_ADJ_DOZE BIT(5)
  29. #define RMI_F01_QRY1_HAS_ADJ_DOZE_HOFF BIT(6)
  30. #define RMI_F01_QRY1_HAS_QUERY42 BIT(7)
  31. #define RMI_F01_QRY5_YEAR_MASK 0x1f
  32. #define RMI_F01_QRY6_MONTH_MASK 0x0f
  33. #define RMI_F01_QRY7_DAY_MASK 0x1f
  34. #define RMI_F01_QRY2_PRODINFO_MASK 0x7f
  35. #define RMI_F01_BASIC_QUERY_LEN 21 /* From Query 00 through 20 */
  36. struct f01_basic_properties {
  37. u8 manufacturer_id;
  38. bool has_lts;
  39. bool has_adjustable_doze;
  40. bool has_adjustable_doze_holdoff;
  41. char dom[11]; /* YYYY/MM/DD + '\0' */
  42. u8 product_id[RMI_PRODUCT_ID_LENGTH + 1];
  43. u16 productinfo;
  44. u32 firmware_id;
  45. };
  46. /* F01 device status bits */
  47. /* Most recent device status event */
  48. #define RMI_F01_STATUS_CODE(status) ((status) & 0x0f)
  49. /* The device has lost its configuration for some reason. */
  50. #define RMI_F01_STATUS_UNCONFIGURED(status) (!!((status) & 0x80))
  51. /* The device is in bootloader mode */
  52. #define RMI_F01_STATUS_BOOTLOADER(status) ((status) & 0x40)
  53. /* Control register bits */
  54. /*
  55. * Sleep mode controls power management on the device and affects all
  56. * functions of the device.
  57. */
  58. #define RMI_F01_CTRL0_SLEEP_MODE_MASK 0x03
  59. #define RMI_SLEEP_MODE_NORMAL 0x00
  60. #define RMI_SLEEP_MODE_SENSOR_SLEEP 0x01
  61. #define RMI_SLEEP_MODE_RESERVED0 0x02
  62. #define RMI_SLEEP_MODE_RESERVED1 0x03
  63. /*
  64. * This bit disables whatever sleep mode may be selected by the sleep_mode
  65. * field and forces the device to run at full power without sleeping.
  66. */
  67. #define RMI_F01_CTRL0_NOSLEEP_BIT BIT(2)
  68. /*
  69. * When this bit is set, the touch controller employs a noise-filtering
  70. * algorithm designed for use with a connected battery charger.
  71. */
  72. #define RMI_F01_CTRL0_CHARGER_BIT BIT(5)
  73. /*
  74. * Sets the report rate for the device. The effect of this setting is
  75. * highly product dependent. Check the spec sheet for your particular
  76. * touch sensor.
  77. */
  78. #define RMI_F01_CTRL0_REPORTRATE_BIT BIT(6)
  79. /*
  80. * Written by the host as an indicator that the device has been
  81. * successfully configured.
  82. */
  83. #define RMI_F01_CTRL0_CONFIGURED_BIT BIT(7)
  84. /**
  85. * @ctrl0 - see the bit definitions above.
  86. * @doze_interval - controls the interval between checks for finger presence
  87. * when the touch sensor is in doze mode, in units of 10ms.
  88. * @wakeup_threshold - controls the capacitance threshold at which the touch
  89. * sensor will decide to wake up from that low power state.
  90. * @doze_holdoff - controls how long the touch sensor waits after the last
  91. * finger lifts before entering the doze state, in units of 100ms.
  92. */
  93. struct f01_device_control {
  94. u8 ctrl0;
  95. u8 doze_interval;
  96. u8 wakeup_threshold;
  97. u8 doze_holdoff;
  98. };
  99. struct f01_data {
  100. struct f01_basic_properties properties;
  101. struct f01_device_control device_control;
  102. u16 doze_interval_addr;
  103. u16 wakeup_threshold_addr;
  104. u16 doze_holdoff_addr;
  105. bool suspended;
  106. bool old_nosleep;
  107. unsigned int num_of_irq_regs;
  108. };
  109. static int rmi_f01_read_properties(struct rmi_device *rmi_dev,
  110. u16 query_base_addr,
  111. struct f01_basic_properties *props)
  112. {
  113. u8 queries[RMI_F01_BASIC_QUERY_LEN];
  114. int ret;
  115. int query_offset = query_base_addr;
  116. bool has_ds4_queries = false;
  117. bool has_query42 = false;
  118. bool has_sensor_id = false;
  119. bool has_package_id_query = false;
  120. bool has_build_id_query = false;
  121. u16 prod_info_addr;
  122. u8 ds4_query_len;
  123. ret = rmi_read_block(rmi_dev, query_offset,
  124. queries, RMI_F01_BASIC_QUERY_LEN);
  125. if (ret) {
  126. dev_err(&rmi_dev->dev,
  127. "Failed to read device query registers: %d\n", ret);
  128. return ret;
  129. }
  130. prod_info_addr = query_offset + 17;
  131. query_offset += RMI_F01_BASIC_QUERY_LEN;
  132. /* Now parse what we got */
  133. props->manufacturer_id = queries[0];
  134. props->has_lts = queries[1] & RMI_F01_QRY1_HAS_LTS;
  135. props->has_adjustable_doze =
  136. queries[1] & RMI_F01_QRY1_HAS_ADJ_DOZE;
  137. props->has_adjustable_doze_holdoff =
  138. queries[1] & RMI_F01_QRY1_HAS_ADJ_DOZE_HOFF;
  139. has_query42 = queries[1] & RMI_F01_QRY1_HAS_QUERY42;
  140. has_sensor_id = queries[1] & RMI_F01_QRY1_HAS_SENSOR_ID;
  141. snprintf(props->dom, sizeof(props->dom), "20%02d/%02d/%02d",
  142. queries[5] & RMI_F01_QRY5_YEAR_MASK,
  143. queries[6] & RMI_F01_QRY6_MONTH_MASK,
  144. queries[7] & RMI_F01_QRY7_DAY_MASK);
  145. memcpy(props->product_id, &queries[11],
  146. RMI_PRODUCT_ID_LENGTH);
  147. props->product_id[RMI_PRODUCT_ID_LENGTH] = '\0';
  148. props->productinfo =
  149. ((queries[2] & RMI_F01_QRY2_PRODINFO_MASK) << 7) |
  150. (queries[3] & RMI_F01_QRY2_PRODINFO_MASK);
  151. if (has_sensor_id)
  152. query_offset++;
  153. if (has_query42) {
  154. ret = rmi_read(rmi_dev, query_offset, queries);
  155. if (ret) {
  156. dev_err(&rmi_dev->dev,
  157. "Failed to read query 42 register: %d\n", ret);
  158. return ret;
  159. }
  160. has_ds4_queries = !!(queries[0] & BIT(0));
  161. query_offset++;
  162. }
  163. if (has_ds4_queries) {
  164. ret = rmi_read(rmi_dev, query_offset, &ds4_query_len);
  165. if (ret) {
  166. dev_err(&rmi_dev->dev,
  167. "Failed to read DS4 queries length: %d\n", ret);
  168. return ret;
  169. }
  170. query_offset++;
  171. if (ds4_query_len > 0) {
  172. ret = rmi_read(rmi_dev, query_offset, queries);
  173. if (ret) {
  174. dev_err(&rmi_dev->dev,
  175. "Failed to read DS4 queries: %d\n",
  176. ret);
  177. return ret;
  178. }
  179. has_package_id_query = !!(queries[0] & BIT(0));
  180. has_build_id_query = !!(queries[0] & BIT(1));
  181. }
  182. if (has_package_id_query)
  183. prod_info_addr++;
  184. if (has_build_id_query) {
  185. ret = rmi_read_block(rmi_dev, prod_info_addr, queries,
  186. 3);
  187. if (ret) {
  188. dev_err(&rmi_dev->dev,
  189. "Failed to read product info: %d\n",
  190. ret);
  191. return ret;
  192. }
  193. props->firmware_id = queries[1] << 8 | queries[0];
  194. props->firmware_id += queries[2] * 65536;
  195. }
  196. }
  197. return 0;
  198. }
  199. char *rmi_f01_get_product_ID(struct rmi_function *fn)
  200. {
  201. struct f01_data *f01 = dev_get_drvdata(&fn->dev);
  202. return f01->properties.product_id;
  203. }
  204. #ifdef CONFIG_OF
  205. static int rmi_f01_of_probe(struct device *dev,
  206. struct rmi_device_platform_data *pdata)
  207. {
  208. int retval;
  209. u32 val;
  210. retval = rmi_of_property_read_u32(dev,
  211. (u32 *)&pdata->power_management.nosleep,
  212. "syna,nosleep-mode", 1);
  213. if (retval)
  214. return retval;
  215. retval = rmi_of_property_read_u32(dev, &val,
  216. "syna,wakeup-threshold", 1);
  217. if (retval)
  218. return retval;
  219. pdata->power_management.wakeup_threshold = val;
  220. retval = rmi_of_property_read_u32(dev, &val,
  221. "syna,doze-holdoff-ms", 1);
  222. if (retval)
  223. return retval;
  224. pdata->power_management.doze_holdoff = val * 100;
  225. retval = rmi_of_property_read_u32(dev, &val,
  226. "syna,doze-interval-ms", 1);
  227. if (retval)
  228. return retval;
  229. pdata->power_management.doze_interval = val / 10;
  230. return 0;
  231. }
  232. #else
  233. static inline int rmi_f01_of_probe(struct device *dev,
  234. struct rmi_device_platform_data *pdata)
  235. {
  236. return -ENODEV;
  237. }
  238. #endif
  239. static int rmi_f01_probe(struct rmi_function *fn)
  240. {
  241. struct rmi_device *rmi_dev = fn->rmi_dev;
  242. struct rmi_driver_data *driver_data = dev_get_drvdata(&rmi_dev->dev);
  243. struct rmi_device_platform_data *pdata = rmi_get_platform_data(rmi_dev);
  244. struct f01_data *f01;
  245. int error;
  246. u16 ctrl_base_addr = fn->fd.control_base_addr;
  247. u8 device_status;
  248. u8 temp;
  249. if (fn->dev.of_node) {
  250. error = rmi_f01_of_probe(&fn->dev, pdata);
  251. if (error)
  252. return error;
  253. }
  254. f01 = devm_kzalloc(&fn->dev, sizeof(struct f01_data), GFP_KERNEL);
  255. if (!f01)
  256. return -ENOMEM;
  257. f01->num_of_irq_regs = driver_data->num_of_irq_regs;
  258. /*
  259. * Set the configured bit and (optionally) other important stuff
  260. * in the device control register.
  261. */
  262. error = rmi_read(rmi_dev, fn->fd.control_base_addr,
  263. &f01->device_control.ctrl0);
  264. if (error) {
  265. dev_err(&fn->dev, "Failed to read F01 control: %d\n", error);
  266. return error;
  267. }
  268. switch (pdata->power_management.nosleep) {
  269. case RMI_REG_STATE_DEFAULT:
  270. break;
  271. case RMI_REG_STATE_OFF:
  272. f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_NOSLEEP_BIT;
  273. break;
  274. case RMI_REG_STATE_ON:
  275. f01->device_control.ctrl0 |= RMI_F01_CTRL0_NOSLEEP_BIT;
  276. break;
  277. }
  278. /*
  279. * Sleep mode might be set as a hangover from a system crash or
  280. * reboot without power cycle. If so, clear it so the sensor
  281. * is certain to function.
  282. */
  283. if ((f01->device_control.ctrl0 & RMI_F01_CTRL0_SLEEP_MODE_MASK) !=
  284. RMI_SLEEP_MODE_NORMAL) {
  285. dev_warn(&fn->dev,
  286. "WARNING: Non-zero sleep mode found. Clearing...\n");
  287. f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
  288. }
  289. f01->device_control.ctrl0 |= RMI_F01_CTRL0_CONFIGURED_BIT;
  290. error = rmi_write(rmi_dev, fn->fd.control_base_addr,
  291. f01->device_control.ctrl0);
  292. if (error) {
  293. dev_err(&fn->dev, "Failed to write F01 control: %d\n", error);
  294. return error;
  295. }
  296. /* Dummy read in order to clear irqs */
  297. error = rmi_read(rmi_dev, fn->fd.data_base_addr + 1, &temp);
  298. if (error < 0) {
  299. dev_err(&fn->dev, "Failed to read Interrupt Status.\n");
  300. return error;
  301. }
  302. error = rmi_f01_read_properties(rmi_dev, fn->fd.query_base_addr,
  303. &f01->properties);
  304. if (error < 0) {
  305. dev_err(&fn->dev, "Failed to read F01 properties.\n");
  306. return error;
  307. }
  308. dev_info(&fn->dev, "found RMI device, manufacturer: %s, product: %s, fw id: %d\n",
  309. f01->properties.manufacturer_id == 1 ? "Synaptics" : "unknown",
  310. f01->properties.product_id, f01->properties.firmware_id);
  311. /* Advance to interrupt control registers, then skip over them. */
  312. ctrl_base_addr++;
  313. ctrl_base_addr += f01->num_of_irq_regs;
  314. /* read control register */
  315. if (f01->properties.has_adjustable_doze) {
  316. f01->doze_interval_addr = ctrl_base_addr;
  317. ctrl_base_addr++;
  318. if (pdata->power_management.doze_interval) {
  319. f01->device_control.doze_interval =
  320. pdata->power_management.doze_interval;
  321. error = rmi_write(rmi_dev, f01->doze_interval_addr,
  322. f01->device_control.doze_interval);
  323. if (error) {
  324. dev_err(&fn->dev,
  325. "Failed to configure F01 doze interval register: %d\n",
  326. error);
  327. return error;
  328. }
  329. } else {
  330. error = rmi_read(rmi_dev, f01->doze_interval_addr,
  331. &f01->device_control.doze_interval);
  332. if (error) {
  333. dev_err(&fn->dev,
  334. "Failed to read F01 doze interval register: %d\n",
  335. error);
  336. return error;
  337. }
  338. }
  339. f01->wakeup_threshold_addr = ctrl_base_addr;
  340. ctrl_base_addr++;
  341. if (pdata->power_management.wakeup_threshold) {
  342. f01->device_control.wakeup_threshold =
  343. pdata->power_management.wakeup_threshold;
  344. error = rmi_write(rmi_dev, f01->wakeup_threshold_addr,
  345. f01->device_control.wakeup_threshold);
  346. if (error) {
  347. dev_err(&fn->dev,
  348. "Failed to configure F01 wakeup threshold register: %d\n",
  349. error);
  350. return error;
  351. }
  352. } else {
  353. error = rmi_read(rmi_dev, f01->wakeup_threshold_addr,
  354. &f01->device_control.wakeup_threshold);
  355. if (error < 0) {
  356. dev_err(&fn->dev,
  357. "Failed to read F01 wakeup threshold register: %d\n",
  358. error);
  359. return error;
  360. }
  361. }
  362. }
  363. if (f01->properties.has_lts)
  364. ctrl_base_addr++;
  365. if (f01->properties.has_adjustable_doze_holdoff) {
  366. f01->doze_holdoff_addr = ctrl_base_addr;
  367. ctrl_base_addr++;
  368. if (pdata->power_management.doze_holdoff) {
  369. f01->device_control.doze_holdoff =
  370. pdata->power_management.doze_holdoff;
  371. error = rmi_write(rmi_dev, f01->doze_holdoff_addr,
  372. f01->device_control.doze_holdoff);
  373. if (error) {
  374. dev_err(&fn->dev,
  375. "Failed to configure F01 doze holdoff register: %d\n",
  376. error);
  377. return error;
  378. }
  379. } else {
  380. error = rmi_read(rmi_dev, f01->doze_holdoff_addr,
  381. &f01->device_control.doze_holdoff);
  382. if (error) {
  383. dev_err(&fn->dev,
  384. "Failed to read F01 doze holdoff register: %d\n",
  385. error);
  386. return error;
  387. }
  388. }
  389. }
  390. error = rmi_read(rmi_dev, fn->fd.data_base_addr, &device_status);
  391. if (error < 0) {
  392. dev_err(&fn->dev,
  393. "Failed to read device status: %d\n", error);
  394. return error;
  395. }
  396. if (RMI_F01_STATUS_UNCONFIGURED(device_status)) {
  397. dev_err(&fn->dev,
  398. "Device was reset during configuration process, status: %#02x!\n",
  399. RMI_F01_STATUS_CODE(device_status));
  400. return -EINVAL;
  401. }
  402. dev_set_drvdata(&fn->dev, f01);
  403. return 0;
  404. }
  405. static int rmi_f01_config(struct rmi_function *fn)
  406. {
  407. struct f01_data *f01 = dev_get_drvdata(&fn->dev);
  408. int error;
  409. error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr,
  410. f01->device_control.ctrl0);
  411. if (error) {
  412. dev_err(&fn->dev,
  413. "Failed to write device_control register: %d\n", error);
  414. return error;
  415. }
  416. if (f01->properties.has_adjustable_doze) {
  417. error = rmi_write(fn->rmi_dev, f01->doze_interval_addr,
  418. f01->device_control.doze_interval);
  419. if (error) {
  420. dev_err(&fn->dev,
  421. "Failed to write doze interval: %d\n", error);
  422. return error;
  423. }
  424. error = rmi_write_block(fn->rmi_dev,
  425. f01->wakeup_threshold_addr,
  426. &f01->device_control.wakeup_threshold,
  427. sizeof(u8));
  428. if (error) {
  429. dev_err(&fn->dev,
  430. "Failed to write wakeup threshold: %d\n",
  431. error);
  432. return error;
  433. }
  434. }
  435. if (f01->properties.has_adjustable_doze_holdoff) {
  436. error = rmi_write(fn->rmi_dev, f01->doze_holdoff_addr,
  437. f01->device_control.doze_holdoff);
  438. if (error) {
  439. dev_err(&fn->dev,
  440. "Failed to write doze holdoff: %d\n", error);
  441. return error;
  442. }
  443. }
  444. return 0;
  445. }
  446. static int rmi_f01_suspend(struct rmi_function *fn)
  447. {
  448. struct f01_data *f01 = dev_get_drvdata(&fn->dev);
  449. int error;
  450. f01->old_nosleep =
  451. f01->device_control.ctrl0 & RMI_F01_CTRL0_NOSLEEP_BIT;
  452. f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_NOSLEEP_BIT;
  453. f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
  454. if (device_may_wakeup(fn->rmi_dev->xport->dev))
  455. f01->device_control.ctrl0 |= RMI_SLEEP_MODE_RESERVED1;
  456. else
  457. f01->device_control.ctrl0 |= RMI_SLEEP_MODE_SENSOR_SLEEP;
  458. error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr,
  459. f01->device_control.ctrl0);
  460. if (error) {
  461. dev_err(&fn->dev, "Failed to write sleep mode: %d.\n", error);
  462. if (f01->old_nosleep)
  463. f01->device_control.ctrl0 |= RMI_F01_CTRL0_NOSLEEP_BIT;
  464. f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
  465. f01->device_control.ctrl0 |= RMI_SLEEP_MODE_NORMAL;
  466. return error;
  467. }
  468. return 0;
  469. }
  470. static int rmi_f01_resume(struct rmi_function *fn)
  471. {
  472. struct f01_data *f01 = dev_get_drvdata(&fn->dev);
  473. int error;
  474. if (f01->old_nosleep)
  475. f01->device_control.ctrl0 |= RMI_F01_CTRL0_NOSLEEP_BIT;
  476. f01->device_control.ctrl0 &= ~RMI_F01_CTRL0_SLEEP_MODE_MASK;
  477. f01->device_control.ctrl0 |= RMI_SLEEP_MODE_NORMAL;
  478. error = rmi_write(fn->rmi_dev, fn->fd.control_base_addr,
  479. f01->device_control.ctrl0);
  480. if (error) {
  481. dev_err(&fn->dev,
  482. "Failed to restore normal operation: %d.\n", error);
  483. return error;
  484. }
  485. return 0;
  486. }
  487. static int rmi_f01_attention(struct rmi_function *fn,
  488. unsigned long *irq_bits)
  489. {
  490. struct rmi_device *rmi_dev = fn->rmi_dev;
  491. int error;
  492. u8 device_status;
  493. error = rmi_read(rmi_dev, fn->fd.data_base_addr, &device_status);
  494. if (error) {
  495. dev_err(&fn->dev,
  496. "Failed to read device status: %d.\n", error);
  497. return error;
  498. }
  499. if (RMI_F01_STATUS_BOOTLOADER(device_status))
  500. dev_warn(&fn->dev,
  501. "Device in bootloader mode, please update firmware\n");
  502. if (RMI_F01_STATUS_UNCONFIGURED(device_status)) {
  503. dev_warn(&fn->dev, "Device reset detected.\n");
  504. error = rmi_dev->driver->reset_handler(rmi_dev);
  505. if (error) {
  506. dev_err(&fn->dev, "Device reset failed: %d\n", error);
  507. return error;
  508. }
  509. }
  510. return 0;
  511. }
  512. struct rmi_function_handler rmi_f01_handler = {
  513. .driver = {
  514. .name = "rmi4_f01",
  515. /*
  516. * Do not allow user unbinding F01 as it is critical
  517. * function.
  518. */
  519. .suppress_bind_attrs = true,
  520. },
  521. .func = 0x01,
  522. .probe = rmi_f01_probe,
  523. .config = rmi_f01_config,
  524. .attention = rmi_f01_attention,
  525. .suspend = rmi_f01_suspend,
  526. .resume = rmi_f01_resume,
  527. };