usbd: skip the CSA Clear temporary (for CSA Migration)
authorMinkyu Kang <mk7.kang@samsung.com>
Wed, 3 Feb 2010 04:28:56 +0000 (13:28 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 3 Feb 2010 04:28:56 +0000 (13:28 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
common/cmd_usbd.c

index f97c6c4..cc4a2ef 100644 (file)
@@ -860,7 +860,10 @@ static int process_data(struct usbd_ops *usbd)
                sprintf(length, "%x", parts[part_id]->size);
 
                /* Erase */
-               nand_cmd(0, offset, length, NULL);
+               if (!arg)
+                       nand_cmd(0, offset, length, NULL);
+               else
+                       printf("CSA Clear will be skipped temporary\n");
 
                /* Write : arg (0 Modem) / (1 CSA) */
                if (!arg) {