diff options
author | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-26 05:58:45 +0400 |
---|---|---|
committer | Alexander Tarasikov <alexander.tarasikov@gmail.com> | 2012-08-26 05:58:45 +0400 |
commit | a6b8e7d405b16b33a9726ddd70346b5dbb6c845a (patch) | |
tree | 331f01107aac36079ed61e383874f2f5892a5d6a /samsung-ipc/device | |
parent | 5def3bc80313b3ab2690f2d84341227f76d2b7cf (diff) | |
download | external_libsamsung-ipc-a6b8e7d405b16b33a9726ddd70346b5dbb6c845a.zip external_libsamsung-ipc-a6b8e7d405b16b33a9726ddd70346b5dbb6c845a.tar.gz external_libsamsung-ipc-a6b8e7d405b16b33a9726ddd70346b5dbb6c845a.tar.bz2 |
maguro: replace constant with mask for boot reply
Diffstat (limited to 'samsung-ipc/device')
-rw-r--r-- | samsung-ipc/device/maguro/maguro_loader.c | 2 | ||||
-rw-r--r-- | samsung-ipc/device/maguro/maguro_loader.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/samsung-ipc/device/maguro/maguro_loader.c b/samsung-ipc/device/maguro/maguro_loader.c index cd1e1ac..84de38d 100644 --- a/samsung-ipc/device/maguro/maguro_loader.c +++ b/samsung-ipc/device/maguro/maguro_loader.c @@ -730,7 +730,7 @@ int maguro_modem_bootstrap(struct ipc_client *client) goto fail; } ipc_client_log(client, "got bootloader reply %08x", id_buf); - if (id_buf == I9250_BOOT_LAST_MARKER) { + if ((id_buf & I9250_BOOT_LAST_MASK) == I9250_BOOT_LAST_MASK) { ret = 0; break; } diff --git a/samsung-ipc/device/maguro/maguro_loader.h b/samsung-ipc/device/maguro/maguro_loader.h index cb059fc..e8bb448 100644 --- a/samsung-ipc/device/maguro/maguro_loader.h +++ b/samsung-ipc/device/maguro/maguro_loader.h @@ -30,7 +30,7 @@ #define I9250_RADIO_IMAGE "/dev/block/platform/omap/omap_hsmmc.0/by-name/radio" #define I9250_SECOND_BOOT_DEV "/dev/umts_boot1" -#define I9250_BOOT_LAST_MARKER 0x0030ffff +#define I9250_BOOT_LAST_MASK 0x0000ffff #define I9250_BOOT_REPLY_MAX 20 #define I9250_GENERAL_ACK "\x02\x00\x00\x00" |