1. 25 6月, 2019 15 次提交
    • S
      MIPS: ralink: mt7628a.dtsi: Add watchdog controller DT node · 1bca2eac
      Stefan Roese 提交于
      This patch adds the watchdog controller description to the MT7628A dtsi
      file.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: linux-mips@vger.kernel.org
      1bca2eac
    • S
      MIPS: ralink: mt7628a.dtsi: Add SPI controller DT node · 4e41b745
      Stefan Roese 提交于
      This patch adds the SPI controller description to the MT7628A dtsi file.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: linux-mips@vger.kernel.org
      4e41b745
    • S
      MIPS: ralink: mt7628a.dtsi: Add GPIO controller DT node · e456a3bd
      Stefan Roese 提交于
      This patch adds the GPIO controller description to the MT7628A dtsi file.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: linux-mips@vger.kernel.org
      e456a3bd
    • S
      MIPS: ralink: mt7628a.dtsi: Add pinctrl DT properties to the UART nodes · 6394de39
      Stefan Roese 提交于
      Now that pinmux is available, let's use it for the UART DT nodes.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: linux-mips@vger.kernel.org
      6394de39
    • S
      MIPS: ralink: mt7628a.dtsi: Add pinmux DT node · 380f072c
      Stefan Roese 提交于
      This patch adds the pinmux DT node using the generic "pinctrl-single"
      pinmux driver. For this the system-controller register area needs to be
      changed to not overlap with the pinmux registers.
      
      This patch is based on work done by John Crispin.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: linux-mips@vger.kernel.org
      380f072c
    • S
      MIPS: ralink: mt7628a.dtsi: Add SPDX GPL-2.0 license identifier · 9ea34af7
      Stefan Roese 提交于
      As done in commit b2441318 ("License cleanup: add SPDX GPL-2.0
      license identifier to files with no license"), this patch adds the SPDX
      license identifier to mt7628a.dtsi, which is currently still missing
      this identifier.
      Signed-off-by: NStefan Roese <sr@denx.de>
      Cc: Paul Burton <paul.burton@mips.com>
      Cc: Harvey Hunt <harveyhuntnexus@gmail.com>
      Cc: John Crispin <john@phrozen.org>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: linux-mips@vger.kernel.org
      9ea34af7
    • P
      MIPS: lantiq: Add SMP support for lantiq interrupt controller · 85cf2c37
      Petr Cvek 提交于
      Some lantiq devices have two ICU controllers. The IRQ signal is routed
      to both of them and user can chose which ICU will resend the IRQ to their
      respective VPE. The patch adds the support for the second ICU.
      
      The patch changes a register definition of the driver. Instead of an
      individual IM, the whole ICU is defined. This will only affects openwrt
      patched kernel (vanilla doesn't have additional .dts files).
      
      Also spinlocks has been added, both cores can RMW different bitfields
      in the same register. Added affinity set function. The new VPE cpumask
      will take into the action at the irq enable.
      
      The functionality was tested on 4.14 openwrt kernel and TP-W9980B modem.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      85cf2c37
    • P
      MIPS: lantiq: Shorten register names, remove unused macros · f0dd3001
      Petr Cvek 提交于
      The macros LTQ_ICU_IM1_ISR and LTQ_ICU_OFFSET seems to be unused, remove
      them. Allong with that, remove _IM0 substring from the macro names. The
      IM (interrupt module) is already defined in IOMEM access and IM0 would be
      misleading.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      f0dd3001
    • P
      MIPS: lantiq: Fix bitfield masking · ba1bc0fc
      Petr Cvek 提交于
      The modification of EXIN register doesn't clean the bitfield before
      the writing of a new value. After a few modifications the bitfield would
      accumulate only '1's.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      ba1bc0fc
    • P
      MIPS: lantiq: Remove unused macros · 7c6747bc
      Petr Cvek 提交于
      The last use of both macros was in 4.11.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      7c6747bc
    • P
      MIPS: lantiq: Fix attributes of of_device_id structure · 64a95283
      Petr Cvek 提交于
      According to the checkpatch the driver structure of_device_id requires
      to be const and with attribute __initconst. Change it accordingly.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      64a95283
    • P
      MIPS: lantiq: Change variables to the same type as the source · 39588164
      Petr Cvek 提交于
      A structure irq_data, irq_desc_get_irq() and irq_linear_revmap() use
      a different type than defined in the lantiq ICU driver, which is using
      signed integers. The substracted result should never be negative nor is
      tested for that situation. Change it to unsigned.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      39588164
    • P
      MIPS: lantiq: Move macro directly to iomem function · aa0f58b4
      Petr Cvek 提交于
      Using the variable as a temporary holder for the macro of the register
      offset value is not necessary. Move it directly to the IOMEM read/write
      call.
      Signed-off-by: NPetr Cvek <petrcvekcz@gmail.com>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: hauke@hauke-m.de
      Cc: john@phrozen.org
      Cc: linux-mips@vger.kernel.org
      Cc: openwrt-devel@lists.openwrt.org
      Cc: pakahmar@hotmail.com
      aa0f58b4
    • S
      mips: Remove q-accessors from non-64bit platforms · 1e279144
      Serge Semin 提交于
      There are some generic drivers in the kernel, which make use of the
      q-accessors or their derivatives. While at current asm/io.h the accessors
      are defined, their implementation is only applicable either for 64bit
      systems, or for systems with cpu_has_64bits flag set. Obviously there
      are MIPS systems which are neither of these, but still need to have
      those drivers supported. In this case the solution is to define some
      generic versions of the q-accessors, but with a limitation to be
      non-atomic. Such accessors are defined in the
      io-64-nonatomic-{hi-lo,lo-hi}.h file. The drivers which utilize the
      q-suffixed IO-methods are supposed to include the header file, so
      in case if these accessors aren't defined for the platform, the generic
      non-atomic versions are utilized. Currently the MIPS-specific asm/io.h
      file provides the q-accessors for any MIPS system even for ones, which
      in fact don't support them and raise BUG() in case if any of them is
      called. Due to this the generic versions of the accessors are never
      used while an attempt to call the IO-methods causes the kernel BUG().
      In order to fix this we need to define the q-accessors only for
      the MIPS systems, which actually support them, and don't define them
      otherwise, so to let the corresponding drivers to use the non-atomic
      q-suffixed accessors.
      Signed-off-by: NSerge Semin <fancer.lancer@gmail.com>
      Suggested-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Vadim V. Vlasov <vadim.vlasov@t-platforms.ru>
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: James Hogan <jhogan@kernel.org>
      Cc: Serge Semin <Sergey.Semin@t-platforms.ru>
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      1e279144
    • P
      FDDI: defza: Include linux/io-64-nonatomic-lo-hi.h · 262e4c38
      Paul Burton 提交于
      Currently arch/mips/include/asm/io.h provides 64b memory accessor
      functions such as readq & writeq even on MIPS32 platforms where those
      accessors cannot actually perform a 64b memory access. They instead
      BUG(). This is unfortunate for drivers which either #ifdef on the
      presence of these accessors, or can function with non-atomic
      implementations of them found in either linux/io-64-nonatomic-lo-hi.h or
      linux/io-64-nonatomic-hi-lo.h. As such we're preparing to remove the
      definitions of these 64b accessor functions for MIPS32 kernels.
      
      In preparation for this, include linux/io-64-nonatomic-lo-hi.h in
      defza.c in order to provide a non-atomic implementation of the
      readq_relaxed & writeq_relaxed functions that are used by this code. In
      practice this will have no runtime effect, since use of the 64b accessor
      functions is conditional upon sizeof(unsigned long) == 8, ie. upon
      CONFIG_64BIT=y. This means the calls to these non-atomic readq & writeq
      implementations will be optimized out anyway, but we need their
      definitions to keep the compiler happy.
      
      For 64bit kernels using this code this change should also have no effect
      because asm/io.h will continue to provide the definitions of
      readq_relaxed & writeq_relaxed, which linux/io-64-nonatomic-lo-hi.h
      checks for before defining itself.
      Signed-off-by: NPaul Burton <paul.burton@mips.com>
      Acked-by: NMaciej W. Rozycki <macro@linux-mips.org>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Cc: Serge Semin <Sergey.Semin@t-platforms.ru>
      Cc: netdev@vger.kernel.org
      Cc: linux-mips@vger.kernel.org
      Cc: linux-kernel@vger.kernel.org
      262e4c38
  2. 12 6月, 2019 10 次提交
  3. 30 5月, 2019 1 次提交
  4. 27 5月, 2019 3 次提交
    • L
      Linux 5.2-rc2 · cd6c84d8
      Linus Torvalds 提交于
      cd6c84d8
    • L
      Merge tag 'trace-v5.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace · c5b44095
      Linus Torvalds 提交于
      Pull tracing warning fix from Steven Rostedt:
       "Make the GCC 9 warning for sub struct memset go away.
      
        GCC 9 now warns about calling memset() on partial structures when it
        goes across multiple fields. This adds a helper for the place in
        tracing that does this type of clearing of a structure"
      
      * tag 'trace-v5.2-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
        tracing: Silence GCC 9 array bounds warning
      c5b44095
    • L
      Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm · 862f0a32
      Linus Torvalds 提交于
      Pull KVM fixes from Paolo Bonzini:
       "The usual smattering of fixes and tunings that came in too late for
        the merge window, but should not wait four months before they appear
        in a release.
      
        I also travelled a bit more than usual in the first part of May, which
        didn't help with picking up patches and reports promptly"
      
      * tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm: (33 commits)
        KVM: x86: fix return value for reserved EFER
        tools/kvm_stat: fix fields filter for child events
        KVM: selftests: Wrap vcpu_nested_state_get/set functions with x86 guard
        kvm: selftests: aarch64: compile with warnings on
        kvm: selftests: aarch64: fix default vm mode
        kvm: selftests: aarch64: dirty_log_test: fix unaligned memslot size
        KVM: s390: fix memory slot handling for KVM_SET_USER_MEMORY_REGION
        KVM: x86/pmu: do not mask the value that is written to fixed PMUs
        KVM: x86/pmu: mask the result of rdpmc according to the width of the counters
        x86/kvm/pmu: Set AMD's virt PMU version to 1
        KVM: x86: do not spam dmesg with VMCS/VMCB dumps
        kvm: Check irqchip mode before assign irqfd
        kvm: svm/avic: fix off-by-one in checking host APIC ID
        KVM: selftests: do not blindly clobber registers in guest asm
        KVM: selftests: Remove duplicated TEST_ASSERT in hyperv_cpuid.c
        KVM: LAPIC: Expose per-vCPU timer_advance_ns to userspace
        KVM: LAPIC: Fix lapic_timer_advance_ns parameter overflow
        kvm: vmx: Fix -Wmissing-prototypes warnings
        KVM: nVMX: Fix using __this_cpu_read() in preemptible context
        kvm: fix compilation on s390
        ...
      862f0a32
  5. 26 5月, 2019 6 次提交
  6. 25 5月, 2019 5 次提交
    • G
      ext4: fix dcache lookup of !casefolded directories · 66883da1
      Gabriel Krisman Bertazi 提交于
      Found by visual inspection, this wasn't caught by my xfstest, since it's
      effect is ignoring positive dentries in the cache the fallback just goes
      to the disk.  it was introduced in the last iteration of the
      case-insensitive patch.
      
      d_compare should return 0 when the entries match, so make sure we are
      correctly comparing the entire string if the encoding feature is set and
      we are on a case-INsensitive directory.
      
      Fixes: b886ee3e ("ext4: Support case-insensitive file name lookups")
      Signed-off-by: NGabriel Krisman Bertazi <krisman@collabora.com>
      Signed-off-by: NTheodore Ts'o <tytso@mit.edu>
      66883da1
    • L
      Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi · 2409207a
      Linus Torvalds 提交于
      Pull SCSI fixes from James Bottomley:
       "This is the same set of patches sent in the merge window as the final
        pull except that Martin's read only rework is replaced with a simple
        revert of the original change that caused the regression.
      
        Everything else is an obvious fix or small cleanup"
      
      * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
        Revert "scsi: sd: Keep disk read-only when re-reading partition"
        scsi: bnx2fc: fix incorrect cast to u64 on shift operation
        scsi: smartpqi: Reporting unhandled SCSI errors
        scsi: myrs: Fix uninitialized variable
        scsi: lpfc: Update lpfc version to 12.2.0.2
        scsi: lpfc: add check for loss of ndlp when sending RRQ
        scsi: lpfc: correct rcu unlock issue in lpfc_nvme_info_show
        scsi: lpfc: resolve lockdep warnings
        scsi: qedi: remove set but not used variables 'cdev' and 'udev'
        scsi: qedi: remove memset/memcpy to nfunc and use func instead
        scsi: qla2xxx: Add cleanup for PCI EEH recovery
      2409207a
    • L
      Merge tag 'for-linus-20190524' of git://git.kernel.dk/linux-block · 7fbc78e3
      Linus Torvalds 提交于
      Pull block fixes from Jens Axboe:
      
       - NVMe pull request from Keith, with fixes from a few folks.
      
       - bio and sbitmap before atomic barrier fixes (Andrea)
      
       - Hang fix for blk-mq freeze and unfreeze (Bob)
      
       - Single segment count regression fix (Christoph)
      
       - AoE now has a new maintainer
      
       - tools/io_uring/ Makefile fix, and sync with liburing (me)
      
      * tag 'for-linus-20190524' of git://git.kernel.dk/linux-block: (23 commits)
        tools/io_uring: sync with liburing
        tools/io_uring: fix Makefile for pthread library link
        blk-mq: fix hang caused by freeze/unfreeze sequence
        block: remove the bi_seg_{front,back}_size fields in struct bio
        block: remove the segment size check in bio_will_gap
        block: force an unlimited segment size on queues with a virt boundary
        block: don't decrement nr_phys_segments for physically contigous segments
        sbitmap: fix improper use of smp_mb__before_atomic()
        bio: fix improper use of smp_mb__before_atomic()
        aoe: list new maintainer for aoe driver
        nvme-pci: use blk-mq mapping for unmanaged irqs
        nvme: update MAINTAINERS
        nvme: copy MTFA field from identify controller
        nvme: fix memory leak for power latency tolerance
        nvme: release namespace SRCU protection before performing controller ioctls
        nvme: merge nvme_ns_ioctl into nvme_ioctl
        nvme: remove the ifdef around nvme_nvm_ioctl
        nvme: fix srcu locking on error return in nvme_get_ns_from_disk
        nvme: Fix known effects
        nvme-pci: Sync queues on reset
        ...
      7fbc78e3
    • L
      Merge tag 'linux-kselftest-5.2-rc2' of... · 7f8b40e3
      Linus Torvalds 提交于
      Merge tag 'linux-kselftest-5.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
      
      Pull Kselftest fixes from Shuah Khan:
      
       - Two fixes to regressions introduced in kselftest Makefile test run
         output refactoring work (Kees Cook)
      
       - Adding Atom support to syscall_arg_fault test (Tong Bo)
      
      * tag 'linux-kselftest-5.2-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest:
        selftests/timers: Add missing fflush(stdout) calls
        selftests: Remove forced unbuffering for test running
        selftests/x86: Support Atom for syscall_arg_fault test
      7f8b40e3
    • L
      Merge tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux · e7bd3e24
      Linus Torvalds 提交于
      Pull Devicetree fixes from Rob Herring:
      
       - Update checkpatch.pl to use DT vendor-prefixes.yaml
      
       - Fix DT binding references to files converted to DT schema
      
       - Clean-up Arm CPU binding examples to match schema
      
       - Add Sifive block versioning scheme documentation
      
       - Pass binding directory base to validation tools for reference lookups
      
      * tag 'devicetree-fixes-for-5.2' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
        checkpatch.pl: Update DT vendor prefix check
        dt: bindings: mtd: replace references to nand.txt with nand-controller.yaml
        dt-bindings: interrupt-controller: arm,gic: Fix schema errors in example
        dt-bindings: arm: Clean up CPU binding examples
        dt: fix refs that were renamed to json with the same file name
        dt-bindings: Pass binding directory to validation tools
        dt-bindings: sifive: describe sifive-blocks versioning
      e7bd3e24