“2ea336dc117098ef917ca9a19e911d15490587cc”上不存在“drivers/media/tuners/Kconfig”
  1. 22 6月, 2006 12 次提交
    • D
      [PATCH] USB: move <linux/usb_input.h> to <linux/usb/input.h> · ae0dadcf
      David Brownell 提交于
      Move <linux/usb_input.h> to <linux/usb/input.h> and remove some
      redundant includes.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      ae0dadcf
    • D
      [PATCH] USB: move hardware-specific <linux/usb_*.h> to <linux/usb/*.h> · 325a4af6
      David Brownell 提交于
      This moves header files for controller-specific platform data
      from <linux/usb_XXX.h> to <linux/usb/XXX.h> to start reducing
      some clutter.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      325a4af6
    • D
      [PATCH] USB: move <linux/usb_cdc.h> to <linux/usb/cdc.h> · a8c28f23
      David Brownell 提交于
      This moves <linux/usb_cdc.h> to <linux/usb/cdc.h> to reduce some of the
      clutter of usb header files.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      a8c28f23
    • A
      [PATCH] usbcore: port reset for composite devices · 79efa097
      Alan Stern 提交于
      This patch (as699) adds usb_reset_composite_device(), a routine for
      sending a USB port reset to a device with multiple interfaces owned by
      different drivers.  Drivers are notified about impending and completed
      resets through two new methods in the usb_driver structure.
      
      The patch modifieds the usbfs ioctl code to make it use the new routine
      instead of usb_reset_device().  Follow-up patches will modify the hub,
      usb-storage, and usbhid drivers so they can utilize this new API.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      79efa097
    • G
      [PATCH] USB: add usb_interrupt_msg() function for api completeness. · 782a7a63
      Greg Kroah-Hartman 提交于
      Really just a wrapper around usb_bulk_msg() but now it's documented
      much better.
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      782a7a63
    • R
      [PATCH] Driver model: add ISA bus · a5117ba7
      Rene Herman 提交于
      During the recent "isa drivers using platform devices" discussion it was
      pointed out that (ALSA) ISA drivers ran into the problem of not having
      the option to fail driver load (device registration rather) upon not
      finding their hardware due to a probe() error not being passed up
      through the driver model. In the course of that, I suggested a seperate
      ISA bus might be best; Russell King agreed and suggested this bus could
      use the .match() method for the actual device discovery.
      
      The attached does this. For this old non (generically) discoverable ISA
      hardware only the driver itself can do discovery so as a difference with
      the platform_bus, this isa_bus also distributes match() up to the driver.
      
      As another difference: these devices only exist in the driver model due
      to the driver creating them because it might want to drive them, meaning
      that all device creation has been made internal as well.
      
      The usage model this provides is nice, and has been acked from the ALSA
      side by Takashi Iwai and Jaroslav Kysela. The ALSA driver module_init's
      now (for oldisa-only drivers) become:
      
      static int __init alsa_card_foo_init(void)
      {
      	return isa_register_driver(&snd_foo_isa_driver, SNDRV_CARDS);
      }
      
      static void __exit alsa_card_foo_exit(void)
      {
      	isa_unregister_driver(&snd_foo_isa_driver);
      }
      
      Quite like the other bus models therefore. This removes a lot of
      duplicated init code from the ALSA ISA drivers.
      
      The passed in isa_driver struct is the regular driver struct embedding a
      struct device_driver, the normal probe/remove/shutdown/suspend/resume
      callbacks, and as indicated that .match callback.
      
      The "SNDRV_CARDS" you see being passed in is a "unsigned int ndev"
      parameter, indicating how many devices to create and call our methods with.
      
      The platform_driver callbacks are called with a platform_device param;
      the isa_driver callbacks are being called with a "struct device *dev,
      unsigned int id" pair directly -- with the device creation completely
      internal to the bus it's much cleaner to not leak isa_dev's by passing
      them in at all. The id is the only thing we ever want other then the
      struct device * anyways, and it makes for nicer code in the callbacks as
      well.
      
      With this additional .match() callback ISA drivers have all options. If
      ALSA would want to keep the old non-load behaviour, it could stick all
      of the old .probe in .match, which would only keep them registered after
      everything was found to be present and accounted for. If it wanted the
      behaviour of always loading as it inadvertently did for a bit after the
      changeover to platform devices, it could just not provide a .match() and
      do everything in .probe() as before.
      
      If it, as Takashi Iwai already suggested earlier as a way of following
      the model from saner buses more closely, wants to load when a later bind
      could conceivably succeed, it could use .match() for the prerequisites
      (such as checking the user wants the card enabled and that port/irq/dma
      values have been passed in) and .probe() for everything else. This is
      the nicest model.
      
      To the code...
      
      This exports only two functions; isa_{,un}register_driver().
      
      isa_register_driver() register's the struct device_driver, and then
      loops over the passed in ndev creating devices and registering them.
      This causes the bus match method to be called for them, which is:
      
      int isa_bus_match(struct device *dev, struct device_driver *driver)
      {
                struct isa_driver *isa_driver = to_isa_driver(driver);
      
                if (dev->platform_data == isa_driver) {
                        if (!isa_driver->match ||
                                isa_driver->match(dev, to_isa_dev(dev)->id))
                                return 1;
                        dev->platform_data = NULL;
                }
                return 0;
      }
      
      The first thing this does is check if this device is in fact one of this
      driver's devices by seeing if the device's platform_data pointer is set
      to this driver. Platform devices compare strings, but we don't need to
      do that with everything being internal, so isa_register_driver() abuses
      dev->platform_data as a isa_driver pointer which we can then check here.
      I believe platform_data is available for this, but if rather not, moving
      the isa_driver pointer to the private struct isa_dev is ofcourse fine as
      well.
      
      Then, if the the driver did not provide a .match, it matches. If it did,
      the driver match() method is called to determine a match.
      
      If it did _not_ match, dev->platform_data is reset to indicate this to
      isa_register_driver which can then unregister the device again.
      
      If during all this, there's any error, or no devices matched at all
      everything is backed out again and the error, or -ENODEV, is returned.
      
      isa_unregister_driver() just unregisters the matched devices and the
      driver itself.
      
      More global points/questions...
      
      - I'm introducing include/linux/isa.h. It was available but is ofcourse
      a somewhat generic name. Moving more isa stuff over to it in time is
      ofcourse fine, so can I have it please? :)
      
      - I'm using device_initcall() and added the isa.o (dependent on
      CONFIG_ISA) after the base driver model things in the Makefile. Will
      this do, or I really need to stick it in drivers/base/init.c, inside
      #ifdef CONFIG_ISA? It's working fine.
      
      Lastly -- I also looked, a bit, into integrating with PnP. "Old ISA"
      could be another pnp_protocol, but this does not seem to be a good
      match, largely due to the same reason platform_devices weren't -- the
      devices do not have a life of their own outside the driver, meaning the
      pnp_protocol {get,set}_resources callbacks would need to callback into
      driver -- which again means you first need to _have_ that driver. Even
      if there's clean way around that, you only end up inventing fake but
      valid-form PnP IDs and generally catering to the PnP layer without any
      practical advantages over this very simple isa_bus. The thing I also
      suggested earlier about the user echoing values into /sys to set up the
      hardware from userspace first is... well, cute, but a horrible idea from
      a user standpoint.
      
      Comments ofcourse appreciated. Hope it's okay. As said, the usage model
      is nice at least.
      Signed-off-by: NRene Herman <rene.herman@keyaccess.nl>
      a5117ba7
    • A
      [PATCH] Driver Core: Make dev_info and friends print the bus name if there is no driver · 3e95637a
      Alan Stern 提交于
      This patch (as721) makes dev_info and related macros print the device's
      bus name if the device doesn't have a driver, instead of printing just a
      blank.  If the device isn't on a bus either... well, then it does leave
      a blank space.  But it will be easier for someone else to change if they
      want.
      
      Cc: Matthew Wilcox <matthew@wil.cx>
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      3e95637a
    • G
      [PATCH] Driver core: allow struct device to have a dev_t · 23681e47
      Greg Kroah-Hartman 提交于
      This is the first step in moving class_device to being replaced by
      struct device.  It allows struct device to export a dev_t and makes it
      easy to dynamically create and destroy struct device as long as they are
      associated with a specific class.
      
      Cc: Kay Sievers <kay.sievers@vrfy.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      23681e47
    • M
      [PATCH] Driver Core: Add /sys/hypervisor when needed · 4039483f
      Michael Holzheu 提交于
      To have a home for all hypervisors, this patch creates /sys/hypervisor.
      A new config option SYS_HYPERVISOR is introduced, which should to be set
      by architecture dependent hypervisors (e.g. s390 or Xen).
      Acked-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
      Signed-off-by: NMichael Holzheu <holzheu@de.ibm.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      4039483f
    • S
      [PATCH] Driver Core: Allow sysdev_class have attributes · 670dd90d
      Shaohua Li 提交于
      allow sysdev_class adding attribute. Next patch will use the new API to
      add an attribute under /sys/device/system/cpu/.
      Signed-off-by: NShaohua Li <shaohua.li@intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      670dd90d
    • G
      [PATCH] Driver Core: remove unused exports · 1740757e
      Greg Kroah-Hartman 提交于
      Cc: Arjan van de Ven <arjan@linux.intel.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1740757e
    • H
      [PATCH] TTY: return class device pointer from tty_register_device() · 1cdcb6b4
      Hansjoerg Lipp 提交于
      Let tty_register_device() return a pointer to the class device it creates.
      This allows registrants to add their own sysfs files under the class
      device node.
      Signed-off-by: NHansjoerg Lipp <hjlipp@web.de>
      Signed-off-by: NTilman Schmidt <tilman@imap.cc>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      1cdcb6b4
  2. 21 6月, 2006 2 次提交
    • B
      [PATCH] add __iowrite64_copy · 22ae813b
      Brice Goglin 提交于
      Introduce __iowrite64_copy.  It will be used by the Myri-10G Ethernet
      driver to post requests to the NIC.  This driver will be submitted soon.
      
      __iowrite64_copy copies to I/O memory in units of 64 bits when possible (on
      64 bit architectures).  It reverts to __iowrite32_copy on 32 bit
      architectures.
      Signed-off-by: NBrice Goglin <brice@myri.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      22ae813b
    • T
      [MTD] NAND: Fix breakage all over the place · 7bc3312b
      Thomas Gleixner 提交于
      Following problems are addressed:
      
      - wrong status caused early break out of nand_wait()
      - removed the bogus status check in nand_wait() which
        is a relict of the abandoned support for interrupted
        erase.
      - status check moved to the correct place in read_oob
      - oob support for syndrom based ecc with strange layouts
      - use given offset in the AUTOOOB based oob operations
      
      Partially based on a patch from Vitaly Vool <vwool@ru.mvista.com>
      Thanks to Savin Zlobec <savin@epico.si> for tracking down the
      status problem.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      7bc3312b
  3. 20 6月, 2006 17 次提交
  4. 18 6月, 2006 9 次提交
    • T
    • H
      [NET]: Add NETIF_F_GEN_CSUM and NETIF_F_ALL_CSUM · 8648b305
      Herbert Xu 提交于
      The current stack treats NETIF_F_HW_CSUM and NETIF_F_NO_CSUM
      identically so we test for them in quite a few places.  For the sake
      of brevity, I'm adding the macro NETIF_F_GEN_CSUM for these two.  We
      also test the disjunct of NETIF_F_IP_CSUM and the other two in various
      places, for that purpose I've added NETIF_F_ALL_CSUM.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8648b305
    • D
      [TCP]: Add tcp_slow_start_after_idle sysctl. · 35089bb2
      David S. Miller 提交于
      A lot of people have asked for a way to disable tcp_cwnd_restart(),
      and it seems reasonable to add a sysctl to do that.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      35089bb2
    • H
      [NET]: Warn in __skb_trim if skb is paged · 3cc0e873
      Herbert Xu 提交于
      It's better to warn and fail rather than rarely triggering BUG on paths
      that incorrectly call skb_trim/__skb_trim on a non-linear skb.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      3cc0e873
    • H
      [NET]: Clean up skb_linearize · 364c6bad
      Herbert Xu 提交于
      The linearisation operation doesn't need to be super-optimised.  So we can
      replace __skb_linearize with __pskb_pull_tail which does the same thing but
      is more general.
      
      Also, most users of skb_linearize end up testing whether the skb is linear
      or not so it helps to make skb_linearize do just that.
      
      Some callers of skb_linearize also use it to copy cloned data, so it's
      useful to have a new function skb_linearize_cow to copy the data if it's
      either non-linear or cloned.
      
      Last but not least, I've removed the gfp argument since nobody uses it
      anymore.  If it's ever needed we can easily add it back.
      
      Misc bugs fixed by this patch:
      
      * via-velocity error handling (also, no SG => no frags)
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      364c6bad
    • H
      [NET]: Add netif_tx_lock · 932ff279
      Herbert Xu 提交于
      Various drivers use xmit_lock internally to synchronise with their
      transmission routines.  They do so without setting xmit_lock_owner.
      This is fine as long as netpoll is not in use.
      
      With netpoll it is possible for deadlocks to occur if xmit_lock_owner
      isn't set.  This is because if a printk occurs while xmit_lock is held
      and xmit_lock_owner is not set can cause netpoll to attempt to take
      xmit_lock recursively.
      
      While it is possible to resolve this by getting netpoll to use
      trylock, it is suboptimal because netpoll's sole objective is to
      maximise the chance of getting the printk out on the wire.  So
      delaying or dropping the message is to be avoided as much as possible.
      
      So the only alternative is to always set xmit_lock_owner.  The
      following patch does this by introducing the netif_tx_lock family of
      functions that take care of setting/unsetting xmit_lock_owner.
      
      I renamed xmit_lock to _xmit_lock to indicate that it should not be
      used directly.  I didn't provide irq versions of the netif_tx_lock
      functions since xmit_lock is meant to be a BH-disabling lock.
      
      This is pretty much a straight text substitution except for a small
      bug fix in winbond.  It currently uses
      netif_stop_queue/spin_unlock_wait to stop transmission.  This is
      unsafe as an IRQ can potentially wake up the queue.  So it is safer to
      use netif_tx_disable.
      
      The hamradio bits used spin_lock_irq but it is unnecessary as
      xmit_lock must never be taken in an IRQ handler.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      932ff279
    • J
      [SECMARK]: Add CONNSECMARK xtables target · 100468e9
      James Morris 提交于
      Add a new xtables target, CONNSECMARK, which is used to specify rules
      for copying security marks from packets to connections, and for
      copyying security marks back from connections to packets.  This is
      similar to the CONNMARK target, but is more limited in scope in that
      it only allows copying of security marks to and from packets, as this
      is all it needs to do.
      
      A typical scenario would be to apply a security mark to a 'new' packet
      with SECMARK, then copy that to its conntrack via CONNMARK, and then
      restore the security mark from the connection to established and
      related packets on that connection.
      Signed-off-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      100468e9
    • J
      [SECMARK]: Add secmark support to conntrack · 7c9728c3
      James Morris 提交于
      Add a secmark field to IP and NF conntracks, so that security markings
      on packets can be copied to their associated connections, and also
      copied back to packets as required.  This is similar to the network
      mark field currently used with conntrack, although it is intended for
      enforcement of security policy rather than network policy.
      Signed-off-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7c9728c3
    • J
      [SECMARK]: Add xtables SECMARK target · 5e6874cd
      James Morris 提交于
      Add a SECMARK target to xtables, allowing the admin to apply security
      marks to packets via both iptables and ip6tables.
      
      The target currently handles SELinux security marking, but can be
      extended for other purposes as needed.
      Signed-off-by: NJames Morris <jmorris@namei.org>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5e6874cd