aboutsummaryrefslogtreecommitdiffstats
path: root/samsung-ipc/devices/generic/generic.c
diff options
context:
space:
mode:
Diffstat (limited to 'samsung-ipc/devices/generic/generic.c')
-rw-r--r--samsung-ipc/devices/generic/generic.c18
1 files changed, 16 insertions, 2 deletions
diff --git a/samsung-ipc/devices/generic/generic.c b/samsung-ipc/devices/generic/generic.c
index 97cf831..e5ce033 100644
--- a/samsung-ipc/devices/generic/generic.c
+++ b/samsung-ipc/devices/generic/generic.c
@@ -88,6 +88,8 @@ int generic_boot(struct ipc_client *client)
}
ipc_client_log(client, "Turned the modem on");
+ system("lsusb");
+
rc = 0;
do {
modem_boot_fd = open(XMM626_SEC_MODEM_BOOT0_DEVICE, O_RDWR | O_NOCTTY | O_NONBLOCK);
@@ -102,6 +104,7 @@ int generic_boot(struct ipc_client *client)
goto error;
}
ipc_client_log(client, "Opened modem boot device");
+ system("lsusb");
p = (unsigned char *) modem_image_data + GENERIC_PSI_OFFSET;
@@ -127,6 +130,7 @@ int generic_boot(struct ipc_client *client)
goto error;
}
ipc_client_log(client, "Sent XMM626 HSIC port config");
+ system("lsusb");
p = (unsigned char *) modem_image_data + GENERIC_SEC_START_OFFSET;
@@ -145,6 +149,7 @@ int generic_boot(struct ipc_client *client)
goto error;
}
ipc_client_log(client, "Sent XMM626 HSIC firmware");
+ system("lsusb");
rc = xmm626_hsic_nv_data_send(client, modem_boot_fd);
if (rc < 0) {
@@ -159,6 +164,7 @@ int generic_boot(struct ipc_client *client)
goto error;
}
ipc_client_log(client, "Sent XMM626 HSIC SEC end");
+ system("lsusb");
rc = xmm626_hsic_hw_reset_send(client, modem_boot_fd);
if (rc < 0) {
@@ -166,6 +172,7 @@ int generic_boot(struct ipc_client *client)
goto error;
}
ipc_client_log(client, "Sent XMM626 HSIC HW reset");
+ system("lsusb");
usleep(300000);
@@ -173,6 +180,8 @@ int generic_boot(struct ipc_client *client)
if (rc < 0) {
ipc_client_log(client, "Waiting for host wake failed");
}
+ ipc_client_log(client, "Waited for host wake");
+ system("lsusb");
rc = xmm626_sec_modem_hci_power(0);
@@ -180,21 +189,26 @@ int generic_boot(struct ipc_client *client)
ipc_client_log(client, "Turning the modem off failed");
goto error;
}
-
+ ipc_client_log(client, "Turned off the modem");
+ system("lsusb");
+
rc = xmm626_sec_modem_link_get_hostwake_wait(modem_link_fd);
if (rc < 0) {
ipc_client_log(client, "Waiting for host wake failed");
}
ipc_client_log(client, "Waited for host wake");
+ system("lsusb");
rc = xmm626_sec_modem_hci_power(1);
-
if (rc < 0) {
ipc_client_log(client, "Turning the modem on failed");
goto error;
}
+ ipc_client_log(client, "Turned the modem on");
+ system("lsusb");
usleep(300000);
+ ipc_client_log(client, "%s complete", __FUNCTION__);
rc = 0;
goto complete;