I2c stoped working after n-th update on wp7607-1


#1

even restoring to original binaries didn’t help

how to fix it?

root@swi-mdm9x28:~# cm info
Device: WP7607-1
IMEI: 359780080100138
IMEISV: 4
FSN: VP737670061102
Firmware Version: SWI9X07Y_02.16.02.00 000000 jenkins 201[ 118.706339] i2c-msm-v2 78b8000.i2c: NACK: sla
ve not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x001
363c8 OPER:0x00000090
8/04/19 19:59:02
Bootloader Version: SWI9X07Y_02.16.02.00 000000 jenkins 2018/04/19 19:59:02
MCU Version: 002.009
PRI Part Number (PN): 9907364
PRI Revision: 001.000
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.032_000
SKU: 1103529
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 1 Unexpected: 0
root@swi-mdm9x28:~#
root@swi-mdm9x28:~# dm
dmesg dmsetup
root@swi-mdm9x28:~# dmesg |grep i2c
[ 0.367240] swimcu_i2c_init: start
[ 0.369967] i2c-msm-v2 78b8000.i2c: probing driver i2c-msm-v2
[ 0.370199] i2c-msm-v2 78b8000.i2c: msm_bus_scale_register_client(mstr-id:86):0 (not a problem)
[ 0.371648] swimcu_i2c_probe: start 1
[ 0.372214] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(r
x:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x081343c8 OPER:0x00000090
[ 0.433276] wm8944_i2c_probe
[ 0.942445] i2c-core: driver [tabla-i2c-core] using legacy suspend method
[ 0.942457] i2c-core: driver [tabla-i2c-core] using legacy resume method
[ 0.942598] i2c-core: driver [wcd9xxx-i2c-core] using legacy suspend method
[ 0.942608] i2c-core: driver [wcd9xxx-i2c-core] using legacy resume method
[ 0.942744] i2c-core: driver [tasha-i2c-core] using legacy suspend method
[ 0.942753] i2c-core: driver [tasha-i2c-core] using legacy resume method
[ 1.039104] i2c /dev entries driver
[ 15.724176] i2c-msm-v2 78b8000.i2c: msm_bus_scale_register_client(mstr-id:86):0xa (ok)
[ 15.781964] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(r
x:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x001363c8 OPER:0x00000090
[ 103.753573] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(r
x:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1343c8 OPER:0x00000090
[ 118.706339] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(r
x:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x001363c8 OPER:0x00000090
root@swi-mdm9x28:~#

root@swi-mdm9x28:~# uname -a
Linux swi-mdm9x28 3.18.44 #2 PREEMPT Thu Apr 19 22:05:25 UTC 2018 armv7l GNU/Linux

loader says:
Format: Log Type - Time(microsec) - Message - Optional Info
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic
S - QC_IMAGE_VERSION_STRING=BOOT.BF.3.1.2-00089
S - IMAGE_VARIANT_STRING=LAATANAZA
S - OEM_IMAGE_VERSION_STRING=jenkins
S - Boot Config, 0x000002e1
B - 1216 - PBL, Start
B - 3720 - bootable_media_detect_entry, Start
B - 4400 - bootable_media_detect_success, Start
B - 4405 - elf_loader_entry, Start
B - 7859 - auth_hash_seg_entry, Start
B - 8086 - auth_hash_seg_exit, Start
B - 59465 - elf_segs_hash_verify_entry, Start
B - 106528 - PBL, End
B - 114985 - SBL1, Start
B - 172813 - pm_device_init, Start
B - 192973 - PM_SET_VAL:Skip
D - 18757 - pm_device_init, Delta
B - 194651 - boot_config_data_table_init, Start
D - 0 - boot_config_data_table_init, Delta - (0 Bytes)
B - 203099 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129
B - 209992 - sbl1_ddr_set_params, Start
B - 213744 - Pre_DDR_clock_init, Start
D - 213 - Pre_DDR_clock_init, Delta
D - 0 - sbl1_ddr_set_params, Delta
B - 226523 - pm_driver_init, Start
D - 4514 - pm_driver_init, Delta
B - 232806 - cpr_init, Start
D - 122 - cpr_init, Delta
B - 237412 - cpr_cx_mx_apc_vol_update, Start
D - 91 - cpr_cx_mx_apc_vol_update, Delta
B - 252570 - clock_init, Start
D - 152 - clock_init, Delta
B - 252784 - boot_flash_init, Start
D - 39894 - boot_flash_init, Delta
B - 295697 - boot_flash_swi_ddr_init, Start
D - 25528 - boot_flash_swi_ddr_init, Delta
B - 453535 - hw_family:5, hw_type:19, hw_rev:8
B - 454663 - SSMEM init OK
B - 473878 - USB non-zero endpoint requirements: 9 in, 5 out
B - 474610 - opening partition 0:SWIFOTA
B - 477721 - error for readpage:0
B - 493856 - Failed to read size: /swinv/item_files/CUST_IM_SWITCH_HIDE
B - 500566 - Failed to read size: /swinv/item_files/FOTA_PARTITION
B - 501054 - Failed to read size: /swinv/item_files/CUST_IM_CONFIG
B - 521824 - ssmem_release: region 20 not exists
B - 521885 - ssmem_get: region 20 not exists
B - 528382 - Image Load, Start
D - 74847 - QSEE Image Loaded, Delta - (488524 Bytes)
D - 183 - boot_pm_post_tz_device_init, Delta
B - 607621 - sbl1_efs_handle_cookies, Start
D - 0 - sbl1_efs_handle_cookies, Delta
B - 615612 - DEVCFG ELF verification failure
B - 619180 - Image Load, Start
D - 30 - SEC Image Loaded, Delta - (0 Bytes)
B - 626866 - Image Load, Start
D - 40748 - RPM Image Loaded, Delta - (152712 Bytes)
B - 668316 - Image Load, Start
B - 670634 - Auth disabled for image 9
B - 710009 - ssmem_get: region 20 not exists
D - 41754 - APPSBL Image Loaded, Delta - (378668 Bytes)
B - 713242 - QSEE Execution, Start
D - 884 - QSEE Execution, Delta
B - 719952 - SBL1, End
D - 607346 - SBL1, Delta
S - Throughput, 8000 KB/s (1190656 Bytes, 135718 us)
S - DDR Frequency, 240 MHz
Android Bootloader - UART_DM Initialized!!!
[10] ERROR: No devinfo partition found
[10] Neither ‘config’ nor ‘frp’ partition found
[10] ERROR: No misc partition found
[1080] SSMEM init OK[1090] ssmem_get: region 20 not exists[1180] DEBUG: cmdline has root=
[1310] Channel alloc freed


#2

it seems that hardware is not broken, with this tool I can make i2c-gpio detects…

but why it’s not enabled after reset and how to change it???

root@swi-mdm9x28:~# i2cgpioctl 4
i2cgpioctl tool for Sierra Wireless MangOH platform

i2c bus: /dev/i2c-4

Hello user, what would you like to do?
8. Detect SX1509 GPIO Expander1 i2c slave address
Input option (0-100): 8

Detecting SX1509 GPIO Expander1 i2c slave address…[ 650.880734] i2c-msm-v2 78b8000.i2c: NACK: slave not res
ponding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:1 tx:0) mode:FIFO slv_addr:0x3e MSTR_STS:0x0d1300c8 OPER
:0x00000010

    **0x3e Not Detected!**

Done

Hello user, what would you like to do?
2. Enable PCA9548A I2C switch channel IOT0 Card
Input option (0-100): 2

Enabling PCA9548A I2C switch channel IOT0 Card…
Successed!

Done

Hello user, what would you like to do?
8. Detect SX1509 GPIO Expander1 i2c slave address
Input option (0-100): 8

Detecting SX1509 GPIO Expander1 i2c slave address…
0x3e Detected!

Done