lkml.org 
[lkml]   [2018]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4] USB: serial: ftdi_sio: implement GPIO support for FT-X devices
> 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

\
 
 \ /
  Last update: 2018-09-18 12:29    [W:0.087 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site