15 Sep, 2020

11 commits

  • The drivers/pinctrl/sh-pfc subdirectory was originally created to group
    pin control drivers for various Renesas SuperH and SH-Mobile platforms.
    However, the name "sh-pfc" no longer reflects its contents, as the
    directory now contains pin control drivers for Renesas SuperH, ARM32,
    and ARM64 SoCs.

    Hence rename the subdirectory from drivers/pinctrl/sh-pfc to
    drivers/pinctrl/renesas, and the related Kconfig symbol from
    PINCTRL_SH_PFC to PINCTRL_RENESAS.

    Rename the git branch in MAINTAINERS, too, for consistency.

    Signed-off-by: Geert Uytterhoeven
    Link: https://lore.kernel.org/r/20200909131534.12897-3-geert+renesas@glider.be

    Geert Uytterhoeven
     
  • The RZ/N1 pin control driver does not use pin groups or pin functions,
    so there is no need to select GENERIC_PINCTRL_GROUPS or
    GENERIC_PINMUX_FUNCTIONS.

    Signed-off-by: Geert Uytterhoeven
    Link: https://lore.kernel.org/r/20200909131534.12897-2-geert+renesas@glider.be

    Geert Uytterhoeven
     
  • Convert the Renesas RZ/N1 Pin controller Device Tree binding
    documentation to json-schema.

    Use "pinctrl" generic node name.
    Drop generic and consumer examples, as they do not belong here.

    Signed-off-by: Geert Uytterhoeven
    Tested-by: Gareth Williams
    Reviewed-by: Gareth Williams
    Reviewed-by: Rob Herring
    Link: https://lore.kernel.org/r/20200821112059.5133-1-geert+renesas@glider.be

    Geert Uytterhoeven
     
  • Convert the Renesas RZ/A1 combined Pin and GPIO controller Device Tree
    binding documentation to json-schema.

    Rename "rza1-pinctrl" to "rza1-ports", to match the compatible value
    scheme.
    Use "pinctrl" generic node name.
    Drop generic and consumer examples, as they do not belong here.

    Signed-off-by: Geert Uytterhoeven
    Reviewed-by: Rob Herring
    Link: https://lore.kernel.org/r/20200821111956.4989-1-geert+renesas@glider.be

    Geert Uytterhoeven
     
  • According to Devicetree Specification v0.2 and later, Section "Generic
    Names Recommendation", the node name for a pin controller device node
    should be "pinctrl".

    Signed-off-by: Geert Uytterhoeven
    Acked-by: Rob Herring
    Link: https://lore.kernel.org/r/20200821111127.3771-1-geert+renesas@glider.be

    Geert Uytterhoeven
     
  • For pins requiring software driven IO output operations, the RZ/A1 Pin
    Controller uses either the "output-high" or "output-low" DT property to
    enable the corresponding output buffer. The actual line value doesn't
    matter, as it is ignored.

    Commit 425562429d4f3b13 ("pinctrl: generic: Add output-enable property")
    introduced a new DT property for this specific use case.

    Update the RZ/A1 Pin Controller DT bindings and driver to use this new
    property instead. Preserve backwards compatibility with old DTBs in the
    driver, as this comes at a very small cost.

    Notes:
    - The DT binding examples already used the new property,
    - There are no upstream users of the old properties.

    Signed-off-by: Geert Uytterhoeven
    Reviewed-by: Chris Brandt
    Acked-by: Jacopo Mondi
    Acked-by: Rob Herring
    Link: https://lore.kernel.org/r/20200821111401.4021-1-geert+renesas@glider.be

    Geert Uytterhoeven
     
  • Sort each driver by description title in alphabetical order.

    Signed-off-by: Kuninori Morimoto
    Link: https://lore.kernel.org/r/87h7ssy4qy.wl-kuninori.morimoto.gx@renesas.com
    Signed-off-by: Geert Uytterhoeven

    Kuninori Morimoto
     
  • Now, Renesas Pin Control drivers are under menu, but current
    descriptions are not aligned.
    This patch aligns them.

    - RZ/A2 gpio and pinctrl driver
    - RZ/N1 pinctrl driver
    - Emma Mobile EV2 pin control support
    - R-Mobile APE6 pin control support
    - R-Mobile A1 pin control support
    - RZ/G1H pin control support
    - RZ/G1M pin control support

    + pin control support for RZ/A2
    + pin control support for RZ/N1
    + pin control support for Emma Mobile EV2
    + pin control support for R-Mobile APE6
    + pin control support for R-Mobile A1
    + pin control support for RZ/G1H
    + pin control support for RZ/G1M

    Signed-off-by: Kuninori Morimoto
    Link: https://lore.kernel.org/r/87imd8y4r2.wl-kuninori.morimoto.gx@renesas.com
    Signed-off-by: Geert Uytterhoeven

    Kuninori Morimoto
     
  • Renesas related pinctrl CONFIGs are located in many places, which is
    confusing.
    This patch collects them into the same place, grouped in a new "Renesas
    pinctrl drivers" menu.
    This patch also moves pinctrl-rz{a1,a2,n1}.c into the sh-pfc folder.

    Signed-off-by: Kuninori Morimoto
    Link: https://lore.kernel.org/r/87k0xoy4r7.wl-kuninori.morimoto.gx@renesas.com
    [geert: Update path in MAINTAINERS]
    Signed-off-by: Geert Uytterhoeven

    Kuninori Morimoto
     
  • It is "Emma Mobile EV2" not "AV2".
    This patch tidies it up.

    Reported-by: Geert Uytterhoeven
    Signed-off-by: Kuninori Morimoto
    Link: https://lore.kernel.org/r/87lfi4y4re.wl-kuninori.morimoto.gx@renesas.com
    Signed-off-by: Geert Uytterhoeven

    Kuninori Morimoto
     
  • Convert the Renesas Pin Function Controller (PFC) Device Tree binding
    documentation to json-schema.

    Document missing properties.
    Drop deprecated and obsolete #gpio-range-cells property.
    Update the example to match reality.
    Drop consumer examples, as they do not belong here.

    Signed-off-by: Geert Uytterhoeven
    Reviewed-by: Rob Herring
    Reviewed-by: Linus Walleij
    Link: https://lore.kernel.org/r/20200821112208.5295-1-geert+renesas@glider.be

    Geert Uytterhoeven
     

