[lkml]   [2006]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectSerial-Core: USB-Serial port current issues.

    Hi Russell,

    I'm working on the port of the USB-Serial layer to the Serial Core [1],
    and turns out that most of the USB-Serial drivers does need to sleep in
    set_termios(), break_ctl(), get_mctrl() and set_mctrl() calls (which are
    not allowed to sleep according to the documentation).

    I took a look in the Serial Core code and didn't see why set_termios()
    and break_ctl() (plus tx_empty()) are not allowed to sleep: they doesn't
    seem to run in atomic context. So, are they allowed to sleep? Isn't the
    documentation out of date? I've even submitted a patch to fix it [2].

    For get_mctrl() and set_mctrl() it seems possible to switch from a spinlock
    to a mutex, as they are not called from an interrupt context. Is this
    really possible? Would you agree with this change?

    Please, note that your opnion is very important. Both issues makes
    the port not possible.



    Luiz Fernando N. Capitulino
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-06-14 00:27    [W:0.020 / U:7.368 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site