OSDN Git Service

greybus: sdio: error out only for smaller payloads received
authorViresh Kumar <viresh.kumar@linaro.org>
Sat, 8 Aug 2015 02:39:32 +0000 (08:09 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 11 Aug 2015 00:36:55 +0000 (17:36 -0700)
commitf1f6fa44ae49e91c0a5fe9e0c6e5614e6aa22283
treed56c5b3dbdfefa8a1bceb6fbb043b547668ad11b
parent782c3b732889b5fbce796a4b548d47a43e4d8c42
greybus: sdio: error out only for smaller payloads received

!= was used in place of <, while comparing expected and actual payload
size. The module may be running a higher version of the protocol and
might have some extra fields (towards the end) in the structure, and the
AP needs to ignore them.

This also updates the print (expected-payload-size <
actual-payload-size), when the size doesn't match for requests received
by the module. This gives more details required for debugging.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/sdio.c