linux/drivers/staging/tidspbridge
Laurent Pinchart c378204afa staging: tidspbridge: Fix atoi to support hexadecimal numbers correctly
For some strange reason, the DSP base image node/object properties
description string stores hexadecimal numbers with a 'h' or 'H' suffix
instead of a '0x' prefix. This causes parsing issue because the
dspbridge atoi() implementation relies on strict_strtoul(), which will
return an error because of the trailing 'h' character.

As the atoi() return value is never checked for an error anyway, replace
strict_strtoul() with simple_strtoul() to ignore the suffix.

This fix gets rid of the following assertion failed messages that were
printed when running the dsp-dummy test application.

drivers/staging/tidspbridge/rmgr/nldr.c, line 1691:
Assertion (segid == MEMINTERNALID || segid == MEMEXTERNALID) failed.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com>
2011-02-04 20:11:51 -06:00
..
core staging: tidspbridge: core code cleanup 2011-02-04 20:11:43 -06:00
Documentation
dynload
gen staging: tidspbridge: remove gb bitmap implementation 2011-02-04 20:11:33 -06:00
hw Revert "staging: tidspbridge - remove hw directory" 2010-11-10 18:34:43 -06:00
include/dspbridge staging: tidspbridge: remove custom linked list 2011-02-04 20:11:41 -06:00
pmgr staging: tidspbridge: pmgr code cleanup 2011-02-04 20:11:45 -06:00
rmgr staging: tidspbridge: Fix atoi to support hexadecimal numbers correctly 2011-02-04 20:11:51 -06:00
Kconfig Revert "staging: tidspbridge - update Kconfig to select IOMMU module" 2010-11-10 18:34:42 -06:00
Makefile staging: tidspbridge: remove gb bitmap implementation 2011-02-04 20:11:33 -06:00
TODO staging: tidspbridge: remove custom linked list 2011-02-04 20:11:41 -06:00