* mkdir acm.${name} in configfs always fails with "Device or resource busy"
@ 2020-08-23 4:11 Sid Spry
2020-08-24 6:16 ` Felipe Balbi
0 siblings, 1 reply; 5+ messages in thread
From: Sid Spry @ 2020-08-23 4:11 UTC (permalink / raw)
To: linux-usb
See title. I'm getting this even when using shell commands, so I don't think it is my program.
Creating anything else, like ncm.usb0, will work.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mkdir acm.${name} in configfs always fails with "Device or resource busy"
2020-08-23 4:11 mkdir acm.${name} in configfs always fails with "Device or resource busy" Sid Spry
@ 2020-08-24 6:16 ` Felipe Balbi
2020-08-24 19:25 ` Sid Spry
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2020-08-24 6:16 UTC (permalink / raw)
To: Sid Spry, linux-usb
[-- Attachment #1: Type: text/plain, Size: 275 bytes --]
Hi,
"Sid Spry" <sid@aeam.us> writes:
> See title. I'm getting this even when using shell commands, so I don't
> think it is my program. Creating anything else, like ncm.usb0, will
> work.
which kernel version? which usb controller? which platform?
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mkdir acm.${name} in configfs always fails with "Device or resource busy"
2020-08-24 6:16 ` Felipe Balbi
@ 2020-08-24 19:25 ` Sid Spry
2020-08-25 5:27 ` Felipe Balbi
0 siblings, 1 reply; 5+ messages in thread
From: Sid Spry @ 2020-08-24 19:25 UTC (permalink / raw)
To: Felipe Balbi, linux-usb
On Mon, Aug 24, 2020, at 1:16 AM, Felipe Balbi wrote:
>
> Hi,
>
> "Sid Spry" <sid@aeam.us> writes:
> > See title. I'm getting this even when using shell commands, so I don't
> > think it is my program. Creating anything else, like ncm.usb0, will
> > work.
>
> which kernel version? which usb controller? which platform?
>
Kernel 5.4.45 compiled for a Raspberry Pi 4, the UDC is a DWC2.
Apologies.
On another device (Allwinner based) I could add one serial gadget
but not two, and I though this may have been endpoint exhaustion. Now
I am not so sure.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mkdir acm.${name} in configfs always fails with "Device or resource busy"
2020-08-24 19:25 ` Sid Spry
@ 2020-08-25 5:27 ` Felipe Balbi
2020-09-13 1:53 ` Sid Spry
0 siblings, 1 reply; 5+ messages in thread
From: Felipe Balbi @ 2020-08-25 5:27 UTC (permalink / raw)
To: Sid Spry, linux-usb
[-- Attachment #1: Type: text/plain, Size: 984 bytes --]
"Sid Spry" <sid@aeam.us> writes:
> On Mon, Aug 24, 2020, at 1:16 AM, Felipe Balbi wrote:
>>
>> Hi,
>>
>> "Sid Spry" <sid@aeam.us> writes:
>> > See title. I'm getting this even when using shell commands, so I don't
>> > think it is my program. Creating anything else, like ncm.usb0, will
>> > work.
>>
>> which kernel version? which usb controller? which platform?
>>
>
> Kernel 5.4.45 compiled for a Raspberry Pi 4, the UDC is a DWC2.
great. Latest v5.4 stable is v5.4.60. There have been a few fixes in
dwc2 and gadget drivers between .45 and .60. Just to rule out a problem
that was already fixed, could you merge v5.4.60 to your kernel and try
again?
> On another device (Allwinner based) I could add one serial gadget
> but not two, and I though this may have been endpoint exhaustion. Now
> I am not so sure.
It could exhaustion of Interrupt-capable endpoints. It depends on how
the gadget and the UDC were configured.
cheers
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: mkdir acm.${name} in configfs always fails with "Device or resource busy"
2020-08-25 5:27 ` Felipe Balbi
@ 2020-09-13 1:53 ` Sid Spry
0 siblings, 0 replies; 5+ messages in thread
From: Sid Spry @ 2020-09-13 1:53 UTC (permalink / raw)
To: Felipe Balbi, linux-usb
On Tue, Aug 25, 2020, at 12:27 AM, Felipe Balbi wrote:
> "Sid Spry" <sid@aeam.us> writes:
>
> > On Mon, Aug 24, 2020, at 1:16 AM, Felipe Balbi wrote:
> >>
> >> Hi,
> >>
> >> "Sid Spry" <sid@aeam.us> writes:
> >> > See title. I'm getting this even when using shell commands, so I don't
> >> > think it is my program. Creating anything else, like ncm.usb0, will
> >> > work.
> >>
> >> which kernel version? which usb controller? which platform?
> >>
> >
> > Kernel 5.4.45 compiled for a Raspberry Pi 4, the UDC is a DWC2.
>
> great. Latest v5.4 stable is v5.4.60. There have been a few fixes in
> dwc2 and gadget drivers between .45 and .60. Just to rule out a problem
> that was already fixed, could you merge v5.4.60 to your kernel and try
> again?
>
> > On another device (Allwinner based) I could add one serial gadget
> > but not two, and I though this may have been endpoint exhaustion. Now
> > I am not so sure.
>
> It could exhaustion of Interrupt-capable endpoints. It depends on how
> the gadget and the UDC were configured.
>
Should have been obvious, but yes, this fixes it. Thanks.
In meantime have been finding a bunch of other behavior I can *explain*
but definitely feel is weird, so will try talking about that on list.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-13 1:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-23 4:11 mkdir acm.${name} in configfs always fails with "Device or resource busy" Sid Spry
2020-08-24 6:16 ` Felipe Balbi
2020-08-24 19:25 ` Sid Spry
2020-08-25 5:27 ` Felipe Balbi
2020-09-13 1:53 ` Sid Spry
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.