[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-arm-kernel
Subject: Segfault when reading event device.
From: "Robertson, Ezban" <ezban.robertson () homeauto ! com>
Date: 2005-06-28 15:59:12
Message-ID: ED3CB89794C8C9469511DFC53A8C737030C76B () sbs2003 ! HAI ! local
[Download RAW message or body]
I've ran into a problem while reading the event device 0 (a touch panel
device). The driver is working after being able to execute ts_calibrate,
but executing the code fragment below from an app causes a seg fault and
I not sure why.
Maybe someone can identify what's possibly wrong.
struct ts_event event;
/* read a data point */
ret = ts_read(ts,&event,1);
if(ret < 0 ) {
EPRINTF("[%s] Error %d reading from touch panel\n",
TS_DEVICE, errno);
return -1;
}
Where ts_event is
{
int x;
int y;
unsigned int pressure;
struct timeval timestamp;
}
ts_read in the source is doing a ts->list->ops->read(ts->list, samp,
nr);
Msg log:
#
createfont: (height == 0) found builtin font System (0)
PD_OPEN: TS DEVICE: /dev/input/event0: fd: 5
createfont: (height == 0) found builtin font System (0)
CLCD: SINGLE PANEL
CLCD: LCD is in Color STN Interface
CLCD: 16 BPP mode
CLCD: disabling LCD
CLCD: enabling LCD
CLCD: Registers set to
TIM0: 0505054c TIM1: 000000ef TIM2: 007707d7 TIM3: 00000000
UBAS: c1c00000 LBAS: c1c12c00 IENB: 00000000 CNTL: 00010909
PD_Read
signal 11 caught
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm-kernel
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic