[Armadeus-commitlog] SF.net SVN: armadeus: [818] trunk/target/linux/modules/isp1761/hal/hal_imx. c
Brought to you by:
sszy
|
From: <th...@us...> - 2008-06-02 15:48:22
|
Revision: 818
http://armadeus.svn.sourceforge.net/armadeus/?rev=818&view=rev
Author: thom25
Date: 2008-06-02 08:48:28 -0700 (Mon, 02 Jun 2008)
Log Message:
-----------
[LINUX] Fix bug 1960067: ISP1761 scratch register
Modified Paths:
--------------
trunk/target/linux/modules/isp1761/hal/hal_imx.c
Modified: trunk/target/linux/modules/isp1761/hal/hal_imx.c
===================================================================
--- trunk/target/linux/modules/isp1761/hal/hal_imx.c 2008-06-02 15:24:26 UTC (rev 817)
+++ trunk/target/linux/modules/isp1761/hal/hal_imx.c 2008-06-02 15:48:28 UTC (rev 818)
@@ -834,15 +834,18 @@
#endif
loc_dev = &(isp1761_loc_dev[ISP1761_HC]);
- isp1761_reg_write16(loc_dev, HC_SCRATCH_REG, 0xFACE);
- udelay(100);
+ isp1761_reg_write16(loc_dev, HC_SCRATCH_REG, 0xFACE);
+ /* perform a read of the chip ID to avoir bus hold effect when
+ * reading back the scratch register */
+ isp1761_reg_read16(loc_dev, HC_CHIP_ID_REG, reg_data);
+ udelay(100);
reg_data = isp1761_reg_read16(loc_dev, HC_SCRATCH_REG,reg_data);
/* Host Controller presence is detected by writing to scratch register
* and reading back and checking the contents are same or not
*/
if(reg_data != 0xFACE) {
- err("%s scratch register mismatch %x",
+ err("%s scratch register mismatch %x. Unable to find the ISP176x device",
isp1761_driver_name,reg_data);
status = -ENODEV;
goto clean;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|