diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2024-04-24 08:40:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2024-04-25 09:38:39 +0200 |
commit | 7cffd374fbc3183adbb06b42ef2af7d816cc76c8 (patch) | |
tree | cbc03bbbe48700acfd56a17f362886bd12dd7b38 /fs | |
parent | 3a678386fe77e4959e73133b508ec7058d9913c1 (diff) | |
download | barebox-7cffd374fbc3183adbb06b42ef2af7d816cc76c8.tar.gz barebox-7cffd374fbc3183adbb06b42ef2af7d816cc76c8.tar.xz |
usb: hub: use DMA-capable memory in usb_hub_configure
usb_hub_configure does a lot of control transfers to `buffer', a
stack-allocated variable. Switch it to a suitably aligned buffer
allocated with dma_alloc() instead.
The cleanup on error intentionally doesn't touch `hub'. Errors should
probably invalidate this, but that's out-of-scope for this DMA fix.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20240424064058.3608016-20-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions