02 Jul, 2007

18 commits

  • >>>>> "Greg" == Greg KH writes:

    Greg> Yeah, this is the cdc_acm driver that is still in the USB drivers/
    Greg> directory tree as it is a USB class driver that shows up as a tty device
    Greg> to userspace. It should not be moved to the networking list unless no
    Greg> one minds that I never see any queries about it :)

    Ok, here's an updated patch:

    Questions regarding the USB network drivers should now go to netdev.

    Signed-off-by: Peter Korsgaard
    Acked-by: David Brownell
    Signed-off-by: Jeff Garzik

    Peter Korsgaard
     
  • Usbnet adds a padding byte if a 0 byte USB packet would be sent. Zero
    padding byte if there is tail room in skb.

    Signed-of-by: Peter Korsgaard
    Acked-by: David Brownell

    Signed-off-by: Jeff Garzik

    Peter Korsgaard
     
  • The dm9601 driver was including the 2 byte hardware header in the
    packet length, causing the HW to send 2 extra bytes of garbage on tx.

    Signed-off-by: Peter Korsgaard
    Signed-off-by: Jeff Garzik

    Peter Korsgaard
     
  • instead of:
    "This driver has not been ported to this 64-bit architecture yet."
    the driver is said to work on alpha, see
    http://bugs.debian.org/305330

    Signed-off-by: maximilian attems
    Signed-off-by: Jeff Garzik

    maximilian attems
     
  • SET_NETDEV_DEV() in myri10ge to create the "/sys/class/net//device"
    symlink.

    Signed-off-by: Maik Hampel
    Signed-off-by: Jeff Garzik

    Maik Hampel
     
  • …werpc into upstream-fixes

    Jeff Garzik
     
  • …inville/wireless-2.6 into upstream-fixes

    Jeff Garzik
     
  • Last -rc? That's the plan..

    Linus Torvalds
     
  • Commit 52ade9b3b97fd3bea42842a056fe0786c28d0555 changed the suspend code
    ordering to execute pm_ops->prepare() after the device model per-device
    .suspend() calls in order to fix some ACPI-related issues. Unfortunately, it
    broke the at91 platform which assumed that pm_ops->prepare() would be called
    before suspending devices.

    at91 used pm_ops->prepare() to get notified of the target system sleep state,
    so that it could use this information while suspending devices. However, with
    the current suspend code ordering pm_ops->prepare() is called too late for
    this purpose. Thus, at91 needs an additional method in 'struct pm_ops' that
    will be used for notifying the platform of the target system sleep state.
    Moreover, in the future such a method will also be needed by ACPI.

    This patch adds the .set_target() method to 'struct pm_ops' and makes the
    suspend code call it, if implemented, before executing the device model
    per-device .suspend() calls. It also modifies the at91 code to use
    pm_ops->set_target() instead of pm_ops->prepare().

    Signed-off-by: Rafael J. Wysocki
    Acked-by: David Brownell
    Cc: Pavel Machek
    Cc: Johannes Berg
    Cc: Len Brown
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Rafael J. Wysocki
     
  • Don't use PNP detection by default yet. We have some PNP and BIOS issues
    to work out first.

    Sample problem on a Toshiba Portege 4000: the SMCf010 device is handed off
    disabled. We assign I/O ports originally assigned to the SMCf010 to a
    PCMCIA device instead. We enable the SMCf010, configuring it to use
    disjoint ports, but _SRS doesn't work correctly, so the device doesn't
    work.

    Signed-off-by: Bjorn Helgaas
    Cc: Andrey Borzenkov
    Cc: Adam Belay
    Cc: Michal Piotrowski
    Cc: Samuel Ortiz
    Cc: "David S. Miller"
    Cc: Jeff Garzik
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Bjorn Helgaas
     
  • Commit 3ebad5905609476a4ff1151a66b21d9794009961 ("[PATCH] x86: Save and
    restore the fixed-range MTRRs of the BSP when suspending") added mtrr
    operations without verifying that the CPU has MTRRs. Crashes transmeta
    CPUs.

    Cc: "H. Peter Anvin"
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • If asus_acpi_init doesn't find any device it knows about, it mistakenly
    returns a "success" error code even though it cleans up after itself. Later
    when trying to rmmod asus_acpi, the module_exit routine would try to clean up
    one more time and we would end up calling
    acpi_bus_unregister_driver(&asus_hotk_driver) twice. This patch addresses
    this first problem by returning -ENODEV when no appropriate device is found.

    Then there was also another bug with the code handling the return value of
    backlight_device_register. If this function ever failed, the driver would
    cleanup by calling the module_exit routine from module_init, but it would
    still return "success". So any attempt to rmmod this module would result in
    asus_acpi_exit being called twice but it's not ready to handle it (I haven't
    hit this bug, just found it by code inspection). This patch fixes that by
    inserting a return -ENODEV; at the end of this error handling path.

    Signed-off-by: Maxime Austruy
    Cc: Len Brown
    Cc: Richard Purdie
    Cc: Jan Engelhardt
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Maxime Austruy
     
  • Provide stubs for more PCI bus/slot functions when CONFIG_PCI=n.

    Signed-off-by: Randy Dunlap
    Cc: Matt Domsch
    Cc: Greg KH
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Fix section mismatch warnings:

    WARNING: sound/built-in.o(.exit.text+0x3ad): Section mismatch: reference to .init.text: (between 'sb_exit' and 'unload_uart6850')
    WARNING: sound/built-in.o(.exit.text+0x753): Section mismatch: reference to .init.text: (between 'snd_mts64_module_exit' and 'snd_portman_module_exit')

    Signed-off-by: Randy Dunlap
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • /home/rpjday/AMD/k/topics/0_hi/hi1.c:15: error: dereferencing pointer to incomplete type
    /home/rpjday/AMD/k/topics/0_hi/hi1.c:16: error: dereferencing pointer to incomplete type

    Signed-off-by: Alexey Dobriyan
    Cc: David Howells
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • We agreed to remove the WARN_ON_ONCE before 2.6.22 is released.

    Signed-off-by: Christoph Lameter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Christoph Lameter
     
  • The blink driver wakes up every jiffies which wastes power unnecessarily.
    Using a notifier gives same effect. Also add ability to unload module.

    Signed-off-by: Stephen Hemminger
    [ We should really just delete the whole thing. The blink driver is
    broken in many other ways too -Linus ]
    Signed-off-by: Linus Torvalds

    Stephen Hemminger
     
  • Commit 9215da33209b861b01c51382254b178a3fe92a30 "fixed" the MTRR range
    check to not allow any MTRR's under the 1MB mark (since that's where the
    fixed MTRR's are active).

    However, that was totally bogus, since it's normal (and almost required)
    to have a large variable MTRR that starts at 0, and covers some large
    percentage of the whole RAM, and then using the fixed MTRR's to override
    that large MTRR to handle the special ISA hole in the 640k-1M region.

    The old check was bogus too (checking that no variable MTRR is used that
    is entirely under the 1MB range), but at least it wasn't actively
    detrimental, because no sane situation would ever trigger such MTRR
    usage in the first place.

    That said, the whole notion of not allowing variable MTRR's in the low
    1MB is just stupid, so rather than revert the commit, this just removes
    the whole sad and unnecessary check entirely.

    Cc: Jan Beulich
    Cc: Andi Kleen
    Cc: Andrew Morton
    Tested-by: Luca Palermo
    Signed-off-by: Linus Torvalds

    Linus Torvalds
     

30 Jun, 2007

3 commits

  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/sparc-2.6:
    [SPARC64]: Add linux/pagemap.h to asm/tlb.h
    [SPARC64]: Need to set state to IDLE during sun4v IRQ enable.
    [SPARC64]: Fix VIRQ enabling.
    [SPARC64]: Add irqs to mdesc_node.

    Linus Torvalds
     
  • * 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
    [IRDA]: fix printk format
    [NETPOLL] netconsole: fix soft lockup when removing module
    [NETPOLL]: tx lock deadlock fix
    SCTP: lock_sock_nested in sctp_sock_migrate
    SCTP: Fix sctp_getsockopt_get_peer_addrs
    SCTP: update sctp_getsockopt helpers to allow oversized buffers

    Linus Torvalds
     
  • The vdso64 portion of patch 74609f4536f2b8fd6a48381bbbe3cd37da20a527 for
    fixing problems with NULL gettimeofday input mistakenly checks for a
    null tz field twice, when it should be checking for null tz once, and
    null tv once; by way of a r10/r11 typo.

    Any application calling gettimeofday(&tv,NULL) will "fail".

    This corrects that typo, and makes my G5 happy.

    Tested on G5.

    Signed-off-by: Will Schmidt
    Cc: Tony Breeds
    Forwarded-by: Ben Herrenschmidt

    [ Ben says: "I checked the 32 bits part of the change is correct. You
    can probably blame me for originally writing the 2 versions with
    inversed usage of r10 and r11, thus confusing Tony :-)"

    Ben duly blamed. - Linus ]

    Signed-off-by: Linus Torvalds

    Will Schmidt
     

