Heiner Kallweit
1423877b73
spi: fsl-espi: pre-allocate message buffer
...
Currently the driver allocates a 64kb buffer for each single message.
On systems with little and fragmented memory this can result in
memory allocation errors. Solve this by pre-allocating a buffer.
This patch was developed in OpenWRT long ago, however it never
made it upstream.
I slightly modified the original patch to re-initialize the buffer
at the beginning of each transfer.
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
2016-09-12 19:58:45 +01:00
..
2016-07-08 10:47:45 +02:00
2016-07-24 21:54:29 +01:00
2015-09-30 20:33:29 +01:00
2016-01-28 23:25:54 +01:00
2015-09-16 20:54:54 +01:00
2016-04-26 11:56:09 +01:00
2016-04-18 13:53:46 +01:00
2015-08-25 17:33:49 +01:00
2016-01-11 16:48:30 +00:00
2016-02-15 20:43:39 +00:00
2016-03-11 14:28:25 +07:00
2016-07-03 14:14:31 +02:00
2016-07-03 14:24:31 +02:00
2015-07-29 15:01:07 +01:00
2015-10-05 14:55:56 +01:00
2015-12-02 19:38:16 +00:00
2016-04-18 10:58:49 +01:00
2016-07-24 21:54:29 +01:00
2016-07-24 21:54:29 +01:00
2016-07-24 21:54:29 +01:00
2016-07-07 11:44:43 +02:00
2015-10-12 17:02:08 +01:00
2016-04-29 18:15:15 +01:00
2016-04-26 11:56:09 +01:00
2016-02-05 17:41:49 +00:00
2016-02-05 17:41:49 +00:00
2016-05-11 18:26:19 +01:00
2015-12-23 12:12:09 +00:00
2015-11-30 11:34:50 +00:00
2016-05-24 16:54:50 +01:00
2015-12-22 17:12:56 -06:00
2016-05-23 12:16:48 +01:00
2016-09-12 19:58:45 +01:00
2015-08-28 18:15:18 +01:00
2016-09-12 19:58:45 +01:00
2015-08-30 12:14:36 +01:00
2015-08-31 14:45:32 +01:00
2016-06-21 19:52:15 +01:00
2015-12-07 20:09:09 +00:00
2016-06-28 19:40:53 +01:00
2016-02-26 11:06:38 +09:00
2015-09-19 07:55:25 -07:00
2016-07-03 14:23:25 +02:00
2015-09-17 12:33:31 +01:00
2016-01-11 16:48:33 +00:00
2015-09-16 19:16:01 +01:00
2016-07-08 10:48:02 +02:00
2015-09-17 12:34:20 +01:00
2015-09-17 12:33:58 +01:00
2016-06-13 16:36:40 +01:00
2016-07-24 21:49:57 +01:00
2016-07-24 21:49:16 +01:00
2016-02-17 12:08:55 +00:00
2015-09-17 12:13:40 +01:00
2016-06-21 18:44:48 +01:00
2016-07-07 12:04:47 +02:00
2016-07-24 22:08:25 +01:00
2016-06-21 18:44:48 +01:00
2016-05-02 15:27:28 +01:00
2016-07-24 22:08:25 +01:00
2015-07-03 13:52:10 +01:00
2015-09-17 12:13:40 +01:00
2016-07-14 17:28:32 +01:00
2016-06-22 14:14:38 +01:00
2016-07-11 19:32:38 +01:00
2015-05-26 11:39:16 +01:00
2016-07-12 13:22:55 +02:00
2016-07-24 22:08:27 +01:00
2016-07-24 22:08:27 +01:00
2015-12-13 20:10:15 +00:00
2016-07-24 22:08:27 +01:00
2015-10-28 10:30:17 +09:00
2016-07-11 19:32:26 +01:00
2016-07-03 14:22:27 +02:00
2015-07-31 18:14:57 +01:00
2016-07-15 11:45:00 +01:00
2015-08-28 18:22:19 +01:00
2015-09-22 09:30:10 -07:00
2016-05-04 14:21:03 +01:00
2016-07-27 14:11:43 -07:00
2016-07-04 16:28:52 +02:00