Code: echo dedicated > /sys/class/power_supply/bq24150a-0/mode ...of course, supposing that you have bq2415x_charger module loaded, already. If not, you will get error about that path not existing - try loading module via Code: modprobe bq2415x_charger ...and echo command, again. ---
echo dedicated > /sys/class/power_supply/bq24150a-0/mode
modprobe bq2415x_charger
so, you repaired your port to state of having *both* charging and data working, but charging works only from established data connection (like connected to notebook)? Very strange. Forcing dedicated mode should work, so try it first, but it would be nice to investigate it more, afterwards. Like, posting tail of dmesg, invoked after connecting charger to device. /Estel