10 Jan, 2012

1 commit

  • clock management changes for i.MX

    Another simple series related to clock management, this time only for
    imx.

    * tag 'clk' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc:
    ARM: mxs: select HAVE_CLK_PREPARE for clock
    clk: add config option HAVE_CLK_PREPARE into Kconfig
    ASoC: mxs-saif: convert to clk_prepare/clk_unprepare
    video: mxsfb: convert to clk_prepare/clk_unprepare
    serial: mxs-auart: convert to clk_prepare/clk_unprepare
    net: flexcan: convert to clk_prepare/clk_unprepare
    mtd: gpmi-lib: convert to clk_prepare/clk_unprepare
    mmc: mxs-mmc: convert to clk_prepare/clk_unprepare
    dma: mxs-dma: convert to clk_prepare/clk_unprepare
    net: fec: add clk_prepare/clk_unprepare
    ARM: mxs: convert platform code to clk_prepare/clk_unprepare
    clk: add helper functions clk_prepare_enable and clk_disable_unprepare

    Fix up trivial conflicts in drivers/net/ethernet/freescale/fec.c due to
    commit 0ebafefcaa7a ("net: fec: add clk_prepare/clk_unprepare") clashing
    trivially with commit e163cc97f9ac ("net/fec: fix the .remove code").

    Linus Torvalds
     

08 Jan, 2012

1 commit

  • * 'driver-core-next' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core: (73 commits)
    arm: fix up some samsung merge sysdev conversion problems
    firmware: Fix an oops on reading fw_priv->fw in sysfs loading file
    Drivers:hv: Fix a bug in vmbus_driver_unregister()
    driver core: remove __must_check from device_create_file
    debugfs: add missing #ifdef HAS_IOMEM
    arm: time.h: remove device.h #include
    driver-core: remove sysdev.h usage.
    clockevents: remove sysdev.h
    arm: convert sysdev_class to a regular subsystem
    arm: leds: convert sysdev_class to a regular subsystem
    kobject: remove kset_find_obj_hinted()
    m86k: gpio - convert sysdev_class to a regular subsystem
    mips: txx9_sram - convert sysdev_class to a regular subsystem
    mips: 7segled - convert sysdev_class to a regular subsystem
    sh: dma - convert sysdev_class to a regular subsystem
    sh: intc - convert sysdev_class to a regular subsystem
    power: suspend - convert sysdev_class to a regular subsystem
    power: qe_ic - convert sysdev_class to a regular subsystem
    power: cmm - convert sysdev_class to a regular subsystem
    s390: time - convert sysdev_class to a regular subsystem
    ...

    Fix up conflicts with 'struct sysdev' removal from various platform
    drivers that got changed:
    - arch/arm/mach-exynos/cpu.c
    - arch/arm/mach-exynos/irq-eint.c
    - arch/arm/mach-s3c64xx/common.c
    - arch/arm/mach-s3c64xx/cpu.c
    - arch/arm/mach-s5p64x0/cpu.c
    - arch/arm/mach-s5pv210/common.c
    - arch/arm/plat-samsung/include/plat/cpu.h
    - arch/powerpc/kernel/sysfs.c
    and fix up cpu_is_hotpluggable() as per Greg in include/linux/cpu.h

    Linus Torvalds
     

07 Jan, 2012

1 commit

  • This resolves the conflict in the arch/arm/mach-s3c64xx/s3c6400.c file,
    and it fixes the build error in the arch/x86/kernel/microcode_core.c
    file, that the merge did not catch.

    The microcode_core.c patch was provided by Stephen Rothwell
    who was invaluable in the merge issues involved
    with the large sysdev removal process in the driver-core tree.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

28 Dec, 2011

1 commit


20 Dec, 2011

