usb: gadget: composite: Fix USB CV compliance testing
authorPetlozu Pravareshwar <petlozup@nvidia.com>
Fri, 8 Feb 2013 11:10:04 +0000 (16:10 +0530)
committerRiham Haidar <rhaidar@nvidia.com>
Fri, 15 Mar 2013 21:40:14 +0000 (14:40 -0700)
commit4f1db792a7ee8b53cc263832eb18685303ddf56f
treecd0a6a333ab54721337e442695dd3c0890db9147
parent817d9482122b5582089db1059282c84ed32ec63e
usb: gadget: composite: Fix USB CV compliance testing

Enable USB_CONFIG_ATT_SELFPOWER in bmAttributes when the
device is self-powered. Also fixing the GET_CONFIGURATION
when the config field is set to NULL.

Bug 965634

Change-Id: I069da940b1473d5c0b49b2ce2abc7f8862956534
Signed-off-by: Petlozu Pravareshwar <petlozup@nvidia.com>
Reviewed-on: http://git-master/r/197438
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venkat Moganty <vmoganty@nvidia.com>
drivers/usb/gadget/composite.c