On Thursday, January 29, 2015 at 09:30:27 AM, Lukasz Majewski wrote: > Hi Rob,
Hi all! > > From: Michael Scott <michael.sc...@linaro.org> > > > > Add code stub to handle "fastboot oem __" command. As unlock is a > > common fastboot command, distinguish that it is not implemented. > > > > Signed-off-by: Michael Scott <michael.sc...@linaro.org> > > Signed-off-by: Rob Herring <r...@kernel.org> > > --- > > > > drivers/usb/gadget/f_fastboot.c | 15 +++++++++++++++ > > 1 file changed, 15 insertions(+) > > > > diff --git a/drivers/usb/gadget/f_fastboot.c > > b/drivers/usb/gadget/f_fastboot.c index 310175a..e2fda86 100644 > > --- a/drivers/usb/gadget/f_fastboot.c > > +++ b/drivers/usb/gadget/f_fastboot.c > > @@ -513,6 +513,17 @@ static void cb_flash(struct usb_ep *ep, struct > > usb_request *req) } > > > > #endif > > > > +static void cb_oem(struct usb_ep *ep, struct usb_request *req) > > +{ > > + char *cmd = req->buf; > > + if (strncmp("unlock", cmd + 4, 8) == 0) { > > + fastboot_tx_write_str("FAILnot implemented"); > > + } > > + else { > > + fastboot_tx_write_str("FAILunknown oem command"); > > + } > > Just a minor comment - those braces could be removed. > > BTW: Marek shall I take those patches to dfu tree or would you take > them to -usb tree ? Take them through DFU please, thank you! Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot