OSDN Git Service

greybus: uart: kmalloc for send_data once only
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>
Tue, 2 Jun 2015 12:40:49 +0000 (13:40 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 4 Jun 2015 05:11:05 +0000 (14:11 +0900)
commitdd1c64ede97f163e5ab2fdebfe3f4095f4638120
tree52b6178f0a71e28f84a16f01323b4d80a9c6ccaa
parent563bd79b2ddd12dd9da89635dc218d6c706a4130
greybus: uart: kmalloc for send_data once only

Make kmalloc for the send buffer a one time alloc based on the MTU for
a given greybus link.

The write_room for an gb_operation_sync then will be the size of the
buffer we use for a single operation.

Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/uart.c