29 Jun, 2007

19 commits

  • Fix printk format warning:
    drivers/net/irda/irport.c:512: warning: format '%d' expects type 'int', but argument 5 has type 'long int'

    Signed-off-by: Randy Dunlap
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Randy Dunlap
     
  • In commit 4bedb45203eab92a87b4c863fe2d0cded633427f both the udp and tcp
    cases where changed to use udp_hdr() instead of leaving the tcp case
    alone and fixing with tcp_hdr().

    This ended up causing random behavior with TCP connections because
    of looking for tcp_hdr()->check in the wrong place.

    Signed-off-by: Kumar Gala

    Kumar Gala
     
  • #1
    Until kernel ver. 2.6.21 (including) cancel_rearming_delayed_work()
    required a work function should always (unconditionally) rearm with
    delay > 0 - otherwise it would endlessly loop. This patch replaces
    this function with cancel_delayed_work(). Later kernel versions don't
    require this, so here it's only for uniformity.

    #2
    After deleting a timer in cancel_[rearming_]delayed_work() there could
    stay a last skb queued in npinfo->txq causing a memory leak after
    kfree(npinfo).

    Initial patch & testing by: Jason Wessel

    Signed-off-by: Jarek Poplawski
    Signed-off-by: Andrew Morton
    Signed-off-by: David S. Miller

    Jarek Poplawski
     
  • As seen on sparc64-allnoconfig:

    CC arch/sparc64/mm/tlb.o
    In file included from arch/sparc64/mm/tlb.c:19:
    include/asm/tlb.h: In function 'tlb_flush_mmu':
    include/asm/tlb.h:60: warning: implicit declaration of function 'release_pages'
    include/asm/tlb.h: In function 'tlb_remove_page':
    include/asm/tlb.h:92: warning: implicit declaration of function 'page_cache_release'

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     
  • David S. Miller
     
  • * 'for_linus' of master.kernel.org:/pub/scm/linux/kernel/git/galak/powerpc:
    phy: Fix phy_id for Vitesse 824x PHY

    Linus Torvalds
     
  • Not all the world is an i386. Many architectures need 64-bit arguments to be
    aligned in suitable pairs of registers, and the original
    sys_sync_file_range(int, loff_t, loff_t, int) was therefore wasting an
    argument register for padding after the first integer. Since we don't
    normally have more than 6 arguments for system calls, that left no room for
    the final argument on some architectures.

    Fix this by introducing sys_sync_file_range2(int, int, loff_t, loff_t) which
    all fits nicely. In fact, ARM already had that, but called it
    sys_arm_sync_file_range. Move it to fs/sync.c and rename it, then implement
    the needed compatibility routine. And stop the missing syscall check from
    bitching about the absence of sys_sync_file_range() if we've implemented
    sys_sync_file_range2() instead.

    Tested on PPC32 and with 32-bit and 64-bit userspace on PPC64.

    Signed-off-by: David Woodhouse
    Acked-by: Russell King
    Cc: Arnd Bergmann
    Cc: Paul Mackerras
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Woodhouse
     
  • The interrupt clearing code in mpsc_sdma_intr_ack() mistakenly clears the
    interrupt for both controllers instead of just the one its supposed to.
    This can result in the other controller appearing to hang because its
    interrupt was effectively lost.

    So, don't clear the interrupt cause bits for both MPSC controllers when
    clearing the interrupt for one of them. Just clear the one that is
    supposed to be cleared.

    Signed-off-by: Jay Lubomirski
    Acked-by: Mark A. Greer
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jay Lubomirski
     
  • gcc correctly says

    fs/ext2/super.c: In function 'ext2_remount':
    fs/ext2/super.c:1055: warning: 'err' may be used uninitialized in this function

    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Andrew Morton
     
  • arch/mips/jazz/setup.c:55:4: error: Initializer entry defined twice

    Signed-off-by: Alexey Dobriyan
    Acked-by: Ralf Baechle
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Alexey Dobriyan
     
  • This can disrupt userspace signal management.

    Signed-off-by: Evgeniy Polyakov
    Cc: Roland McGrath
    Cc: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Evgeniy Polyakov
     
  • When I use relayfs with "overwrite" mode, read() still sets incorrect
    number of consumed bytes.

    Signed-off-by: Masami Hiramatsu
    Acked-by: Tom Zanussi
    Acked-by: David Wilder
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Masami Hiramatsu
     
  • Fix a bug in the relay read interface causing the number of consumed bytes
    to be set incorrectly.

    Signed-off-by: Tom Zanussi
    Signed-off-by: David Wilder
    Cc: Masami Hiramatsu
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    David Wilder
     
  • Change __devexit to __devexit_p:
    sound/isa/opl3sa2.c:956: error: expected expression before '__attribute__'

    Signed-off-by: Randy Dunlap
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap
     
  • Also, remove outdated 1394 tree and mention MAINTAINERS as pointer to
    development trees.

    Signed-off-by: Stefan Richter
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Stefan Richter
     
  • WARNING: drivers/built-in.o(.text+0x8742a): Section mismatch: reference to .init.data:chipsfb_fix (between 'chipsfb_pci_init' and 'chipsfb_set_par')
    WARNING: drivers/built-in.o(.text+0x87432): Section mismatch: reference to .init.data:chipsfb_fix (between 'chipsfb_pci_init' and 'chipsfb_set_par')
    WARNING: drivers/built-in.o(.text+0x87442): Section mismatch: reference to .init.data:chipsfb_var (between 'chipsfb_pci_init' and 'chipsfb_set_par')
    WARNING: drivers/built-in.o(.text+0x8744a): Section mismatch: reference to .init.data:chipsfb_var (between 'chipsfb_pci_init' and 'chipsfb_set_par')

    init_chips is only called from chipsfb_pci_init
    chipsfb_fix and chipsfb_var are only referenced from init_chips

    Signed-off-by: Olaf Hering
    Cc: "Antonino A. Daplas"
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Olaf Hering
     
  • The new code in kernel/signal.c does not allow fetching private signals
    from another task. This patch avoid spurious POLLIN returns from a
    signalfd poll(2) operation.

    Signed-off-by: Davide Libenzi
    Cc: Oleg Nesterov
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Davide Libenzi
     
  • This patch changes the test for the thread pid from >= 0 to > 0.

    When the saa8134 driver initialization fails after a certain point, it goes
    through the complete shutdown process for the driver. Part of shutting it
    down includes tearing down the thread for tv audio.

    The test for tearing down the thread tests for >= 0. Since the dev
    structure is kzalloc'd, the test will always be true if we haven't tried to
    start the thread yet. We end up waiting on pid 0 to complete, which will
    never happen, so we lock up.

    This bug was observed in Novell Bugzilla 284718, when request_irq() failed.

    Signed-off-by: Jeff Mahoney
    Acked-by: Mauro Carvalho Chehab
    Cc:
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jeff Mahoney
     
  • Cannot mix const and __initdata:
    sound/pci/ice1712/prodigy192.c:708: error: ak4114_controls causes a section type conflict

    Signed-off-by: Randy Dunlap
    Cc: Jaroslav Kysela
    Cc: Takashi Iwai
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Randy Dunlap