summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2022-09-28 10:56:22 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2022-09-30 14:37:39 +0200
commitdf22a22f84b668da75bf14095ff4ebc475dfe79a (patch)
treee7f7c99d8898c5b8c0ea12fc6f6a60d0a7907074 /arch
parentc7428c02d72d1c74295226e7c9483e0f62f6a2aa (diff)
downloadbarebox-df22a22f84b668da75bf14095ff4ebc475dfe79a.tar.gz
barebox-df22a22f84b668da75bf14095ff4ebc475dfe79a.tar.xz
bbu: fix exporting i.MX NAND bbu handler over fastboot
handler->devicefile for i.MX NAND is nand0.barebox, which lacks a /dev/ prefix. This is ok for detection, as device_detect_by_name expects the cdev name and devpath_to_name() will strip a /dev/ if available. For stat() however, we need to add back /dev/, otherwise the file can't be found. Rework the code to do that. This fixes an issue where usbgadget -A '' -b would not export a i.MX NAND barebox update handler. Fixes: 726a802456bc ("common: bbu: only add available handlers") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20220928085622.2677478-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions