From 92d96da3407d9c357e8c70ee0676a740a953e7b0 Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Sat, 1 May 2021 17:24:39 +0200 Subject: Initial/Final commit --- ...02-fix-Atmel-maXTouch-touchscreen-support.patch | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 linux-libre-lts-source/0002-fix-Atmel-maXTouch-touchscreen-support.patch (limited to 'linux-libre-lts-source/0002-fix-Atmel-maXTouch-touchscreen-support.patch') diff --git a/linux-libre-lts-source/0002-fix-Atmel-maXTouch-touchscreen-support.patch b/linux-libre-lts-source/0002-fix-Atmel-maXTouch-touchscreen-support.patch new file mode 100644 index 0000000..5ad26fc --- /dev/null +++ b/linux-libre-lts-source/0002-fix-Atmel-maXTouch-touchscreen-support.patch @@ -0,0 +1,37 @@ +From ab8cc1b2dc1b716d5c08f72dacbe1eded269f304 Mon Sep 17 00:00:00 2001 +From: André Silva +Date: Tue, 22 Mar 2016 17:58:59 -0300 +Subject: [PATCH 2/2] fix Atmel maXTouch touchscreen support + +The Atmel maXTouch touchscreen works with Linux-libre 3.13-gnu, +but not with the current longterm and mainline kernels in +Parabola. + +Now it needs to load nonfree firmware in mxt_initialize(), +which is in drivers/input/touchscreen/atmel_mxt_ts.c, and the +atmel_mxt_ts driver fails to work. + +This driver works if changing reject_firmware_nowait to +request_firmware_nowait in atmel_mxt_ts.c. This line is +requesting the file named MXT_CFG_NAME, and it's a config file, +not the firmware blob. + +Signed-off-by: André Silva +Signed-off-by: mytbk +--- + drivers/input/touchscreen/atmel_mxt_ts.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/input/touchscreen/atmel_mxt_ts.c b/drivers/input/touchscreen/atmel_mxt_ts.c +index 726a83e..d818834 100644 +--- a/drivers/input/touchscreen/atmel_mxt_ts.c ++++ b/drivers/input/touchscreen/atmel_mxt_ts.c +@@ -1989,7 +1989,7 @@ static int mxt_initialize(struct mxt_data *data) + if (error) + goto err_free_object_table; + +- error = reject_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME, ++ error = request_firmware_nowait(THIS_MODULE, true, MXT_CFG_NAME, + &client->dev, GFP_KERNEL, data, + mxt_config_cb); + if (error) { -- cgit v1.2.3