[Redmi K20 Pro / Xiaomi Mi 9T Pro ROMs, Kernels, Re] Menoobone:
Hi all, same like the others, I am also having issues with the 5a cables.

Upon testing on the Xiaomi EU 20.2.27 Beta firmware, I found out that this kernel is unable to detect 5a USB A > USB C properly. The phone will only charge at 500ma (USB Speed) when paired with any charger which includes the original 18 adapter, 30w adapter and Huawei's original adapter. Windows computer are also unable to detect the phone when the USB is plugged in with this kernel. To confirm that it is kernel and not ROM related, I flashed ModQ, Quax, and also Supermadkernel to verify and for all of the 3 listed kernels, my computer is able to detect my phone and give storage access, likewise the phone can detect the chargers and charge from 3a - 5a accordingly using the 5a cable. I have also reverted back to an older Beta firmware below 20.2.20 v2 and the issue persist. I have attached 2 pictures showing the charging speed with a 5a cable vs the original Xiaomi cable.

Below is the Dmesg log when plugged into the 18w original XiaoMi Charger with a 5a cable :

[ 1373.279716] init: Untracked pid 25419 exited with status 0

[ 1376.481470] FG: soc_work_fn: adjust_soc: s 79 r 156982 i 241 v 4087 t 260 cc 11 m 0xcb

[ 1377.204773] init: Untracked pid 25451 exited with status 0

[ 1380.454906] batteryd: --- batteryd battery event ---

[ 1380.458239] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1380.458609] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1380.470018] batteryd: set the pre_resistance:156982 pre_soh:3863000

[ 1388.625034] batteryd: --- batteryd battery event ---

[ 1388.626205] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1388.626385] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1388.637905] batteryd: set the pre_resistance:156982 pre_soh:3863000

[ 1396.797203] batteryd: --- batteryd battery event ---

[ 1396.800724] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1396.800954] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1396.809012] batteryd: set the pre_resistance:156982 pre_soh:3863000

[ 1396.961535] FG: soc_work_fn: adjust_soc: s 79 r 156982 i 288 v 4079 t 262 cc 11 m 0xcb

[ 1404.969722] batteryd: --- batteryd battery event ---

[ 1404.971689] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1404.971864] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1404.983721] batteryd: set the pre_resistance:156249 pre_soh:3863000

[ 1413.142596] batteryd: --- batteryd battery event ---

[ 1413.149901] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1413.150171] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1413.157209] batteryd: set the pre_resistance:156249 pre_soh:3863000

[ 1417.441450] FG: soc_work_fn: adjust_soc: s 79 r 156249 i 159 v 4097 t 267 cc 11 m 0xcb

[ 1421.314550] batteryd: --- batteryd battery event ---

[ 1421.315537] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1421.315813] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1421.325443] batteryd: set the pre_resistance:156249 pre_soh:3863000

[ 1429.490962] batteryd: --- batteryd battery event ---

[ 1429.492207] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1429.492412] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1429.501032] batteryd: set the pre_resistance:156249 pre_soh:3863000

[ 1431.680140] IRQ 6: no longer affine to CPU7

[ 1437.660142] batteryd: --- batteryd battery event ---

[ 1437.661282] batteryd: Open path error: '/sys/class/power_supply/wireless/tx_adapter' [No such file or directory]

[ 1437.661498] batteryd: /sys/class/power_supply/usb/real_type = USB

[ 1437.671010] batteryd: set the pre_resistance:154784 pre_soh:3863000

[ 1437.931274] FG: soc_work_fn: adjust_soc: s 79 r 154784 i 307 v 4079 t 270 cc 11 m 0xcb

5a cable - https://imgur.com/fM5T2Wf

3a cable - https://imgur.com/4geeiRp

Fun fact, this is what I get for benchmarks using this kernel on eu 20.2.27 rom :)

3d Mark :

Open GL - 484k

Vulkan - 760k

Slingshot Extreme - 6766

https://imgur.com/UgqQh6Q

https://imgur.com/Sw5fPIl

Antutu - 492k

https://imgur.com/GnSBNxi