summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2011-12-14Library threads cleaned out correctlyJörgen Nilsson
The pthread created to keep track of making callbacks to asynchronous requests was not cleaned out correctly before closing the handle to the b2r2 driver. The solution uses signaling, mutexes, and join to make sure the worker thread is done before issuing the close operation. The poll operation is also removed from the flow, and the pthread will lock on read until a report is ready. ST-Ericsson Linux next: NA ST-Ericsson ID: 371876, 372677, 371846 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: If72ca4ff8f978d245786f1548eb47db1e47dd6aa Signed-off-by: Jörgen Nilsson <jorgen.nilsson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/37453 Reviewed-by: QATOOLS Reviewed-by: QABUILD Reviewed-by: Robert LIND <robert.lind@stericsson.com> Reviewed-by: Satish Adiweppa HIPPARAGI <satish.hipparagi@stericsson.com> Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
2011-12-14Add timeout to the callback threadMaciej Socha
The callback thread was polling the b2r2 device without an explicit timeout. The poll() function could thus block the thread indefinitely, even though the b2r2 device may have been closed. With an explicit timeout, control is guaranteed to return to the callback thread, allowing it to exit. Further, a pthread_detach() call was added to have the thread's context cleaned up, once the thread terminates. ST-Ericsson ID: 367329, 356025 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I789cda9c54ce4a1cd827ca8a0137ab2b5a01562e Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35313 Reviewed-by: Maciej SOCHA <maciej.socha@stericsson.com> Tested-by: Maciej SOCHA <maciej.socha@stericsson.com> Reviewed-by: QATOOLS Reviewed-by: QATEST Reviewed-by: Per PERSSON <per.xb.persson@stericsson.com> Reviewed-by: Jimmy RUBIN <jimmy.rubin@stericsson.com>
2011-07-08[b2r2lib] Add handling of other events than POLLINJimmy Rubin
In the callback thread a poll is performed on the blt handle in order to know if the thread should be terminated or not. When poll returns OK (>0) the event field can contain other events than POLLIN. If another event has occurred the thread has to be terminated because it is likely that the blt handle is closed. ST-Ericsson ID: 350511, 342717, 350544 ST-Ericsson FOSS-OUT ID: Trivial Signed-off-by: Jimmy Rubin <jimmy.rubin@stericsson.com> Change-Id: I289d1dcd68398c3c1ba489785b24289455304e58 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/26664 Reviewed-by: QATOOLS Reviewed-by: QATEST Tested-by: Jimmy RUBIN <jimmy.rubin@stericsson.com> Reviewed-by: Per-Daniel OLSSON <per-daniel.olsson@stericsson.com> Reviewed-by: Robert LIND <robert.lind@stericsson.com>
2011-06-15[b2r2lib] Fix Memory leak.Robert Fekete
When closing the library there was a memory leak and a handle not freed. ST-Ericsson ID: 344428 ST-Ericsson FOSS-OUT ID: Trivial Change-Id: I34e99fd4a2375702d69b3178421d141ec581113b Signed-off-by: Robert Fekete <robert.fekete@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/25009 Reviewed-by: Magnus SMITH <magnus.xm.smith@stericsson.com> Reviewed-by: Himanshu AGRAWAL <himanshu.agrawal@stericsson.com> Tested-by: Himanshu AGRAWAL <himanshu.agrawal@stericsson.com> Reviewed-by: QATEST Reviewed-by: Maciej SOCHA <maciej.socha@stericsson.com>
2011-03-11b2r2lib: Bug in callbacksFredrik Allansson
Fixes a bug causing callbacks to never be called. ST-Ericsson ID: WP 326752 ST-Ericsson FOSS-OUT ID: Trivial Depends-On: I634570dd7ec7e19698baa6dcdc3a3286f73b85c8 Change-Id: Ia6a5bb156a437ad631bc25ee4cb3181aaf60767e Signed-off-by: Fredrik Allansson <fredrik.allansson@stericsson.com> Signed-off-by: Robert Fekete <robert.fekete@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/17026
2010-09-21b2r2lib: Support for hwmem buffersFredrik Allansson
The B2R2 library has been updated to support hwmem buffers. ST-Ericsson ID: WP269630 Change-Id: I8e96dac7dddf9b0cd0bac6226052ed3646e940c6 Signed-off-by: Fredrik Allansson <fredrik.allansson@stericsson.com> Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/5196 Reviewed-by: Robert FEKETE <robert.fekete@stericsson.com> Tested-by: Robert FEKETE <robert.fekete@stericsson.com> Reviewed-by: Robert LIND <robert.lind@stericsson.com>
2010-09-09Add CLUT support, WP264248Jonas Bengtsson
Change-Id: I58d1189c359ea05c91c277087d44076584c9c2df Component: linux_b2r2lib:1.0.11:src Published-by: erobfek <robert.fekete@stericsson.com> Published-on: Tue, 07 Sep 2010 16:29:03 +0200 Rodos: rodos 7.2.19
2010-09-09Add property u8500_v2-linuxJonas Bengtsson
Change-Id: If3b981e77ac91a662798c406396a12614a98146b Component: linux_b2r2lib:1.0.10:src Published-by: erobfek <robert.fekete@stericsson.com> Published-on: Tue, 07 Sep 2010 16:22:49 +0200 Rodos: rodos 7.2.19
2010-07-28Fixes following -Wl,--no-undefined waitig for official release from D&GMisbah ur RAHMAN
Change-Id: I5a197e4644c6f8ca6acb292acaf03d61253492a4 Component: linux_b2r2lib:0.2.1:src Published-by: strudelt <thierry.strudel@stericsson.com> Published-on: Fri, 09 Jul 2010 13:32:52 +0200 Rodos: rodos 7.2.18 Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/3273 Reviewed-by: Pankaj SEN <pankaj.sen@stericsson.com> Tested-by: Pankaj SEN <pankaj.sen@stericsson.com>
2010-06-28makefile updateJonas Bengtsson
Change-Id: I7ce56a8da2d50dbf3bd84c430b883a7c4b9987e1 Component: linux_b2r2lib:1.0.3:src Published-by: Published-on: Sat, 12 Jun 2010 08:08:04 +0200 Rodos: rodos 7.2.11
2010-02-24new b2r2libRobert Fekete