Re: [PATCH v4] USB: serial: ftdi_sio: implement GPIO support for FT-X devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> We'll get this into 4.20 either way, there's plenty of time. But I guess
> we could play it safe and always register four pins, and if/when we get
> more info about FT234XD we can implement registering just one pin in a
> follow up patch.
> 
> Sounds good? If so I'll just merge your v5 (registering four pins) next
> week.

Ofc, thank you.

>> Does that mean something can call into our module while this method is running?
>> If not, I'm clueless about the possible race here.
> 
> Correct, you can get gpio callbacks until the gpio chip has been
> deregistered (anything coming in after that would be a gpiolib bug).

I'm just puzzled by the fact that this can still happen even while the port 
removal code is running. It also makes me ask the question what else here can
run in parallel. Don't we need mutexes here-and-there in the ftx gpio functions too
in this case? Or does gpiolib make sure to serialize multiple pin and direction
setting calls?

Thank you,
Karoly




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux