usbatm cxacru.c,1.19,1.20
kagan at infradead.org
kagan at infradead.org
Fri Mar 4 18:11:04 EST 2005
Update of /home/cvs/usbatm
In directory phoenix.infradead.org:/tmp/cvs-serv13788
Modified Files:
cxacru.c
Log Message:
A few more forgotten byte order conversions
Index: cxacru.c
===================================================================
RCS file: /home/cvs/usbatm/cxacru.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- cxacru.c 4 Mar 2005 12:33:46 -0000 1.19
+++ cxacru.c 4 Mar 2005 23:11:01 -0000 1.20
@@ -522,7 +522,7 @@
dbg("cxacru_upload_firmware");
/* FirmwarePllFClkValue */
- val = bp ? PLLFCLK_OLD : PLLFCLK_NEW;
+ val = cpu_to_le32(bp ? PLLFCLK_OLD : PLLFCLK_NEW);
ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLFCLK_ADDR, (u8 *) &val, 4);
if (ret) {
dev_err(dev, "FirmwarePllFClkValue failed: %d\n", ret);
@@ -530,7 +530,7 @@
}
/* FirmwarePllBClkValue */
- val = bp ? PLLBCLK_OLD : PLLBCLK_NEW;
+ val = cpu_to_le32(bp ? PLLBCLK_OLD : PLLBCLK_NEW);
ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, PLLBCLK_ADDR, (u8 *) &val, 4);
if (ret) {
dev_err(dev, "FirmwarePllBClkValue failed: %d\n", ret);
@@ -538,7 +538,7 @@
}
/* Enable SDRAM */
- val = SDRAM_ENA;
+ val = cpu_to_le32(SDRAM_ENA);
ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, SDRAMEN_ADDR, (u8 *) &val, 4);
if (ret) {
dev_err(dev, "Enable SDRAM failed: %d\n", ret);
@@ -569,7 +569,7 @@
}
if (bp) {
- val = BR_ADDR;
+ val = cpu_to_le32(BR_ADDR);
ret = cxacru_fw(usb_dev, FW_WRITE_MEM, 0x2, 0x0, BR_STACK_ADDR, (u8 *) &val, 4);
}
else {
More information about the Usbatm-commits
mailing list