[PATCH] usb: Correct dependencies around USB_EMUL

Marek Vasut marek.vasut at mailbox.org
Sat Mar 21 19:51:26 CET 2026


On 3/21/26 6:06 PM, Tom Rini wrote:
> On Sat, Mar 21, 2026 at 02:24:04AM +0100, Marek Vasut wrote:
>> On 3/20/26 9:53 PM, Tom Rini wrote:
>>> The symbol USB_EMUL is how sandbox has access to USB. It's
>>> implementation however enforces a few other requirements. It must have
>>> SCSI enabled, and in turn that means it must have BLK enabled. Finally,
>>> we should not be using SANDBOX itself as a symbol to decide what to
>>> build or not build here, as SANDBOX is selected for COMPILE_TEST builds
>>> as well and so may not have enabled the sandbox specific USB support.
>>>
>>> Signed-off-by: Tom Rini <trini at konsulko.com>
>>> ---
>>> Cc: Marek Vasut <marek.vasut at mailbox.org>
>>> ---
>>>    drivers/usb/emul/Kconfig  | 2 ++
>>>    drivers/usb/host/Makefile | 2 +-
>>>    2 files changed, 3 insertions(+), 1 deletion(-)
>>>
>>> diff --git a/drivers/usb/emul/Kconfig b/drivers/usb/emul/Kconfig
>>> index 279f6c6d7404..8ba372453e37 100644
>>> --- a/drivers/usb/emul/Kconfig
>>> +++ b/drivers/usb/emul/Kconfig
>>> @@ -1,7 +1,9 @@
>>>    config USB_EMUL
>>>    	bool "Support for USB device emulation"
>>>    	depends on SANDBOX
>>> +	select BLK
>>
>> The select SCSI and Makefile change I do understand. But why do we also need
>> BLK ? I can't find anything which would interact with BLK in the sandbox USB
>> emulation ?
> 
> Ah woops, I was fixing too many problems at once then and forgot BLK is
> select'd by SCSI now, not depends on, so indeed, it's not required here.
Excellent, then please do a V2 and then all is fine. Thanks !


More information about the U-Boot mailing list