1 commit

  • module_param(bool) used to counter-intuitively take an int. In
    fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
    trick.

    It's time to remove the int/unsigned int option. For this version
    it'll simply give a warning, but it'll break next kernel version.

    (Thanks to Joe Perches for suggesting coccinelle for 0/1 -> true/false).

    Cc: "David S. Miller"
    Cc: netdev@vger.kernel.org
    Signed-off-by: Rusty Russell
    Signed-off-by: David S. Miller

    Rusty Russell
     

02 Dec, 2011

3 commits

  • This driver works with both, static platform data and device tree
    bindings. It has been tested on a TQM855L board with two AN82527
    CAN controllers on the local bus.

    CC: Devicetree-discuss@lists.ozlabs.org
    CC: linuxppc-dev@ozlabs.org
    CC: Kumar Gala
    Signed-off-by: Wolfgang Grandegger
    Acked-by: Marc Kleine-Budde
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     
  • This patch adds support for legacy Bosch CC770 and Intel AN82527 CAN
    controllers on the ISA or PC-104 bus. The I/O port or memory address
    and the IRQ number must be specified via module parameters:

    insmod cc770_isa.ko port=0x310,0x380 irq=7,11

    for ISA devices using I/O ports or:

    insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11

    for memory mapped ISA devices.

    Indirect access via address and data port is supported as well:

    insmod cc770_isa.ko port=0x310,0x380 indirect=1 irq=7,11

    Furthermore, the following mode parameter can be defined:

    clk: External oscillator clock frequency (default=16000000 [16 MHz])
    cir: CPU interface register (default=0x40 [DSC])
    bcr: Bus configuration register (default=0x40 [CBY])
    cor: Clockout register (default=0x00)

    Note: for clk, cir, bcr and cor, the first argument re-defines the
    default for all other devices, e.g.:

    insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000

    is equivalent to

    insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000,24000000

    Signed-off-by: Wolfgang Grandegger
    Acked-by: Marc Kleine-Budde
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     
  • Signed-off-by: Wolfgang Grandegger
    Acked-by: Marc Kleine-Budde
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     

01 Dec, 2011

1 commit


30 Nov, 2011

4 commits

  • This patch adds support for legacy Bosch CC770 and Intel AN82527 CAN
    controllers on the ISA or PC-104 bus. The I/O port or memory address
    and the IRQ number must be specified via module parameters:

    insmod cc770_isa.ko port=0x310,0x380 irq=7,11

    for ISA devices using I/O ports or:

    insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11

    for memory mapped ISA devices.

    Indirect access via address and data port is supported as well:

    insmod cc770_isa.ko port=0x310,0x380 indirect=1 irq=7,11

    Furthermore, the following mode parameter can be defined:

    clk: External oscillator clock frequency (default=16000000 [16 MHz])
    cir: CPU interface register (default=0x40 [CPU_DSC])
    ocr, Bus configuration register (default=0x00)
    cor, Clockout register (default=0x00)

    Note: for clk, cir, bcr and cor, the first argument re-defines the
    default for all other devices, e.g.:

    insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000

    is equivalent to

    insmod cc770_isa.ko mem=0xd1000,0xd1000 irq=7,11 clk=24000000,24000000

    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     
  • Signed-off-by: Wolfgang Grandegger
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     
  • This driver is currently not supported on x86_64 systems because the
    "isa_driver" interface is used (CONFIG_ISA=y). To overcome this
    limitation, the driver is converted to a platform driver, similar to
    the serial 8250 driver.

    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     
  • This patch fixes the compiler warnings: "comparison is always
    false due to limited range of data type" by using "0xff" instead
    of "-1" for unsigned values.

    Signed-off-by: Wolfgang Grandegger
    Acked-by: Marc Kleine-Budde
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     

29 Nov, 2011

