1. 18 10月, 2008 3 次提交
  2. 22 8月, 2008 2 次提交
  3. 14 8月, 2008 4 次提交
  4. 23 7月, 2008 1 次提交
  5. 22 7月, 2008 5 次提交
  6. 04 7月, 2008 1 次提交
  7. 04 6月, 2008 1 次提交
  8. 21 5月, 2008 1 次提交
  9. 15 5月, 2008 1 次提交
  10. 29 4月, 2008 1 次提交
  11. 25 4月, 2008 5 次提交
  12. 22 2月, 2008 2 次提交
  13. 02 2月, 2008 2 次提交
  14. 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
  15. 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
  16. 23 8月, 2007 1 次提交
  17. 20 7月, 2007 3 次提交
  18. 13 7月, 2007 1 次提交