usb: gadget: f_sdp: Provide filesize env variable for downloaded images
authorPetr Štetiar <[email protected]>
Fri, 23 Nov 2018 13:37:52 +0000 (14:37 +0100)
committerMarek Vasut <[email protected]>
Fri, 14 Dec 2018 16:59:08 +0000 (17:59 +0100)
commitbb00a015d624f683c66c9e30341f93b678d03d2e
tree75d6339c3885040d9eb22aaded53ed296d74db03
parentd117d8f19b0625f88309e47a8a32c2faa384dddc
usb: gadget: f_sdp: Provide filesize env variable for downloaded images

Currently it's not possible to get filesize of downloaded images and
it's impossible to automate some tasks in scripts. So this patch adds
`filesize` environment variable with size (as hex number in bytes) of
the last successfully downloaded file via `sdp` command.

Cc: Lukasz Majewski <[email protected]>
Cc: Marek Vasut <[email protected]>
Cc: Stefan Agner <[email protected]>
Signed-off-by: Petr Štetiar <[email protected]>
Reviewed-by: Stefan Agner <[email protected]>
drivers/usb/gadget/f_sdp.c