28 Sep, 2006

1 commit

  • The purpose of this patch is to split off the case when a device does
    not reply on the lower level (which is reported by HC hardware), and
    a case when the device accepted the request, but does not reply at
    upper level. This redefinition allows to diagnose issues easier,
    without asking the user if the -110 happened "immediately".

    The usbmon splits such cases already thanks to its timestamp, but
    it's not always available.

    I adjusted all drivers which I found affected (by searching for "urb").
    Out of tree drivers may suffer a little bit, but I do not expect much
    breakage. At worst they may print a few messages.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     

27 Sep, 2006

1 commit

  • i2c-algo-bit: Discard the mdelay data struct member

    The i2c_algo_bit_data structure has an mdelay member, which is not
    used by the algorithm code (the code has always been ifdef'd out.)
    Let's discard it to save some code and memory.

    Signed-off-by: Jean Delvare
    Acked-by: Mauro Carvalho Chehab
    Cc: Adrian Bunk
    Signed-off-by: Greg Kroah-Hartman

    Jean Delvare
     

26 Sep, 2006

2 commits

  • Small driver suspend() fixes in preparation for the PRETHAW events:

    - Only compare message events for equality against PM_EVENT_* codes;
    not against integers, or using greater/less-than comparisons.
    (PM_EVENT_* should really become a __bitwise thing.)

    - Explicitly test for SUSPEND events (rather than not-something-else)
    before suspending devices.

    - Removes more of the confusion between a pm_message_t (wraps event code)
    and a "state" ... suspend() originally took a target system state.

    These updates are correct and appropriate even without new PM_EVENT codes.

    benh: "I think in the Mesh case, we should handle the freeze case as well or
    we might get wild DMA."

    Signed-off-by: David Brownell
    Acked-by: Pavel Machek
    Cc: Greg KH
    Cc: Paul Mackerras
    Acked-by: Benjamin Herrenschmidt
    Cc: Mauro Carvalho Chehab
    Cc: James Bottomley
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    David Brownell
     
  • The v4l2 API documentation for VIDIOC_ENUMSTD says:

    To enumerate all standards applications shall begin at index
    zero, incrementing by one until the driver returns EINVAL.

    The actual code, however, tests the index this way:

    if (index= vfd->tvnormsize) {
    ret=-EINVAL;

    So any application which passes in index=0 gets EINVAL right off the bat
    - and, in fact, this is what happens to mplayer. So I think the
    following patch is called for, and maybe even appropriate for a 2.6.18.x
    stable release.

    Signed-off-by: Jonathan Corbet
    Cc: Mauro Carvalho Chehab
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jonathan Corbet
     

11 Sep, 2006

6 commits


09 Aug, 2006

11 commits


30 Jul, 2006

19 commits