usb: diag: Avoid NULL pointer dereference in debugfs

The debugfs entry functions used to read and clear the statistics
counters loop over the list of open diag channels. However, a
channel might not be bound to a gadget interface if diag_function_add
doesn't get called, hence its priv_usb member may be NULL. In that
case simply avoid accessing it altogether as its counters aren't used
anyway.

CRs-fixed: 346598
Change-Id: Icbd84ae0df83a5fe4c62b19fd7c95585e8e6e491
Signed-off-by: Jack Pham <jackp@codeaurora.org>

Conflicts:
	drivers/usb/gadget/f_diag.c
Fix mismerge: USB: fix endpoint-disabling for failed config changes

commit b436f48a31692bc41b9d049dec23cf55714d70d5

Change-Id: I15ba9e4d3231572e771cdcb2ecd88fdc9f69e09d
USB: Set AHB HPROT Mode to allow posted data writes

Currently writing 0x0 into AHBMODE register which means both data
transactions and QH and TD descriptors are non-posted writes to
system memory. As per HW team recommendation, should write 0x08 value
to set AHB HPROT mode into the AHBMODE register which allows posted
data writes to system memory and will improve the throughput numbers.

Change-Id: Ib44a8cfe11c6ff96ff712643227532e24548e706
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>

Conflicts:
	drivers/usb/gadget/ci13xxx_msm_hsic.c
	drivers/usb/host/ehci-msm2.c
Revert "USB: OTG: msm: Fix wall charger compliance issues"

This reverts commit 7d357c14ac0087fce41d2db49d2750227cae9d95.
[moto] f_rndis: Logging and other fixes Thanks to Kazuki Yasumatsu

Change-Id: I1923bfef30596af812b0f47e9203fc2f83b69089