0002-fix-Atmel-maXTouch-touchscreen-support.patch 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. From ab8cc1b2dc1b716d5c08f72dacbe1eded269f304 Mon Sep 17 00:00:00 2001
  2. From: André Silva <emulatorman@parabola.nu>
  3. Date: Tue, 22 Mar 2016 17:58:59 -0300
  4. Subject: [PATCH 2/2] fix Atmel maXTouch touchscreen support
  5. The Atmel maXTouch touchscreen works with Linux-libre 3.13-gnu,
  6. but not with the current longterm and mainline kernels in
  7. Parabola.
  8. Now it needs to load nonfree firmware in mxt_initialize(),
  9. which is in drivers/input/touchscreen/atmel_mxt_ts.c, and the
  10. atmel_mxt_ts driver fails to work.
  11. This driver works if changing reject_firmware_nowait to
  12. request_firmware_nowait in atmel_mxt_ts.c. This line is
  13. requesting the file named MXT_CFG_NAME, and it's a config file,
  14. not the firmware blob.
  15. Signed-off-by: André Silva <emulatorman@parabola.nu>
  16. Signed-off-by: mytbk <mytbk920423@gmail.com>
  17. ---
  18. drivers/input/touchscreen/atmel_mxt_ts.c | 2 +-
  19. 1 file changed, 1 insertion(+), 1 deletion(-)
  20. diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c
  21. index 726a83e..d818834 100644
  22. --- a/drivers/input/touchscreen/atmel_mxt_ts.c
  23. +++ b/drivers/input/touchscreen/atmel_mxt_ts.c
  24. @@ -1989,7 +1989,7 @@ static int mxt_initialize(struct mxt_data *data)
  25. if (error)
  26. goto err_free_object_table;
  27. - error = reject_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME,
  28. + error = request_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME,
  29. &client->dev, GFP_KERNEL, data,
  30. mxt_config_cb);
  31. if (error) {