1. 16 11月, 2012 4 次提交
    • S
      i2c: i2c-sh_mobile: fix spurious transfer request timed out · 29fb08c3
      Shinya Kuribayashi 提交于
      Ensure that any of preceding register write operations to the I2C
      hardware block reached the module, and the write data is reflected
      in the registers, before leaving the interrupt handler.
      
      Otherwise, we'll suffer from spurious WAIT interrupts that lead to
      'Transfer request timed out' message, and the transaction failed.
      Reported-by: NTeppei Kamijou <teppei.kamijou.yb@renesas.com>
      Signed-off-by: NShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      29fb08c3
    • S
      i2c: i2c-sh_mobile: support I2C hardware block with a faster operating clock · ebd5ac16
      Shinya Kuribayashi 提交于
      On newer SH-/R-Mobile SoCs, a clock supply to the I2C hardware block,
      which is used to generate the SCL clock output, is getting faster than
      before, while on the other hand, the SCL clock control registers, ICCH
      and ICCL, stay unchanged in 9-bit-wide (8+1).
      
      On such silicons, the internal SCL clock counter gets incremented every
      2 clocks of the operating clock.
      
      This patch makes it configurable through platform data.
      Signed-off-by: NShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      ebd5ac16
    • S
      i2c: i2c-sh_mobile: optimize ICCH/ICCL values according to I2C bus speed · 23a61291
      Shinya Kuribayashi 提交于
      ICCH/ICCL values is supposed to be calculated/optimized to strictly meet
      the timing specs required by the I2C standard. The resulting I2C bus
      speed does not matter at all, if it's less than 100 or 400 kHz.
      
      With this change, sh_mobile_i2c_icch() is virtually identical to
      sh_mobile_i2c_iccl(), but they're providing good descriptions of
      SH-/R-Mobile I2C hardware spec, and I'd leave them as separated.
      
      Also fix a typo in the comment, print icch/iccl values at probe, etc.
      Signed-off-by: NShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
      
      [wsa: squashed two patches for bisectability]
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      23a61291
    • S
      i2c: i2c-sh_mobile: calculate clock parameters at driver probing time · 7b0e6292
      Shinya Kuribayashi 提交于
      Currently SCL clock parameters (ICCH/ICCL) are calculated in
      activate_ch(), which gets called every time sh_mobile_i2c_xfer() is
      processed, while each I2C bus speed is system-defined and in general
      those parameters do not have to be updated over I2C transactions.
      
      The only reason I could see having it transaction-time is to adjust
      ICCH/ICCL values according to the operating frequency of the I2C
      hardware block, in the face of DFS (Dynamic Frequency Scaling).
      
      However, this won't be necessary.
      
      The operating frequency of the I2C hardware block can change _even_
      in the middle of I2C transactions.  There is no way to prevent it
      from happening, and I2C hardware block can work with such dynamic
      frequency change, of course.
      
      Another is that ICCH/ICCL clock parameters optimized for the faster
      operating frequency, can also be applied to the slower operating
      frequency, as long as slave devices work.  However, the converse is
      not true.  It would violate SCL timing specs of the I2C standard.
      
      What we can do now is to calculate the ICCH/ICCL clock parameters
      according to the fastest operating clock of the I2C hardware block.
      And if that's the case, that calculation should be done just once
      at driver-module-init time.
      
      This patch moves ICCH/ICCL calculating part from activate_ch() into
      sh_mobile_i2c_init(), and call it from sh_mobile_i2c_probe().
      
      Note that sh_mobile_i2c_init() just prepares clock parameters using
      the clock rate and platform data provided, but does _not_ make any
      hardware I/O accesses.  We don't have to care about run-time PM
      maintenance here.
      Signed-off-by: NShinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      7b0e6292
  2. 15 11月, 2012 11 次提交
  3. 14 11月, 2012 3 次提交
  4. 13 11月, 2012 4 次提交
  5. 11 11月, 2012 3 次提交
    • L
      Linux 3.7-rc5 · 77b67063
      Linus Torvalds 提交于
      77b67063
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net · b251f0f3
      Linus Torvalds 提交于
      Pull networking fixes from David Miller:
       "Bug fixes galore, mostly in drivers as is often the case:
      
        1) USB gadget and cdc_eem drivers need adjustments to their frame size
           lengths in order to handle VLANs correctly.  From Ian Coolidge.
      
        2) TIPC and several network drivers erroneously call tasklet_disable
           before tasklet_kill, fix from Xiaotian Feng.
      
        3) r8169 driver needs to apply the WOL suspend quirk to more chipsets,
           fix from Cyril Brulebois.
      
        4) Fix multicast filters on RTL_GIGA_MAC_VER_35 r8169 chips, from
           Nathan Walp.
      
        5) FDB netlink dumps should use RTM_NEWNEIGH as the message type, not
           zero.  From John Fastabend.
      
        6) Fix smsc95xx tx checksum offload on big-endian, from Steve
           Glendinning.
      
        7) __inet_diag_dump() needs to repsect and report the error value
           returned from inet_diag_lock_handler() rather than ignore it.
           Otherwise if an inet diag handler is not available for a particular
           protocol, we essentially report success instead of giving an error
           indication.  Fix from Cyrill Gorcunov.
      
        8) When the QFQ packet scheduler sees TSO/GSO packets it does not
           handle things properly, and in fact ends up corrupting it's
           datastructures as well as mis-schedule packets.  Fix from Paolo
           Valente.
      
        9) Fix oopser in skb_loop_sk(), from Eric Leblond.
      
        10) CXGB4 passes partially uninitialized datastructures in to FW
            commands, fix from Vipul Pandya.
      
        11) When we send unsolicited ipv6 neighbour advertisements, we should
            send them to the link-local allnodes multicast address, as per
            RFC4861.  Fix from Hannes Frederic Sowa.
      
        12) There is some kind of bug in the usbnet's kevent deferral
            mechanism, but more immediately when it triggers an uncontrolled
            stream of kernel messages spam the log.  Rate limit the error log
            message triggered when this problem occurs, as sending thousands
            of error messages into the kernel log doesn't help matters at all,
            and in fact makes further diagnosis more difficult.
      
            From Steve Glendinning.
      
        13) Fix gianfar restore from hibernation, from Wang Dongsheng.
      
        14) The netlink message attribute sizes are wrong in the ipv6 GRE
            driver, it was using the size of ipv4 addresses instead of ipv6
            ones :-) Fix from Nicolas Dichtel."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/net:
        gre6: fix rtnl dump messages
        gianfar: ethernet vanishes after restoring from hibernation
        usbnet: ratelimit kevent may have been dropped warnings
        ipv6: send unsolicited neighbour advertisements to all-nodes
        net: usb: cdc_eem: Fix rx skb allocation for 802.1Q VLANs
        usb: gadget: g_ether: fix frame size check for 802.1Q
        cxgb4: Fix initialization of SGE_CONTROL register
        isdn: Make CONFIG_ISDN depend on CONFIG_NETDEVICES
        cxgb4: Initialize data structures before using.
        af-packet: fix oops when socket is not present
        pkt_sched: enable QFQ to support TSO/GSO
        net: inet_diag -- Return error code if protocol handler is missed
        net: bnx2x: Fix typo in bnx2x driver
        smsc95xx: fix tx checksum offload for big endian
        rtnetlink: Use nlmsg type RTM_NEWNEIGH from dflt fdb dump
        ptp: update adjfreq callback description
        r8169: allow multicast packets on sub-8168f chipset.
        r8169: Fix WoL on RTL8168d/8111d.
        drivers/net: use tasklet_kill in device remove/close process
        tipc: do not use tasklet_disable before tasklet_kill
      b251f0f3
    • L
      Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc · 2b1768f3
      Linus Torvalds 提交于
      Pull sparc fixes from David Miller:
       "Several build/bug fixes for sparc, including:
      
        1) Configuring a mix of static vs.  modular sparc64 crypto modules
           didn't work, remove an ill-conceived attempt to only have to build
           the device match table for these drivers once to fix the problem.
      
           Reported by Meelis Roos.
      
        2) Make the montgomery multiple/square and mpmul instructions actually
           usable in 32-bit tasks.  Essentially this involves providing 32-bit
           userspace with a way to use a 64-bit stack when it needs to.
      
        3) Our sparc64 atomic backoffs don't yield cpu strands properly on
           Niagara chips.  Use pause instruction when available to achieve
           this, otherwise use a benign instruction we know blocks the strand
           for some time.
      
        4) Wire up kcmp
      
        5) Fix the build of various drivers by removing the unnecessary
           blocking of OF_GPIO when SPARC.
      
        6) Fix unintended regression wherein of_address_to_resource stopped
           being provided.  Fix from Andreas Larsson.
      
        7) Fix NULL dereference in leon_handle_ext_irq(), also from Andreas
           Larsson."
      
      * git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
        sparc64: Fix build with mix of modular vs. non-modular crypto drivers.
        sparc: Support atomic64_dec_if_positive properly.
        of/address: sparc: Declare of_address_to_resource() as an extern function for sparc again
        sparc32, leon: Check for existent irq_map entry in leon_handle_ext_irq
        sparc: Add sparc support for platform_get_irq()
        sparc: Allow OF_GPIO on sparc.
        qlogicpti: Fix build warning.
        sparc: Wire up sys_kcmp.
        sparc64: Improvde documentation and readability of atomic backoff code.
        sparc64: Use pause instruction when available.
        sparc64: Fix cpu strand yielding.
        sparc64: Make montmul/montsqr/mpmul usable in 32-bit threads.
      2b1768f3
  6. 10 11月, 2012 15 次提交