1 From 94b88ebdb90e6b3ae6eca18355a2ff318041318f Mon Sep 17 00:00:00 2001
2 From: Gordon Hollingworth <gordon@fiveninjas.com>
3 Date: Tue, 23 Jun 2015 09:53:40 +0100
4 Subject: [PATCH 080/148] Fix driver detection failure Check that the buffer
5 response is non-zero meaning the touchscreen was detected
8 drivers/input/touchscreen/rpi-ft5406.c | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
11 --- a/drivers/input/touchscreen/rpi-ft5406.c
12 +++ b/drivers/input/touchscreen/rpi-ft5406.c
13 @@ -184,7 +184,7 @@ static int ft5406_probe(struct platform_
15 bcm_mailbox_property(&request, sizeof(request));
17 - if(request.request_code == VCMSG_REQUEST_SUCCESSFUL)
18 + if(request.request_code == VCMSG_REQUEST_SUCCESSFUL && request.tag.val != 0)
20 dev_dbg(&pdev->dev, "Got TS buffer 0x%x\n", request.tag.val);