Re: [PATCH] bttv driver II

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Mon May 22 2000 - 20:40:17 EDT

  • Next message: Erez Zadok: "Re: [prepatch] Directory Notification"

    > bt848 because of too many errors. The reset involves some actions
    > (calling set_pll() for example) which can't be done from irq context,
    > thats why bttv's irq handler just stops dma and sets a flag. Next time
    > some program calls a ioctl() bttv resets the chip an restarts everything.
    > If someone has a more clever way to handle this, hints are welcome...

    Can the set_pll be done with timers as a state machine ?

    If not can you wake people sleeping in ioctl/read etc and have the read/ioctl
    loop also check the flag so the flow is

            read
            sleep
                                    error
                                    set flag
                                    wake
            flag set ?
            set_poll
            goto read loop

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/



    This archive was generated by hypermail 2b29 : Mon May 22 2000 - 20:51:01 EDT