1 commit

  • This patch converts the drivers in drivers/net/can/* to use the
    module_platform_driver() macro which makes the code smaller and a bit
    simpler.

    Cc: Wolfgang Grandegger
    Cc: "David S. Miller"
    Cc: Bhupesh Sharma
    Cc: Jiri Kosina
    Cc: Grant Likely
    Cc: Anatolij Gustschin
    Cc: Paul Bolle
    Cc: Kurt Van Dijck
    Cc: Alexey Dobriyan
    Signed-off-by: Axel Lin
    Acked-by: Marc Kleine-Budde
    Signed-off-by: David S. Miller

    Axel Lin
     

27 Nov, 2011

1 commit


22 Nov, 2011

1 commit


19 Nov, 2011

1 commit

  • This converts the drivers in drivers/net/* to use the
    module_usb_driver() macro which makes the code smaller and a bit
    simpler.

    Added bonus is that it removes some unneeded kernel log messages about
    drivers loading and/or unloading.

    Cc: Wolfgang Grandegger
    Cc: Samuel Ortiz
    Cc: Oliver Neukum
    Cc: Peter Korsgaard
    Cc: Petko Manolov
    Cc: Steve Glendinning
    Cc: Christian Lamparter
    Cc: "John W. Linville"
    Cc: Dan Williams
    Cc: Jussi Kivilinna
    Cc: Ivo van Doorn
    Cc: Gertjan van Wingerde
    Cc: Helmut Schaa
    Cc: Herton Ronaldo Krzesinski
    Cc: Hin-Tak Leung
    Cc: Larry Finger
    Cc: Chaoming Li
    Cc: Lucas De Marchi
    Cc: "David S. Miller"
    Cc: Roel Kluin
    Cc: Paul Gortmaker
    Cc: Jiri Pirko
    Cc: Pavel Roskin
    Cc: Yoann DI-RUZZA
    Cc: George
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

17 Nov, 2011

1 commit

  • Only distinct use is checking if NETIF_F_NOCACHE_COPY should be
    enabled by default. The check heuristics is altered a bit here,
    so it hits other people than before. The default shouldn't be
    trusted for performance-critical cases anyway.

    For all other uses NETIF_F_NO_CSUM is equivalent to NETIF_F_HW_CSUM.

    Signed-off-by: Michał Mirosław
    Signed-off-by: David S. Miller

    Michał Mirosław
     

15 Nov, 2011

1 commit


14 Nov, 2011

1 commit


25 Oct, 2011

3 commits

  • * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next: (1745 commits)
    dp83640: free packet queues on remove
    dp83640: use proper function to free transmit time stamping packets
    ipv6: Do not use routes from locally generated RAs
    |PATCH net-next] tg3: add tx_dropped counter
    be2net: don't create multiple RX/TX rings in multi channel mode
    be2net: don't create multiple TXQs in BE2
    be2net: refactor VF setup/teardown code into be_vf_setup/clear()
    be2net: add vlan/rx-mode/flow-control config to be_setup()
    net_sched: cls_flow: use skb_header_pointer()
    ipv4: avoid useless call of the function check_peer_pmtu
    TCP: remove TCP_DEBUG
    net: Fix driver name for mdio-gpio.c
    ipv4: tcp: fix TOS value in ACK messages sent from TIME_WAIT
    rtnetlink: Add missing manual netlink notification in dev_change_net_namespaces
    ipv4: fix ipsec forward performance regression
    jme: fix irq storm after suspend/resume
    route: fix ICMP redirect validation
    net: hold sock reference while processing tx timestamps
    tcp: md5: add more const attributes
    Add ethtool -g support to virtio_net
    ...

    Fix up conflicts in:
    - drivers/net/Kconfig:
    The split-up generated a trivial conflict with removal of a
    stale reference to Documentation/networking/net-modules.txt.
    Remove it from the new location instead.
    - fs/sysfs/dir.c:
    Fairly nasty conflicts with the sysfs rb-tree usage, conflicting
    with Eric Biederman's changes for tagged directories.

    Linus Torvalds
     
  • * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (59 commits)
    MAINTAINERS: linux-m32r is moderated for non-subscribers
    linux@lists.openrisc.net is moderated for non-subscribers
    Drop default from "DM365 codec select" choice
    parisc: Kconfig: cleanup Kernel page size default
    Kconfig: remove redundant CONFIG_ prefix on two symbols
    cris: remove arch/cris/arch-v32/lib/nand_init.S
    microblaze: add missing CONFIG_ prefixes
    h8300: drop puzzling Kconfig dependencies
    MAINTAINERS: microblaze-uclinux@itee.uq.edu.au is moderated for non-subscribers
    tty: drop superfluous dependency in Kconfig
    ARM: mxc: fix Kconfig typo 'i.MX51'
    Fix file references in Kconfig files
    aic7xxx: fix Kconfig references to READMEs
    Fix file references in drivers/ide/
    thinkpad_acpi: Fix printk typo 'bluestooth'
    bcmring: drop commented out line in Kconfig
    btmrvl_sdio: fix typo 'btmrvl_sdio_sd6888'
    doc: raw1394: Trivial typo fix
    CIFS: Don't free volume_info->UNC until we are entirely done with it.
    treewide: Correct spelling of successfully in comments
    ...

    Linus Torvalds
     
  • David S. Miller
     

18 Oct, 2011

1 commit


11 Oct, 2011

1 commit

  • Due to the 16 bit access to mscan registers there's too much data copied to
    the zero initialized CAN frame when having an odd number of bytes to copy.
    This patch ensures that only the requested bytes are copied by using an
    8 bit access for the remaining byte.

    Reported-by: Andre Naujoks
    Signed-off-by: Oliver Hartkopp
    Signed-off-by: Wolfgang Grandegger
    Signed-off-by: David S. Miller

    Wolfgang Grandegger
     

29 Sep, 2011

2 commits

  • This patch adds support for SJW user settings to not set the synchronization
    jump width (SJW) to 1 in any case when using the in-kernel bittiming
    calculation.

    The ip-tool from iproute2 already supports to pass the user defined SJW
    value. The given SJW value is sanitized with the controller specific sjw_max
    and the calculated tseg2 value. As the SJW can have values up to 4 providing
    this value will lead to the maximum possible SJW automatically. A higher SJW
    allows higher controller oscillator tolerances.

    Signed-off-by: Oliver Hartkopp
    Acked-by: Wolfgang Grandegger
    Signed-off-by: David S. Miller

    Oliver Hartkopp
     
  • This patch adds the driver for the SJA1000 based PCMCIA card 'CPC-Card' from
    EMS Dr. Thomas Wuensche (http://www.ems-wuensche.de).

    Signed-off-by: Oliver Hartkopp
    Acked-by: Markus Plessing
    Signed-off-by: David S. Miller

    Oliver Hartkopp
     

28 Sep, 2011

1 commit

  • There are numerous broken references to Documentation files (in other
    Documentation files, in comments, etc.). These broken references are
    caused by typo's in the references, and by renames or removals of the
    Documentation files. Some broken references are simply odd.

    Fix these broken references, sometimes by dropping the irrelevant text
    they were part of.

    Signed-off-by: Paul Bolle
    Signed-off-by: Jiri Kosina

    Paul Bolle
     

22 Sep, 2011

1 commit

  • Conflicts:
    MAINTAINERS
    drivers/net/Kconfig
    drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.c
    drivers/net/ethernet/broadcom/tg3.c
    drivers/net/wireless/iwlwifi/iwl-pci.c
    drivers/net/wireless/iwlwifi/iwl-trans-tx-pcie.c
    drivers/net/wireless/rt2x00/rt2800usb.c
    drivers/net/wireless/wl12xx/main.c

    David S. Miller
     

21 Sep, 2011

1 commit


17 Sep, 2011

1 commit


27 Aug, 2011

2 commits


21 Aug, 2011

1 commit


18 Aug, 2011

4 commits

  • If our CAN device's device tree node has a clock-frequency property,
    then use that value for the can devices clock frequency. If not, fall
    back to asking the platform/mach code for the clock frequency associated
    with the flexcan device.

    Signed-off-by: Robin Holt
    Acked-by: Wolfgang Grandegger ,
    Cc: Kumar Gala
    Cc: Marc Kleine-Budde ,
    Cc: U Bhaskar-B22300
    Cc: Scott Wood
    Cc: Grant Likely
    Cc: socketcan-core@lists.berlios.de,
    Cc: netdev@vger.kernel.org,
    Cc: PPC list
    Cc: devicetree-discuss@lists.ozlabs.org
    Signed-off-by: David S. Miller

    holt@sgi.com
     
  • On powerpc, the OpenFirmware devices are not matched without specifying
    an of_match array. Introduce that array as that is used for matching
    on the Freescale P1010 processor.

    Signed-off-by: Robin Holt
    Acked-by: Marc Kleine-Budde
    Acked-by: Wolfgang Grandegger
    Cc: U Bhaskar-B22300
    Cc: Grant Likely
    Cc: socketcan-core@lists.berlios.de
    Cc: netdev@vger.kernel.org
    Cc: PPC list
    Cc: devicetree-discuss@lists.ozlabs.org
    Signed-off-by: David S. Miller

    holt@sgi.com
     
  • Make flexcan driver handle register reads in the appropriate endianess.
    This was a basic search and replace and then define some inlines.

    Signed-off-by: Robin Holt
    Acked-by: Marc Kleine-Budde
    Acked-by: Wolfgang Grandegger
    Cc: U Bhaskar-B22300
    Cc: socketcan-core@lists.berlios.de
    Cc: netdev@vger.kernel.org
    Cc: PPC list
    Signed-off-by: David S. Miller

    holt@sgi.com
     
  • powerpc does not have a mach-####/clock.h. When testing, I found neither
    arm nor powerpc needed the mach/clock.h at all so I removed it.

    Signed-off-by: Robin Holt
    Acked-by: Marc Kleine-Budde
    Acked-by: Wolfgang Grandegger
    Cc: U Bhaskar-B22300
    Cc: socketcan-core@lists.berlios.de
    Cc: netdev@vger.kernel.org
    Cc: PPC list
    Signed-off-by: David S. Miller

    holt@sgi.com
     

15 Aug, 2011

1 commit

  • This patch fixes the following sparse warning by adding the missing
    __iomem annotation.

    drivers/net/can/mscan/mscan.c:73:32: warning: incorrect type in argument 1 (different address spaces)
    drivers/net/can/mscan/mscan.c:73:32: expected unsigned char volatile [noderef] [usertype] *addr
    drivers/net/can/mscan/mscan.c:73:32: got unsigned char *

    Signed-off-by: Marc Kleine-Budde

    Marc Kleine-Budde
     

14 Aug, 2011

1 commit

  • In this code, the failure_cleanup label calls the function
    plx_pci_del_card, which frees everything in the card->net_dev array. dev
    is placed in this array immediately after allocation, so the two subsequent
    jumps to failure_cleanup should not also call free_sja1000dev, but the
    second one does.

    If plx_pci_check_sja1000 fails, then free_sja1000dev is also called on
    dev. Because dev is already in the card->net_dev array, this implies that
    when plx_pci_del_card is later called, it may get freed again. So that
    entry is reset to NULL after the free.

    Finally, if there is a problem with one channel, there will be a hole in the
    array. card->channels counts the number of channels that have succeeded,
    and does not keep track of the index of the largest element in the array
    that is valid. So the loop in plx_pci_del_card is changed to go up to
    PLX_PCI_MAX_CHAN, which is only 2.

    Signed-off-by: Julia Lawall
    Signed-off-by: David S. Miller

    Julia Lawall