31 Aug, 2020

1 commit


17 Aug, 2020

4 commits

  • Add USB1 PWEN pin and group for USB1 interface.

    Signed-off-by: Lad Prabhakar
    Reviewed-by: Biju Das
    Link: https://lore.kernel.org/r/1595005225-11519-2-git-send-email-prabhakar.mahadev-lad.rj@bp.renesas.com
    Signed-off-by: Geert Uytterhoeven

    Lad Prabhakar
     
  • Linus Torvalds
     
  • Pull io_uring fixes from Jens Axboe:
    "A few differerent things in here.

    Seems like syzbot got some more io_uring bits wired up, and we got a
    handful of reports and the associated fixes are in here.

    General fixes too, and a lot of them marked for stable.

    Lastly, a bit of fallout from the async buffered reads, where we now
    more easily trigger short reads. Some applications don't really like
    that, so the io_read() code now handles short reads internally, and
    got a cleanup along the way so that it's now easier to read (and
    documented). We're now passing tests that failed before"

    * tag 'io_uring-5.9-2020-08-15' of git://git.kernel.dk/linux-block:
    io_uring: short circuit -EAGAIN for blocking read attempt
    io_uring: sanitize double poll handling
    io_uring: internally retry short reads
    io_uring: retain iov_iter state over io_read/io_write calls
    task_work: only grab task signal lock when needed
    io_uring: enable lookup of links holding inflight files
    io_uring: fail poll arm on queue proc failure
    io_uring: hold 'ctx' reference around task_work queue + execute
    fs: RWF_NOWAIT should imply IOCB_NOIO
    io_uring: defer file table grabbing request cleanup for locked requests
    io_uring: add missing REQ_F_COMP_LOCKED for nested requests
    io_uring: fix recursive completion locking on oveflow flush
    io_uring: use TWA_SIGNAL for task_work uncondtionally
    io_uring: account locked memory before potential error case
    io_uring: set ctx sq/cq entry count earlier
    io_uring: Fix NULL pointer dereference in loop_rw_iter()
    io_uring: add comments on how the async buffered read retry works
    io_uring: io_async_buf_func() need not test page bit

    Linus Torvalds
     
  • Commit 1355c31eeb7e ("asm-generic: pgalloc: provide generic pmd_alloc_one()
    and pmd_free_one()") converted parisc to use generic version of
    pmd_alloc_one() but it missed the fact that parisc uses order-1 pages for
    PMD.

    Restore the original version of pmd_alloc_one() for parisc, just use
    GFP_PGTABLE_KERNEL that implies __GFP_ZERO instead of GFP_KERNEL and
    memset.

    Fixes: 1355c31eeb7e ("asm-generic: pgalloc: provide generic pmd_alloc_one() and pmd_free_one()")
    Reported-by: Meelis Roos
    Signed-off-by: Mike Rapoport
    Tested-by: Meelis Roos
    Reviewed-by: Matthew Wilcox (Oracle)
    Link: https://lkml.kernel.org/r/9f2b5ebd-e4a4-0fa1-6cd3-4b9f6892d1ad@linux.ee
    Signed-off-by: Linus Torvalds

    Mike Rapoport
     

16 Aug, 2020

10 commits

  • Pull block fixes from Jens Axboe:
    "A few fixes on the block side of things:

    - Discard granularity fix (Coly)

    - rnbd cleanups (Guoqing)

    - md error handling fix (Dan)

    - md sysfs fix (Junxiao)

    - Fix flush request accounting, which caused an IO slowdown for some
    configurations (Ming)

    - Properly propagate loop flag for partition scanning (Lennart)"

    * tag 'block-5.9-2020-08-14' of git://git.kernel.dk/linux-block:
    block: fix double account of flush request's driver tag
    loop: unset GENHD_FL_NO_PART_SCAN on LOOP_CONFIGURE
    rnbd: no need to set bi_end_io in rnbd_bio_map_kern
    rnbd: remove rnbd_dev_submit_io
    md-cluster: Fix potential error pointer dereference in resize_bitmaps()
    block: check queue's limits.discard_granularity in __blkdev_issue_discard()
    md: get sysfs entry after redundancy attr group create

    Linus Torvalds
     
  • Pull RISC-V fix from Palmer Dabbelt:
    "I collected a single fix during the merge window: we managed to break
    the early trap setup on !MMU, this fixes it"

    * tag 'riscv-for-linus-5.9-mw1' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux:
    riscv: Setup exception vector for nommu platform

    Linus Torvalds
     
  • Pull arch/sh updates from Rich Felker:
    "Cleanup, SECCOMP_FILTER support, message printing fixes, and other
    changes to arch/sh"

    * tag 'sh-for-5.9' of git://git.libc.org/linux-sh: (34 commits)
    sh: landisk: Add missing initialization of sh_io_port_base
    sh: bring syscall_set_return_value in line with other architectures
    sh: Add SECCOMP_FILTER
    sh: Rearrange blocks in entry-common.S
    sh: switch to copy_thread_tls()
    sh: use the generic dma coherent remap allocator
    sh: don't allow non-coherent DMA for NOMMU
    dma-mapping: consolidate the NO_DMA definition in kernel/dma/Kconfig
    sh: unexport register_trapped_io and match_trapped_io_handler
    sh: don't include in
    sh: move the ioremap implementation out of line
    sh: move ioremap_fixed details out of
    sh: remove __KERNEL__ ifdefs from non-UAPI headers
    sh: sort the selects for SUPERH alphabetically
    sh: remove -Werror from Makefiles
    sh: Replace HTTP links with HTTPS ones
    arch/sh/configs: remove obsolete CONFIG_SOC_CAMERA*
    sh: stacktrace: Remove stacktrace_ops.stack()
    sh: machvec: Modernize printing of kernel messages
    sh: pci: Modernize printing of kernel messages
    ...

    Linus Torvalds
     
  • One case was missed in the short IO retry handling, and that's hitting
    -EAGAIN on a blocking attempt read (eg from io-wq context). This is a
    problem on sockets that are marked as non-blocking when created, they
    don't carry any REQ_F_NOWAIT information to help us terminate them
    instead of perpetually retrying.

    Fixes: 227c0c9673d8 ("io_uring: internally retry short reads")
    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • There's a bit of confusion on the matching pairs of poll vs double poll,
    depending on if the request is a pure poll (IORING_OP_POLL_ADD) or
    poll driven retry.

    Add io_poll_get_double() that returns the double poll waitqueue, if any,
    and io_poll_get_single() that returns the original poll waitqueue. With
    that, remove the argument to io_poll_remove_double().

    Finally ensure that wait->private is cleared once the double poll handler
    has run, so that remove knows it's already been seen.

    Cc: stable@vger.kernel.org # v5.8
    Reported-by: syzbot+7f617d4a9369028b8a2c@syzkaller.appspotmail.com
    Fixes: 18bceab101ad ("io_uring: allow POLL_ADD with double poll_wait() users")
    Signed-off-by: Jens Axboe

    Jens Axboe
     
  • Pull more perf tools updates from Arnaldo Carvalho de Melo:
    "Fixes:
    - Fixes for 'perf bench numa'.

    - Always memset source before memcpy in 'perf bench mem'.

    - Quote CC and CXX for their arguments to fix build in environments
    using those variables to pass more than just the compiler names.

    - Fix module symbol processing, addressing regression detected via
    "perf test".

    - Allow multiple probes in record+script_probe_vfs_getname.sh 'perf
    test' entry.

    Improvements:
    - Add script to autogenerate socket family name id->string table from
    copy of kernel header, used so far in 'perf trace'.

    - 'perf ftrace' improvements to provide similar options for this
    utility so that one can go from 'perf record', 'perf trace', etc to
    'perf ftrace' just by changing the name of the subcommand.

    - Prefer new "sched:sched_waking" trace event when it exists in 'perf
    sched' post processing.

    - Update POWER9 metrics to utilize other metrics.

    - Fall back to querying debuginfod if debuginfo not found locally.

    Miscellaneous:
    - Sync various kvm headers with kernel sources"

    * tag 'perf-tools-2020-08-14' of git://git.kernel.org/pub/scm/linux/kernel/git/acme/linux: (40 commits)
    perf ftrace: Make option description initials all capital letters
    perf build-ids: Fall back to debuginfod query if debuginfo not found
    perf bench numa: Remove dead code in parse_nodes_opt()
    perf stat: Update POWER9 metrics to utilize other metrics
    perf ftrace: Add change log
    perf: ftrace: Add set_tracing_options() to set all trace options
    perf ftrace: Add option --tid to filter by thread id
    perf ftrace: Add option -D/--delay to delay tracing
    perf: ftrace: Allow set graph depth by '--graph-opts'
    perf ftrace: Add support for trace option tracing_thresh
    perf ftrace: Add option 'verbose' to show more info for graph tracer
    perf ftrace: Add support for tracing option 'irq-info'
    perf ftrace: Add support for trace option funcgraph-irqs
    perf ftrace: Add support for trace option sleep-time
    perf ftrace: Add support for tracing option 'func_stack_trace'
    perf tools: Add general function to parse sublevel options
    perf ftrace: Add option '--inherit' to trace children processes
    perf ftrace: Show trace column header
    perf ftrace: Add option '-m/--buffer-size' to set per-cpu buffer size
    perf ftrace: Factor out function write_tracing_file_int()
    ...

    Linus Torvalds
     
  • Pull x86 fixes from Ingo Molnar:
    "Misc fixes and small updates all around the place:

    - Fix mitigation state sysfs output

    - Fix an FPU xstate/sxave code assumption bug triggered by
    Architectural LBR support

    - Fix Lightning Mountain SoC TSC frequency enumeration bug

    - Fix kexec debug output

    - Fix kexec memory range assumption bug

    - Fix a boundary condition in the crash kernel code

    - Optimize porgatory.ro generation a bit

    - Enable ACRN guests to use X2APIC mode

    - Reduce a __text_poke() IRQs-off critical section for the benefit of
    PREEMPT_RT"

    * tag 'x86-urgent-2020-08-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    x86/alternatives: Acquire pte lock with interrupts enabled
    x86/bugs/multihit: Fix mitigation reporting when VMX is not in use
    x86/fpu/xstate: Fix an xstate size check warning with architectural LBRs
    x86/purgatory: Don't generate debug info for purgatory.ro
    x86/tsr: Fix tsc frequency enumeration bug on Lightning Mountain SoC
    kexec_file: Correctly output debugging information for the PT_LOAD ELF header
    kexec: Improve & fix crash_exclude_mem_range() to handle overlapping ranges
    x86/crash: Correct the address boundary of function parameters
    x86/acrn: Remove redundant chars from ACRN signature
    x86/acrn: Allow ACRN guest to use X2APIC mode

    Linus Torvalds
     
  • Pull scheduler fixes from Ingo Molnar:
    "Two fixes: fix a new tracepoint's output value, and fix the formatting
    of show-state syslog printouts"

    * tag 'sched-urgent-2020-08-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    sched/debug: Fix the alignment of the show-state debug output
    sched: Fix use of count for nr_running tracepoint

    Linus Torvalds
     
  • Pull perf fixes from Ingo Molnar:
    "Misc fixes, an expansion of perf syscall access to CAP_PERFMON
    privileged tools, plus a RAPL HW-enablement for Intel SPR platforms"

    * tag 'perf-urgent-2020-08-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    perf/x86/rapl: Add support for Intel SPR platform
    perf/x86/rapl: Support multiple RAPL unit quirks
    perf/x86/rapl: Fix missing psys sysfs attributes
    hw_breakpoint: Remove unused __register_perf_hw_breakpoint() declaration
    kprobes: Remove show_registers() function prototype
    perf/core: Take over CAP_SYS_PTRACE creds to CAP_PERFMON capability

    Linus Torvalds
     
  • Pull locking fixlets from Ingo Molnar:
    "A documentation fix and a 'fallthrough' macro update"

    * tag 'locking-urgent-2020-08-15' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
    futex: Convert to use the preferred 'fallthrough' macro
    Documentation/locking/locktypes: Fix a typo

    Linus Torvalds
     

15 Aug, 2020

14 commits

  • Pull 9p updates from Dominique Martinet:

    - some code cleanup

    - a couple of static analysis fixes

    - setattr: try to pick a fid associated with the file rather than the
    dentry, which might sometimes matter

    * tag '9p-for-5.9-rc1' of git://github.com/martinetd/linux:
    9p: Remove unneeded cast from memory allocation
    9p: remove unused code in 9p
    net/9p: Fix sparse endian warning in trans_fd.c
    9p: Fix memory leak in v9fs_mount
    9p: retrieve fid from file when file instance exist.

    Linus Torvalds
     
  • Pull cifs fixes from Steve French:
    "Three small cifs/smb3 fixes, one for stable fixing mkdir path with
    the 'idsfromsid' mount option"

    * tag '5.9-rc-smb3-fixes-part2' of git://git.samba.org/sfrench/cifs-2.6:
    SMB3: Fix mkdir when idsfromsid configured on mount
    cifs: Convert to use the fallthrough macro
    cifs: Fix an error pointer dereference in cifs_mount()

    Linus Torvalds
     
  • Pull NFS client updates from Trond Myklebust:
    "Stable fixes:
    - pNFS: Don't return layout segments that are being used for I/O
    - pNFS: Don't move layout segments off the active list when being used for I/O

    Features:
    - NFS: Add support for user xattrs through the NFSv4.2 protocol
    - NFS: Allow applications to speed up readdir+statx() using AT_STATX_DONT_SYNC
    - NFSv4.0 allow nconnect for v4.0

    Bugfixes and cleanups:
    - nfs: ensure correct writeback errors are returned on close()
    - nfs: nfs_file_write() should check for writeback errors
    - nfs: Fix getxattr kernel panic and memory overflow
    - NFS: Fix the pNFS/flexfiles mirrored read failover code
    - SUNRPC: dont update timeout value on connection reset
    - freezer: Add unsafe versions of freezable_schedule_timeout_interruptible for NFS
    - sunrpc: destroy rpc_inode_cachep after unregister_filesystem"

    * tag 'nfs-for-5.9-1' of git://git.linux-nfs.org/projects/trondmy/linux-nfs: (32 commits)
    NFS: Fix flexfiles read failover
    fs: nfs: delete repeated words in comments
    rpc_pipefs: convert comma to semicolon
    nfs: Fix getxattr kernel panic and memory overflow
    NFS: Don't return layout segments that are in use
    NFS: Don't move layouts to plh_return_segs list while in use
    NFS: Add layout segment info to pnfs read/write/commit tracepoints
    NFS: Add tracepoints for layouterror and layoutstats.
    NFS: Report the stateid + status in trace_nfs4_layoutreturn_on_close()
    SUNRPC dont update timeout value on connection reset
    nfs: nfs_file_write() should check for writeback errors
    nfs: ensure correct writeback errors are returned on close()
    NFSv4.2: xattr cache: get rid of cache discard work queue
    NFS: remove redundant initialization of variable result
    NFSv4.0 allow nconnect for v4.0
    freezer: Add unsafe versions of freezable_schedule_timeout_interruptible for NFS
    sunrpc: destroy rpc_inode_cachep after unregister_filesystem
    NFSv4.2: add client side xattr caching.
    NFSv4.2: hook in the user extended attribute handlers
    NFSv4.2: add the extended attribute proc functions.
    ...

    Linus Torvalds
     
  • Pull edac fix from Tony Luck:
    "Fix for the ie31200 driver that missed the first pull"

    * tag 'edac_updates_for_5.9_pt2' of git://git.kernel.org/pub/scm/linux/kernel/git/ras/ras:
    EDAC/ie31200: Fallback if host bridge device is already initialized

    Linus Torvalds
     
  • Pull devicetree fixes from Rob Herring:
    "Another round of 'allOf' removals and whitespace clean-ups of schemas"

    * tag 'devicetree-fixes-for-5.9' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux:
    dt-bindings: Remove more cases of 'allOf' containing a '$ref'
    dt-bindings: Whitespace clean-ups in schema files

    Linus Torvalds
     
  • Pull more ACPI updates from Rafael Wysocki:
    "Add new hardware support to the ACPI driver for AMD SoCs, the x86 clk
    driver and the Designware i2c driver (changes from Akshu Agrawal and
    Pu Wen)"

    * tag 'acpi-5.9-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    clk: x86: Support RV architecture
    ACPI: APD: Add a fmw property is_raven
    clk: x86: Change name from ST to FCH
    ACPI: APD: Change name from ST to FCH
    i2c: designware: Add device HID for Hygon I2C controller

    Linus Torvalds
     
  • Pull one more power management update from Rafael Wysocki:
    "Modify the intel_pstate driver to allow it to work in the passive mode
    with hardware-managed P-states (HWP) enabled"

    * tag 'pm-5.9-rc1-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
    cpufreq: intel_pstate: Implement passive mode with HWP enabled

    Linus Torvalds
     
  • Pull MFD updates from Lee Jones:
    "Core Frameworks
    - Make better attempt at matching device with the correct OF node
    - Allow batch removal of hierarchical sub-devices

    New Drivers
    - Add STM32 Clocksource driver
    - Add support for Khadas System Control Microcontroller

    Driver Removal
    - Remove unused driver for TI's SMSC ECE1099

    New Device Support
    - Add support for Intel Emmitsburg PCH to Intel LPSS PCI
    - Add support for Intel Tiger Lake PCH-H to Intel LPSS PCI
    - Add support for Dialog DA revision to Dialog DA9063

    New Functionality
    - Add support for AXP803 to be probed by I2C

    Fix-ups
    - Numerous W=1 warning fixes
    - Device Tree changes (stm32-lptimer, gateworks-gsc, khadas,mcu, stmfx, cros-ec, j721e-system-controller)
    - Enabled Regmap 'fast I/O' in stm32-lptimer
    - Change BUG_ON to WARN_ON in arizona-core
    - Remove superfluous code/initialisation (madera, max14577)
    - Trivial formatting/spelling issues (madera-core, madera-i2c, da9055, max77693-private)
    - Switch to of_platform_populate() in sprd-sc27xx-spi
    - Expand out set/get brightness/pwm macros in lm3533-ctrlbank
    - Disable IRQs on suspend in motorola-cpcap
    - Clean-up error handling in intel_soc_pmic_mrfld
    - Ensure correct removal order of sub-devices in madera
    - Many s/HTTP/HTTPS/ link changes
    - Ensure name used with Regmap is unique in syscon

    Bug Fixes
    - Properly 'put' clock on unbind and error in arizona-core
    - Fix revision handling in da9063
    - Fix 'assignment of read-only location' error in kempld-core
    - Avoid using the Regmap API when atomic in rn5t618
    - Redefine volatile register description in rn5t618
    - Use locking to protect event handler in dln2"

    * tag 'mfd-next-5.9-1' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd: (76 commits)
    mfd: syscon: Use a unique name with regmap_config
    mfd: Replace HTTP links with HTTPS ones
    mfd: dln2: Run event handler loop under spinlock
    mfd: madera: Improve handling of regulator unbinding
    mfd: mfd-core: Add mechanism for removal of a subset of children
    mfd: intel_soc_pmic_mrfld: Simplify the return expression of intel_scu_ipc_dev_iowrite8()
    mfd: max14577: Remove redundant initialization of variable current_bits
    mfd: rn5t618: Fix caching of battery related registers
    mfd: max77693-private: Drop a duplicated word
    mfd: da9055: pdata.h: Drop a duplicated word
    mfd: rn5t618: Make restart handler atomic safe
    mfd: kempld-core: Fix 'assignment of read-only location' error
    mfd: axp20x: Allow the AXP803 to be probed by I2C
    mfd: da9063: Add support for latest DA silicon revision
    mfd: da9063: Fix revision handling to correctly select reg tables
    dt-bindings: mfd: st,stmfx: Remove I2C unit name
    dt-bindings: mfd: ti,j721e-system-controller.yaml: Add J721e system controller
    mfd: motorola-cpcap: Disable interrupt for suspend
    mfd: smsc-ece1099: Remove driver
    mfd: core: Add OF_MFD_CELL_REG() helper
    ...

    Linus Torvalds
     
  • Merge more updates from Andrew Morton:
    "Subsystems affected by this patch series: mm/hotfixes, lz4, exec,
    mailmap, mm/thp, autofs, sysctl, mm/kmemleak, mm/misc and lib"

    * emailed patches from Andrew Morton : (35 commits)
    virtio: pci: constify ioreadX() iomem argument (as in generic implementation)
    ntb: intel: constify ioreadX() iomem argument (as in generic implementation)
    rtl818x: constify ioreadX() iomem argument (as in generic implementation)
    iomap: constify ioreadX() iomem argument (as in generic implementation)
    sh: use generic strncpy()
    sh: clkfwk: remove r8/r16/r32
    include/asm-generic/vmlinux.lds.h: align ro_after_init
    mm: annotate a data race in page_zonenum()
    mm/swap.c: annotate data races for lru_rotate_pvecs
    mm/rmap: annotate a data race at tlb_flush_batched
    mm/mempool: fix a data race in mempool_free()
    mm/list_lru: fix a data race in list_lru_count_one
    mm/memcontrol: fix a data race in scan count
    mm/page_counter: fix various data races at memsw
    mm/swapfile: fix and annotate various data races
    mm/filemap.c: fix a data race in filemap_fault()
    mm/swap_state: mark various intentional data races
    mm/page_io: mark various intentional data races
    mm/frontswap: mark various intentional data races
    mm/kmemleak: silence KCSAN splats in checksum
    ...

    Linus Torvalds
     
  • The ioreadX() helpers have inconsistent interface. On some architectures
    void *__iomem address argument is a pointer to const, on some not.

    Implementations of ioreadX() do not modify the memory under the address so
    they can be converted to a "const" version for const-safety and
    consistency among architectures.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Andrew Morton
    Reviewed-by: Geert Uytterhoeven
    Cc: Allen Hubbe
    Cc: Arnd Bergmann
    Cc: Benjamin Herrenschmidt
    Cc: Dave Jiang
    Cc: "David S. Miller"
    Cc: Geert Uytterhoeven
    Cc: Helge Deller
    Cc: Ivan Kokshaysky
    Cc: Jakub Kicinski
    Cc: "James E.J. Bottomley"
    Cc: Jason Wang
    Cc: Jon Mason
    Cc: Kalle Valo
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: "Michael S. Tsirkin"
    Cc: Paul Mackerras
    Cc: Richard Henderson
    Cc: Rich Felker
    Cc: Yoshinori Sato
    Link: http://lkml.kernel.org/r/20200709072837.5869-5-krzk@kernel.org
    Signed-off-by: Linus Torvalds

    Krzysztof Kozlowski
     
  • The ioreadX() helpers have inconsistent interface. On some architectures
    void *__iomem address argument is a pointer to const, on some not.

    Implementations of ioreadX() do not modify the memory under the address so
    they can be converted to a "const" version for const-safety and
    consistency among architectures.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Andrew Morton
    Reviewed-by: Geert Uytterhoeven
    Acked-by: Dave Jiang
    Cc: Allen Hubbe
    Cc: Arnd Bergmann
    Cc: Benjamin Herrenschmidt
    Cc: "David S. Miller"
    Cc: Geert Uytterhoeven
    Cc: Helge Deller
    Cc: Ivan Kokshaysky
    Cc: Jakub Kicinski
    Cc: "James E.J. Bottomley"
    Cc: Jason Wang
    Cc: Jon Mason
    Cc: Kalle Valo
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: "Michael S. Tsirkin"
    Cc: Paul Mackerras
    Cc: Richard Henderson
    Cc: Rich Felker
    Cc: Yoshinori Sato
    Link: http://lkml.kernel.org/r/20200709072837.5869-4-krzk@kernel.org
    Signed-off-by: Linus Torvalds

    Krzysztof Kozlowski
     
  • The ioreadX() helpers have inconsistent interface. On some architectures
    void *__iomem address argument is a pointer to const, on some not.

    Implementations of ioreadX() do not modify the memory under the address so
    they can be converted to a "const" version for const-safety and
    consistency among architectures.

    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Andrew Morton
    Reviewed-by: Geert Uytterhoeven
    Acked-by: Kalle Valo
    Cc: Allen Hubbe
    Cc: Arnd Bergmann
    Cc: Benjamin Herrenschmidt
    Cc: Dave Jiang
    Cc: "David S. Miller"
    Cc: Geert Uytterhoeven
    Cc: Helge Deller
    Cc: Ivan Kokshaysky
    Cc: Jakub Kicinski
    Cc: "James E.J. Bottomley"
    Cc: Jason Wang
    Cc: Jon Mason
    Cc: Matt Turner
    Cc: Michael Ellerman
    Cc: "Michael S. Tsirkin"
    Cc: Paul Mackerras
    Cc: Richard Henderson
    Cc: Rich Felker
    Cc: Yoshinori Sato
    Link: http://lkml.kernel.org/r/20200709072837.5869-3-krzk@kernel.org
    Signed-off-by: Linus Torvalds

    Krzysztof Kozlowski
     
  • Patch series "iomap: Constify ioreadX() iomem argument", v3.

    The ioread8/16/32() and others have inconsistent interface among the
    architectures: some taking address as const, some not.

    It seems there is nothing really stopping all of them to take pointer to
    const.

    This patch (of 4):

    The ioreadX() and ioreadX_rep() helpers have inconsistent interface. On
    some architectures void *__iomem address argument is a pointer to const,
    on some not.

    Implementations of ioreadX() do not modify the memory under the address so
    they can be converted to a "const" version for const-safety and
    consistency among architectures.

    [krzk@kernel.org: sh: clk: fix assignment from incompatible pointer type for ioreadX()]
    Link: http://lkml.kernel.org/r/20200723082017.24053-1-krzk@kernel.org
    [akpm@linux-foundation.org: fix drivers/mailbox/bcm-pdc-mailbox.c]
    Link: http://lkml.kernel.org/r/202007132209.Rxmv4QyS%25lkp@intel.com

    Suggested-by: Geert Uytterhoeven
    Signed-off-by: Krzysztof Kozlowski
    Signed-off-by: Andrew Morton
    Reviewed-by: Geert Uytterhoeven
    Reviewed-by: Arnd Bergmann
    Cc: Richard Henderson
    Cc: Ivan Kokshaysky
    Cc: Matt Turner
    Cc: "James E.J. Bottomley"
    Cc: Helge Deller
    Cc: Michael Ellerman
    Cc: Benjamin Herrenschmidt
    Cc: Paul Mackerras
    Cc: Yoshinori Sato
    Cc: Rich Felker
    Cc: Kalle Valo
    Cc: "David S. Miller"
    Cc: Jakub Kicinski
    Cc: Dave Jiang
    Cc: Jon Mason
    Cc: Allen Hubbe
    Cc: "Michael S. Tsirkin"
    Cc: Jason Wang
    Link: http://lkml.kernel.org/r/20200709072837.5869-1-krzk@kernel.org
    Link: http://lkml.kernel.org/r/20200709072837.5869-2-krzk@kernel.org
    Signed-off-by: Linus Torvalds

    Krzysztof Kozlowski
     
  • Current SH will get below warning at strncpy()

    In file included from ${LINUX}/arch/sh/include/asm/string.h:3,
    from ${LINUX}/include/linux/string.h:20,
    from ${LINUX}/include/linux/bitmap.h:9,
    from ${LINUX}/include/linux/nodemask.h:95,
    from ${LINUX}/include/linux/mmzone.h:17,
    from ${LINUX}/include/linux/gfp.h:6,
    from ${LINUX}/innclude/linux/slab.h:15,
    from ${LINUX}/linux/drivers/mmc/host/vub300.c:38:
    ${LINUX}/drivers/mmc/host/vub300.c: In function 'new_system_port_status':
    ${LINUX}/arch/sh/include/asm/string_32.h:51:42: warning: array subscript\
    80 is above array bounds of 'char[26]' [-Warray-bounds]
    : "0" (__dest), "1" (__src), "r" (__src+__n)
    ~~~~~^~~~

    In general, strncpy() should behave like below.

    char dest[10];
    char *src = "12345";

    strncpy(dest, src, 10);
    // dest = {'1', '2', '3', '4', '5',
    '\0','\0','\0','\0','\0'}

    But, current SH strnpy() has 2 issues.
    1st is it will access to out-of-memory (= src + 10).
    2nd is it needs big fixup for it, and maintenance __asm__
    code is difficult.

    To solve these issues, this patch simply uses generic strncpy()
    instead of architecture specific one.

    Signed-off-by: Kuninori Morimoto
    Signed-off-by: Andrew Morton
    Cc: Alan Modra
    Cc: Bin Meng
    Cc: Chen Zhou
    Cc: Geert Uytterhoeven
    Cc: John Paul Adrian Glaubitz
    Cc: Krzysztof Kozlowski
    Cc: Rich Felker
    Cc: Romain Naour
    Cc: Sam Ravnborg
    Cc: Yoshinori Sato
    Link: https://marc.info/?l=linux-renesas-soc&m=157664657013309
    Signed-off-by: Linus Torvalds

    Kuninori Morimoto