1. 25 4月, 2008 5 次提交
  2. 22 2月, 2008 2 次提交
  3. 02 2月, 2008 2 次提交
  4. 19 10月, 2007 1 次提交
    • J
      Add missing newlines to some uses of dev_<level> messages · 898eb71c
      Joe Perches 提交于
      Found these while looking at printk uses.
      
      Add missing newlines to dev_<level> uses
      Add missing KERN_<level> prefixes to multiline dev_<level>s
      Fixed a wierd->weird spelling typo
      Added a newline to a printk
      Signed-off-by: NJoe Perches <joe@perches.com>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Jens Axboe <jens.axboe@oracle.com>
      Cc: Mark M. Hoffman <mhoffman@lightlink.com>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Tilman Schmidt <tilman@imap.cc>
      Cc: David Woodhouse <dwmw2@infradead.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Stephen Hemminger <shemminger@linux-foundation.org>
      Cc: Greg KH <greg@kroah.com>
      Cc: Jeremy Fitzhardinge <jeremy@goop.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: David Brownell <david-b@pacbell.net>
      Cc: James Smart <James.Smart@Emulex.Com>
      Cc: Andrew Vasquez <andrew.vasquez@qlogic.com>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Cc: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Jaroslav Kysela <perex@suse.cz>
      Cc: Takashi Iwai <tiwai@suse.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      898eb71c
  5. 13 10月, 2007 5 次提交
    • P
      usblp: Fix a double kfree · 42cb967f
      Pete Zaitcev 提交于
      If submit fails, slab hits a BUG() because of a double kfree.
      The today's lesson is, you cannot just slap USB_FREE_BUFFER on code
      without adjusting the error paths.
      
      The patch is made bigger by opportunistic refactoring.
      Signed-Off-By: NPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      42cb967f
    • P
      usblp: Cosmetics · 283face8
      Pete Zaitcev 提交于
      This is a small bunch of cosmetic fixes:
       - Timeout is not a write timeout anymore, rename
       - Condition in poll was confusingly backwards, invert and simplify
       - The comment log gave a wrong impression of version 0.13, terminate it.
      Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      283face8
    • P
      usblp: mutex in usblp_check_status · fc401e69
      Pete Zaitcev 提交于
      Add a mutex to protect the ->statusbuf. Not really an issue, because CUPS
      is single-threaded when it talks to the printer, but I feel safer this way.
      This should be deadlock-free, but I kept this as a separate patch in case
      someone ends running a git bisect.
      Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      fc401e69
    • P
      usblp: Make use of URB_FREE_BUFFER · e8fa0ce6
      Pete Zaitcev 提交于
      Employ the new API URB_FREE_BUFFER that we've got. There was talk of a combined
      constructor for this case, but apparently it's not happening, so just set the
      flag explicitly for now.
      Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      e8fa0ce6
    • P
      usblp: Implement the ENOSPC convention · 7f477358
      Pete Zaitcev 提交于
      This patch implements a mode when a printer returns ENOSPC when it runs
      out of paper. The default remains the same as before. An application which
      wishes to use this function has to enable it explicitly with an ioctl
      LPABORT.
      
      This is done on a request by our (Fedora) CUPS guy, Tim Waugh. The API is
      similar enough to the lp0's one that CUPS works with both (but see below),
      but it's has some differences.
      
      Most importantly, the abort mode is persistent in case of lp0: once tunelp
      was run your cat fill blow up until you reboot or run tunelp again. For
      usblp, I made it so the abort mode is only in effect as long as device
      is open. This way you can mix and match CUPS and cat(1) freely and nothing
      bad happens even if you run out of paper. It is also safer in the face
      of any unexpected crashes.
      
      It has to be noted that mixing LPABORT and O_NONBLOCK is not advised.
      It probably does not do what you want: instead of returning -ENOSPC
      it will always return -EAGAIN (because it would otherwise block while
      waiting for the paper). Applications which use O_NONBLOCK should continue
      to use LPGETSTATUS like before.
      
      Finally, CUPS actually requires patching to take full advantage of this.
      It has several components; those which invoke LPABORT work, but some of
      them need the ioctl added. This is completely compatible, you can mix
      old CUPS and new kernels or vice versa.
      Signed-off-by: NPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      7f477358
  6. 23 8月, 2007 1 次提交
  7. 20 7月, 2007 3 次提交
  8. 13 7月, 2007 2 次提交
  9. 09 6月, 2007 1 次提交
  10. 23 5月, 2007 1 次提交
  11. 09 5月, 2007 1 次提交
  12. 28 4月, 2007 1 次提交
  13. 20 3月, 2007 1 次提交
  14. 10 3月, 2007 1 次提交
  15. 17 2月, 2007 2 次提交
  16. 08 2月, 2007 1 次提交
  17. 06 1月, 2007 1 次提交
    • M
      USB: usblp.c - add Kyocera Mita FS 820 to list of "quirky" printers · 4f45d038
      Martin Williges 提交于
      This patch gets the Kyocera FS-820 working with cups 1.2 via usb again. It
      adds the printer to the list of "quirky" printers. The printer seems not
      answer to ID requests some seconds after plugging in. Patch is based on
      linux-2.6.19.1.
      
      Background:
      As far as I could see (strace, usbmon), the Kyocera FS-820 answers to ID
      requests only a few seconds after plugging it in. This applies to detecting
      it with cups and is also true for the printing itself, which is initiated
      with an ID request. Since I have little usb knowledge, maybe someone can
      interpret the data, especially the fist bulk transfer - why request 8192
      bytes? This is the second version of the patch.
      
      usbmon output of printing an email without patch:
      tail -F /tmp/printlog.txt
      c636e140 3374734463 S Bi:002:02 -115 8192 <
      c9d43b40 3374734494 S Ci:002:00 s a1 00 0000 0000 03ff 1023 <
      c9d43b40 3379732301 C Ci:002:00 -104 0
      c636e140 3379733294 C Bi:002:02 -2 0
      [...repeating...]
      
      with patch:
      tail -F /tmp/printlog.txt
      d9cb82c0 3729790131 S Ci:002:00 s a1 00 0000 0000 03ff 1023 <
      d9cb82c0 3729791725 C Ci:002:00 0 91 = 005b4944 3a46532d 3832303b 4d46473a
       4b796f63 6572613b 434d443a 50434c58 df956320 3732493190 S Bo:002:01 -115
       1347 = 1b252d31 32333435 5840504a 4c0a4050 4a4c2053 4554204d 414e5541
       4c464545 [...more data...]
      Signed-off-by: NMartin Williges <kernel@zut.de>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4f45d038
  18. 21 12月, 2006 1 次提交
  19. 09 12月, 2006 1 次提交
    • A
      [PATCH] tty: switch to ktermios · 606d099c
      Alan Cox 提交于
      This is the grungy swap all the occurrences in the right places patch that
      goes with the updates.  At this point we have the same functionality as
      before (except that sgttyb() returns speeds not zero) and are ready to
      begin turning new stuff on providing nobody reports lots of bugs
      
      If you are a tty driver author converting an out of tree driver the only
      impact should be termios->ktermios name changes for the speed/property
      setting functions from your upper layers.
      
      If you are implementing your own TCGETS function before then your driver
      was broken already and its about to get a whole lot more painful for you so
      please fix it 8)
      
      Also fill in c_ispeed/ospeed on init for most devices, although the current
      code will do this for you anyway but I'd like eventually to lose that extra
      paranoia
      
      [akpm@osdl.org: bluetooth fix]
      [mp3@de.ibm.com: sclp fix]
      [mp3@de.ibm.com: warning fix for tty3270]
      [hugh@veritas.com: fix tty_ioctl powerpc build]
      [jdike@addtoit.com: uml: fix ->set_termios declaration]
      Signed-off-by: NAlan Cox <alan@redhat.com>
      Signed-off-by: NMartin Peschke <mp3@de.ibm.com>
      Acked-by: NPeter Oberparleiter <oberpar@de.ibm.com>
      Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
      Signed-off-by: NHugh Dickins <hugh@veritas.com>
      Signed-off-by: NJeff Dike <jdike@addtoit.com>
      Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      606d099c
  20. 02 12月, 2006 1 次提交
  21. 22 11月, 2006 1 次提交
  22. 04 11月, 2006 2 次提交
  23. 18 10月, 2006 3 次提交