From: Felipe Balbi Date: Tue, 31 Jan 2017 11:24:54 +0000 (+0200) Subject: usb: dwc3: gadget: make Set Endpoint Configuration macros safe X-Git-Tag: v3.2.91~93 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a17ec3ce1d0610ddf84a7136e60e861561bf5ef;hp=5a17ec3ce1d0610ddf84a7136e60e861561bf5ef;p=pandora-kernel.git usb: dwc3: gadget: make Set Endpoint Configuration macros safe commit 7369090a9fb57c3fc705ce355d2e4523a5a24716 upstream. Some gadget drivers are bad, bad boys. We notice that ADB was passing bad Burst Size which caused top bits of param0 to be overwritten which confused DWC3 when running this command. In order to avoid future issues, we're going to make sure values passed by macros are always safe for the controller. Note that ADB still needs a fix to *not* pass bad values. Reported-by: Mohamed Abbas Sugested-by: Adam Andruszak Signed-off-by: Felipe Balbi Signed-off-by: Ben Hutchings ---