Linux 5.15.107
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.15.107 kernel.
All users of the 5.15 kernel series must upgrade.
The updated 5.15.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.15.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary
thanks,
greg k-h
------------
Documentation/devicetree/bindings/serial/renesas,scif.yaml | 4 Makefile | 18 arch/s390/kvm/intercept.c | 32 drivers/gpio/Kconfig | 2 drivers/gpio/gpio-davinci.c | 2 drivers/gpu/drm/bridge/lontium-lt9611.c | 1 drivers/gpu/drm/nouveau/dispnv50/disp.c | 32 drivers/gpu/drm/nouveau/nouveau_dp.c | 8 drivers/gpu/drm/panfrost/panfrost_mmu.c | 1 drivers/hv/connection.c | 4 drivers/hwtracing/coresight/coresight-etm4x-core.c | 24 drivers/hwtracing/coresight/coresight-etm4x.h | 20 drivers/iio/adc/ad7791.c | 2 drivers/iio/adc/ti-ads7950.c | 1 drivers/iio/dac/cio-dac.c | 4 drivers/iio/imu/Kconfig | 1 drivers/iio/light/cm32181.c | 12 drivers/infiniband/hw/irdma/verbs.c | 15 drivers/net/dsa/mv88e6xxx/chip.c | 2 drivers/net/dsa/mv88e6xxx/global2.c | 20 drivers/net/dsa/mv88e6xxx/global2.h | 1 drivers/net/ethernet/google/gve/gve.h | 2 drivers/net/ethernet/google/gve/gve_tx.c | 12 drivers/net/ethernet/intel/iavf/iavf_main.c | 22 drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c | 23 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 6 drivers/net/ethernet/ti/am65-cpsw-nuss.c | 6 drivers/platform/x86/intel/int3472/Makefile | 9 drivers/platform/x86/intel/int3472/clk_and_regulator.c | 210 + drivers/platform/x86/intel/int3472/common.c | 54 drivers/platform/x86/intel/int3472/common.h | 119 drivers/platform/x86/intel/int3472/discrete.c | 439 +++ drivers/platform/x86/intel/int3472/intel_skl_int3472_clk_and_regulator.c | 207 - drivers/platform/x86/intel/int3472/intel_skl_int3472_common.c | 106 drivers/platform/x86/intel/int3472/intel_skl_int3472_common.h | 122 drivers/platform/x86/intel/int3472/intel_skl_int3472_discrete.c | 413 --- drivers/platform/x86/intel/int3472/intel_skl_int3472_tps68470.c | 137 - drivers/platform/x86/intel/int3472/tps68470.c | 156 + drivers/platform/x86/think-lmi.c | 20 drivers/pwm/pwm-cros-ec.c | 1 drivers/pwm/pwm-sprd.c | 1 drivers/scsi/iscsi_tcp.c | 3 drivers/scsi/qla2xxx/qla_os.c | 1 drivers/tty/serial/8250/8250_exar.c | 51 drivers/tty/serial/fsl_lpuart.c | 8 drivers/tty/serial/sh-sci.c | 10 drivers/usb/cdns3/cdnsp-ep0.c | 3 drivers/usb/dwc3/dwc3-pci.c | 4 drivers/usb/host/xhci-tegra.c | 6 drivers/usb/host/xhci.c | 6 drivers/usb/serial/cp210x.c | 1 drivers/usb/serial/option.c | 10 drivers/usb/typec/altmodes/displayport.c | 6 fs/cifs/cifsfs.c | 1 fs/cifs/connect.c | 2 fs/cifs/file.c | 4 fs/cifs/fs_context.c | 22 fs/cifs/fs_context.h | 11 fs/cifs/misc.c | 2 fs/ksmbd/connection.c | 5 fs/namespace.c | 2 fs/nfsd/nfs4callback.c | 4 fs/nfsd/nfs4proc.c | 7 fs/nfsd/nfs4xdr.c | 4 fs/nilfs2/segment.c | 3 fs/nilfs2/super.c | 2 fs/nilfs2/the_nilfs.c | 12 fs/ocfs2/dlmglue.c | 8 fs/ocfs2/journal.c | 2 fs/ocfs2/journal.h | 1 fs/ocfs2/super.c | 108 include/linux/ftrace.h | 2 kernel/bpf/hashtab.c | 4 kernel/events/core.c | 2 kernel/trace/ftrace.c | 15 kernel/trace/ring_buffer.c | 13 kernel/trace/trace.c | 1 mm/memory.c | 16 mm/swapfile.c | 3 mm/vmalloc.c | 8 net/can/isotp.c | 17 net/can/j1939/transport.c | 5 net/core/netpoll.c | 19 net/ethtool/linkmodes.c | 7 net/ipv4/icmp.c | 5 net/ipv6/ip6_output.c | 7 net/mac80211/sta_info.c | 3 net/qrtr/Makefile | 3 net/qrtr/af_qrtr.c | 1323 ++++++++++ net/qrtr/ns.c | 15 net/qrtr/qrtr.c | 1321 --------- net/sctp/socket.c | 4 net/sunrpc/svcauth_unix.c | 17 sound/pci/hda/patch_realtek.c | 1 sound/soc/codecs/hdac_hdmi.c | 17 tools/lib/bpf/btf_dump.c | 6 96 files changed, 2846 insertions(+), 2568 deletions(-)
Alistair Popple (1):
mm: take a page reference when removing device exclusive entries
Andy Roulin (1):
ethtool: reset #lanes when lanes is omitted
Andy Shevchenko (1):
serial: 8250_exar: derive nr_ports from PCI ID for Acces I/O cards
Armin Wolf (1):
platform/x86: think-lmi: Fix memory leak when showing current settings
Arnd Bergmann (1):
iio: adis16480: select CONFIG_CRC32
Biju Das (2):
tty: serial: sh-sci: Fix transmit end interrupt handler
tty: serial: sh-sci: Fix Rx on RZ/G2L SCI
Bjørn Mork (1):
USB: serial: option: add Quectel RM500U-CN modem
Boris Brezillon (1):
drm/panfrost: Fix the panfrost_mmu_map_fault_addr() error path
Brian Foster (1):
NFSD: pass range end to vfs_fsync_range() instead of count
Christian Brauner (1):
fs: drop peer group ids under namespace lock
Chuck Lever (2):
NFSD: Fix sparse warning
NFSD: Avoid calling OPDESC() with ops->opnum == OP_ILLEGAL
Corinna Vinschen (1):
net: stmmac: fix up RX flow hash indirection table when setting channels
D Scott Phillips (1):
xhci: also avoid the XHCI_ZERO_64B_REGS quirk with a passthrough iommu
Dai Ngo (1):
NFSD: callback request does not use correct credential for AUTH_SYS
Daniil Tatianin (1):
iavf/iavf_main: actually log ->src mask when talking about it
Dhruva Gole (1):
gpio: davinci: Add irq chip flag to skip set wake
Eduard Zingerman (1):
bpftool: Print newline before '}' for struct with padding only fields
Enrico Sau (1):
USB: serial: option: add Telit FE990 compositions
Eric Dumazet (1):
icmp: guard against too small mtu
Felix Fietkau (1):
wifi: mac80211: fix invalid drv_sta_pre_rcu_remove calls for non-uploaded sta
Geert Uytterhoeven (1):
dt-bindings: serial: renesas,scif: Fix 4th IRQ for 4-IRQ SCIFs
Greg Kroah-Hartman (1):
Linux 5.15.107
Gustav Ekelund (1):
net: dsa: mv88e6xxx: Reset mv88e6393x force WD event bit
Hans de Goede (2):
platform/x86: int3472: Split into 2 drivers
platform/x86: int3472/discrete: Ensure the clk/power enable pins are in output mode
Heikki Krogerus (1):
usb: dwc3: pci: add support for the Intel Meteor Lake-S
Heming Zhao (1):
ocfs2: fix freeing uninitialized resource on ocfs2_dlm_shutdown
Heming Zhao via Ocfs2-devel (2):
ocfs2: ocfs2_mount_volume does cleanup job before return error
ocfs2: rewrite error handling of ocfs2_fill_super
Jacob Keller (1):
iavf: return errno code instead of status code
Jakub Kicinski (1):
net: don't let netpoll invoke NAPI if in xmit context
Jason Montleon (1):
ASoC: hdac_hdmi: use set_stream() instead of set_tdm_slots()
Jeff Layton (1):
sunrpc: only free unix grouplist after RCU settles
Jeremy Soller (1):
ALSA: hda/realtek: Add quirk for Clevo X370SNW
John Keeping (1):
ftrace: Mark get_lock_parent_ip() __always_inline
Kai-Heng Feng (1):
iio: light: cm32181: Unregister second I2C client if present
Kan Liang (1):
perf/core: Fix the same task check in perf_event_set_output
Karol Herbst (1):
drm/nouveau/disp: Support more modes by checking with lower bpc
Kees Jan Koster (1):
USB: serial: cp210x: add Silicon Labs IFS-USB-DATACABLE IDs
Lars-Peter Clausen (1):
iio: adc: ti-ads7950: Set can_sleep flag for GPIO chip
Li Zetao (2):
ocfs2: fix memory leak in ocfs2_mount_volume()
scsi: qla2xxx: Fix memory leak in qla2x00_probe_one()
Lingyu Liu (1):
ice: Reset FDIR counter in FDIR init stage
Luca Weiss (1):
net: qrtr: combine nameservice into main module
Marios Makassikis (1):
ksmbd: do not call kvmalloc() with __GFP_NORETRY | __GFP_NO_WARN
Mark Pearson (2):
platform/x86: think-lmi: Fix memory leaks when parsing ThinkStation WMI strings platform/x86: think-lmi: Clean up display of current_value on Thinkstation
Masahiro Yamada (2):
kbuild: refactor single builds of *.ko
kbuild: fix single directory build
Matthew Howell (1):
serial: exar: Add support for Sealevel 7xxxC serial cards
Michal Sojka (1):
can: isotp: isotp_ops: fix poll() to not report false EPOLLOUT events
Mohammed Gamal (1):
Drivers: vmbus: Check for channel allocation before looking up relids
Mustafa Ismail (1):
RDMA/irdma: Do not request 2-level PBLEs for CQ alloc
Nico Boehr (1):
KVM: s390: pv: fix external interruption loop not always detected
Nuno Sá (1):
iio: adc: ad7791: fix IRQ flags
Oleksij Rempel (1):
can: j1939: j1939_tp_tx_dat_new(): fix out-of-bounds memory access
Pawel Laszczak (1):
usb: cdnsp: Fixes error: uninitialized symbol 'len'
RD Babiera (1):
usb: typec: altmodes/displayport: Fix configure initial pin assignment
Randy Dunlap (1):
gpio: GPIO_REGMAP: select REGMAP instead of depending on it
Robert Foss (1):
drm/bridge: lt9611: Fix PLL being unable to lock
Rongwei Wang (1):
mm/swap: fix swap_info_struct race between swapoff and get_swap_pages()
Ryusuke Konishi (2):
nilfs2: fix potential UAF of struct nilfs_sc_info in nilfs_segctor_thread()
nilfs2: fix sysfs interface lifetime
Shailend Chand (1):
gve: Secure enough bytes in the first TX desc for all TCP pkts
Sherry Sun (1):
tty: serial: fsl_lpuart: avoid checking for transfer complete when UARTCTRL_SBK is asserted in lpuart32_tx_empty
Siddharth Vadapalli (1):
net: ethernet: ti: am65-cpsw: Fix mdio cleanup in probe
Simei Su (1):
ice: fix wrong fallback logic for FDIR
Sricharan Ramabadhran (1):
net: qrtr: Do not do DEL_SERVER broadcast after DEL_CLIENT
Steve Clevenger (1):
coresight-etm4: Fix for() loop drvdata->nr_addr_cmp range bug
Steve French (2):
smb3: allow deferred close timeout to be configurable
smb3: lower default deferred close timeout to address perf regression
Steven Rostedt (Google) (1):
tracing: Free error logs of tracing instances
Suzuki K Poulose (1):
coresight: etm4x: Do not access TRCIDR1 for identification
Thiago Rafael Becker (1):
cifs: sanitize paths in cifs_update_super_prepath.
Tonghao Zhang (1):
bpf: hash map, avoid deadlock with suitable hash mask
Uwe Kleine-König (2):
pwm: cros-ec: Explicitly set .polarity in .get_state()
pwm: sprd: Explicitly set .polarity in .get_state()
Wayne Chang (1):
usb: xhci: tegra: fix sleep in atomic call
William Breathitt Gray (1):
iio: dac: cio-dac: Fix max DAC write value check for 12-bit
Xin Long (1):
sctp: check send stream number after wait_for_sndbuf
Yafang Shao (1):
mm: vmalloc: avoid warn_alloc noise caused by fatal signal
Zheng Yejian (2):
ftrace: Fix issue that 'direct->addr' not restored in modify_ftrace_direct()
ring-buffer: Fix race while reader and writer are on the same page
Zhong Jinghua (1):
scsi: iscsi_tcp: Check that sock is valid before iscsi_set_param()
Ziyang Xuan (2):
net: qrtr: Fix a refcount bug in qrtr_recvmsg()
ipv6: Fix an uninit variable access bug in __ip6_make_skb()
Greg Kroah-Hartman
maintainerDocumentation/devicetree/bindings/serial/renesas,scif.yaml +2 -2
@@ -79,7 +79,7 @@ properties: - description: Error interrupt - description: Receive buffer full interrupt - description: Transmit buffer empty interrupt - - description: Transmit End interrupt + - description: Break interrupt - items: - description: Error interrupt - description: Receive buffer full interrupt
@@ -94,7 +94,7 @@ properties: - const: eri - const: rxi - const: txi - - const: tei + - const: bri - items: - const: eri - const: rxi
Makefile +6 -12
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 15 -SUBLEVEL = 106 +SUBLEVEL = 107 EXTRAVERSION = NAME = Trick or Treat
@@ -1850,6 +1850,8 @@ modules modules_install: @echo >&2 '***' @exit 1 +KBUILD_MODULES := + endif # CONFIG_MODULES # Single targets
@@ -1875,18 +1877,12 @@ $(single-ko): single_modpost $(single-no-ko): descend @: -ifeq ($(KBUILD_EXTMOD),) -# For the single build of in-tree modules, use a temporary file to avoid -# the situation of modules_install installing an invalid modules.order. -MODORDER := .modules.tmp -endif - +# Remove MODORDER when done because it is not the real one. PHONY += single_modpost single_modpost: $(single-no-ko) modules_prepare $(Q){ $(foreach m, $(single-ko), echo $(extmod_prefix)$m;) } > $(MODORDER) $(Q)$(MAKE) -f $(srctree)/scripts/Makefile.modpost - -KBUILD_MODULES := 1 + $(Q)rm -f $(MODORDER) export KBUILD_SINGLE_TARGETS := $(addprefix $(extmod_prefix), $(single-no-ko))
@@ -1894,10 +1890,8 @@ export KBUILD_SINGLE_TARGETS := $(addprefix $(extmod_prefix), $(single-no-ko)) build-dirs := $(foreach d, $(build-dirs), \ $(if $(filter $(d)/%, $(KBUILD_SINGLE_TARGETS)), $(d))) -endif +KBUILD_MODULES := 1 -ifndef CONFIG_MODULES -KBUILD_MODULES := endif # Handle descending into subdirectories listed in $(build-dirs)
arch/s390/kvm/intercept.c +24 -8
@@ -271,10 +271,18 @@ static int handle_prog(struct kvm_vcpu *vcpu)* handle_external_interrupt - used for external interruption interceptions * @vcpu: virtual cpu * -* This interception only occurs if the CPUSTAT_EXT_INT bit was set, or if -* the new PSW does not have external interrupts disabled. In the first case, -* we've got to deliver the interrupt manually, and in the second case, we -* drop to userspace to handle the situation there. +* This interception occurs if: +* - the CPUSTAT_EXT_INT bit was already set when the external interrupt +* occurred. In this case, the interrupt needs to be injected manually to +* preserve interrupt priority. +* - the external new PSW has external interrupts enabled, which will cause an +* interruption loop. We drop to userspace in this case. +* +* The latter case can be detected by inspecting the external mask bit in the +* external new psw. +* +* Under PV, only the latter case can occur, since interrupt priorities are +* handled in the ultravisor. */ static int handle_external_interrupt (struct kvm_vcpu *vcpu) {
@@ -285,10 +293,18 @@ static int handle_external_interrupt(struct kvm_vcpu *vcpu) vcpu->stat.exit_external_interrupt++; - rc =read_guest_lc (vcpu, __LC_EXT_NEW_PSW, &newpsw,sizeof (psw_t)); -if (rc) -return rc; -/* We can not handle clock comparator or timer interrupt with bad PSW */ +if (kvm_s390_pv_cpu_is_protected (vcpu)) { + newpsw = vcpu->arch.sie_block->gpsw; + }else { + rc =read_guest_lc (vcpu, __LC_EXT_NEW_PSW, &newpsw,sizeof (psw_t)); +if (rc) +return rc; + } + +/* +* Clock comparator or timer interrupt with external interrupt enabled +* will cause interrupt loop. Drop to userspace. +*/ if ((eic ==EXT_IRQ_CLK_COMP || eic ==EXT_IRQ_CPU_TIMER ) && (newpsw.mask &PSW_MASK_EXT ))return -EOPNOTSUPP ;
drivers/gpio/Kconfig +1 -1
@@ -100,7 +100,7 @@ config GPIO_GENERIC tristate config GPIO_REGMAP - depends on REGMAP + select REGMAP tristate # put drivers in the right section, in alphabetical order
drivers/gpio/gpio-davinci.c +1 -1
@@ -326,7 +326,7 @@ static struct irq_chip gpio_irqchip = { .irq_enable = gpio_irq_enable, .irq_disable = gpio_irq_disable, .irq_set_type = gpio_irq_type, - .flags = IRQCHIP_SET_TYPE_MASKED, + .flags = IRQCHIP_SET_TYPE_MASKED | IRQCHIP_SKIP_SET_WAKE, };static void gpio_irq_handler (struct irq_desc *desc)
drivers/gpu/drm/bridge/lontium-lt9611.c +1 -0
@@ -256,6 +256,7 @@ static int lt9611_pll_setup(struct lt9611 *lt9611, const struct drm_display_mode { 0x8126, 0x55 }, { 0x8127, 0x66 }, { 0x8128, 0x88 }, + { 0x812a, 0x20 }, };regmap_multi_reg_write (lt9611->regmap, reg_cfg,ARRAY_SIZE (reg_cfg));
drivers/gpu/drm/nouveau/dispnv50/disp.c +32 -0
@@ -411,6 +411,35 @@ nv50_outp_atomic_check_view(struct drm_encoder *encoder,return 0 ; } +static void +nv50_outp_atomic_fix_depth (struct drm_encoder *encoder,struct drm_crtc_state *crtc_state) +{ +struct nv50_head_atom *asyh =nv50_head_atom (crtc_state); +struct nouveau_encoder *nv_encoder =nouveau_encoder (encoder); +struct drm_display_mode *mode = &asyh->state.adjusted_mode; +unsigned int max_rate, mode_rate; + +switch (nv_encoder->dcb->type) { +case DCB_OUTPUT_DP : + max_rate = nv_encoder->dp.link_nr * nv_encoder->dp.link_bw; + +/* we don't support more than 10 anyway */ + asyh->or.bpc =min_t (u8, asyh->or.bpc,10 ); + +/* reduce the bpc until it works out */ +while (asyh->or.bpc >6 ) { + mode_rate =DIV_ROUND_UP (mode->clock * asyh->or.bpc *3 ,8 ); +if (mode_rate <= max_rate) +break ; + + asyh->or.bpc -=2 ; + } +break ; +default : +break ; + } +} + static int nv50_outp_atomic_check(struct drm_encoder *encoder, struct drm_crtc_state *crtc_state,
@@ -429,6 +458,9 @@ nv50_outp_atomic_check(struct drm_encoder *encoder,if (crtc_state->mode_changed || crtc_state->connectors_changed) asyh->or.bpc = connector->display_info.bpc; +/* We might have to reduce the bpc */ +nv50_outp_atomic_fix_depth (encoder, crtc_state); +return 0 ; }
drivers/gpu/drm/nouveau/nouveau_dp.c +5 -3
@@ -220,8 +220,6 @@ void nouveau_dp_irq(struct nouveau_drm *drm, }/* TODO: -* - Use the minimum possible BPC here, once we add support for the max bpc -* property. * - Validate against the DP caps advertised by the GPU (we don't check these * yet) */
@@ -233,7 +231,11 @@ nv50_dp_mode_valid(struct drm_connector *connector, {const unsigned int min_clock =25000 ;unsigned int max_rate, mode_rate, ds_max_dotclock, clock = mode->clock; -const u8 bpp = connector->display_info.bpc *3 ; +/* Check with the minmum bpc always, so we can advertise better modes. +* In particlar not doing this causes modes to be dropped on HDR +* displays as we might check with a bpc of 16 even. +*/ +const u8 bpp =6 *3 ;if (mode->flags &DRM_MODE_FLAG_INTERLACE && !outp->caps.dp_interlace)return MODE_NO_INTERLACE ;
drivers/gpu/drm/panfrost/panfrost_mmu.c +1 -0
@@ -469,6 +469,7 @@ static int panfrost_mmu_map_fault_addr(struct panfrost_device *pfdev, int as,if (IS_ERR (pages[i])) {mutex_unlock (&bo->base.pages_lock); ret =PTR_ERR (pages[i]); + pages[i] =NULL ; goto err_pages; } }
drivers/hv/connection.c +4 -0
@@ -315,6 +315,10 @@ void vmbus_disconnect(void)*/ struct vmbus_channel *relid2channel (u32 relid) { +if (vmbus_connection.channels ==NULL ) { +pr_warn_once ("relid2channel: relid=%d: No channels mapped!\n" , relid); +return NULL ; + }if (WARN_ON (relid >=MAX_CHANNEL_RELIDS ))return NULL ;return READ_ONCE (vmbus_connection.channels[relid]);
drivers/hwtracing/coresight/coresight-etm4x-core.c +10 -14
@@ -411,7 +411,7 @@ static int etm4_enable_hw(struct etmv4_drvdata *drvdata)if (etm4x_sspcicrn_present (drvdata, i))etm4x_relaxed_write32 (csa, config->ss_pe_cmp[i],TRCSSPCICRn (i)); } -for (i =0 ; i < drvdata->nr_addr_cmp; i++) { +for (i =0 ; i < drvdata->nr_addr_cmp *2 ; i++) {etm4x_relaxed_write64 (csa, config->addr_val[i],TRCACVRn (i));etm4x_relaxed_write64 (csa, config->addr_acc[i],TRCACATRn (i)); }
@@ -951,25 +951,21 @@ static bool etm4_init_iomem_access(struct etmv4_drvdata *drvdata, struct csdev_access *csa) {u32 devarch =readl_relaxed (drvdata->base +TRCDEVARCH ); -u32 idr1 =readl_relaxed (drvdata->base +TRCIDR1 );/* * All ETMs must implement TRCDEVARCH to indicate that -* the component is an ETMv4. To support any broken -* implementations we fall back to TRCIDR1 check, which -* is not really reliable. +* the component is an ETMv4. Even though TRCIDR1 also +* contains the information, it is part of the "Trace" +* register and must be accessed with the OSLK cleared, +* with MMIO. But we cannot touch the OSLK until we are +* sure this is an ETM. So rely only on the TRCDEVARCH. */ -if ((devarch &ETM_DEVARCH_ID_MASK ) == ETM_DEVARCH_ETMv4x_ARCH) { - drvdata->arch =etm_devarch_to_arch (devarch); - }else { -pr_warn ("CPU%d: ETM4x incompatible TRCDEVARCH: %x, falling back to TRCIDR1\n" , -smp_processor_id (), devarch); - -if (ETM_TRCIDR1_ARCH_MAJOR (idr1) != ETM_TRCIDR1_ARCH_ETMv4) -return false; - drvdata->arch =etm_trcidr_to_arch (idr1); +if ((devarch &ETM_DEVARCH_ID_MASK ) != ETM_DEVARCH_ETMv4x_ARCH) { +pr_warn_once ("TRCDEVARCH doesn't match ETMv4 architecture\n" ); +return false; } + drvdata->arch =etm_devarch_to_arch (devarch); *csa =CSDEV_ACCESS_IOMEM (drvdata->base);return true; }
drivers/hwtracing/coresight/coresight-etm4x.h +6 -14
@@ -669,14 +669,12 @@* TRCDEVARCH - CoreSight architected register * - Bits[15:12] - Major version * - Bits[19:16] - Minor version -* TRCIDR1 - ETM architected register -* - Bits[11:8] - Major version -* - Bits[7:4] - Minor version -* We must rely on TRCDEVARCH for the version information, -* however we don't want to break the support for potential -* old implementations which might not implement it. Thus -* we fall back to TRCIDR1 if TRCDEVARCH is not implemented -* for memory mapped components. +* +* We must rely only on TRCDEVARCH for the version information. Even though, +* TRCIDR1 also provides the architecture version, it is a "Trace" register +* and as such must be accessed only with Trace power domain ON. This may +* not be available at probe time. +* * Now to make certain decisions easier based on the version * we use an internal representation of the version in the * driver, as follows :
@@ -702,12 +700,6 @@ static inline u8 etm_devarch_to_arch(u32 devarch) ETM_DEVARCH_REVISION(devarch)); } -static inline u8 etm_trcidr_to_arch (u32 trcidr1) -{ -return ETM_ARCH_VERSION (ETM_TRCIDR1_ARCH_MAJOR (trcidr1), -ETM_TRCIDR1_ARCH_MINOR (trcidr1)); -} -enum etm_impdef_type {ETM4_IMPDEF_HISI_CORE_COMMIT ,ETM4_IMPDEF_FEATURE_MAX ,
drivers/iio/adc/ad7791.c +1 -1
@@ -253,7 +253,7 @@ static const struct ad_sigma_delta_info ad7791_sigma_delta_info = { .has_registers = true, .addr_shift = 4, .read_mask = BIT(3), - .irq_flags = IRQF_TRIGGER_LOW, + .irq_flags = IRQF_TRIGGER_FALLING, }; static int ad7791_read_raw(struct iio_dev *indio_dev,
drivers/iio/adc/ti-ads7950.c +1 -0
@@ -634,6 +634,7 @@ static int ti_ads7950_probe(struct spi_device *spi) st->chip.label =dev_name (&st->spi->dev); st->chip.parent = &st->spi->dev; st->chip.owner =THIS_MODULE ; + st->chip.can_sleep = true; st->chip.base =-1 ; st->chip.ngpio =TI_ADS7950_NUM_GPIOS ; st->chip.get_direction = ti_ads7950_get_direction;
drivers/iio/dac/cio-dac.c +2 -2
@@ -66,8 +66,8 @@ static int cio_dac_write_raw(struct iio_dev *indio_dev,if (mask !=IIO_CHAN_INFO_RAW )return -EINVAL ; -/* DAC can only accept up to a 16-bit value */ -if ((unsigned int )val >65535 ) +/* DAC can only accept up to a 12-bit value */ +if ((unsigned int )val >4095 )return -EINVAL ; priv->chan_out_states[chan->channel] = val;
drivers/iio/imu/Kconfig +1 -0
@@ -47,6 +47,7 @@ config ADIS16480 depends on SPI select IIO_ADIS_LIB select IIO_ADIS_LIB_BUFFER if IIO_BUFFER + select CRC32 help Say yes here to build support for Analog Devices ADIS16375, ADIS16480, ADIS16485, ADIS16488 inertial sensors.
drivers/iio/light/cm32181.c +12 -0
@@ -429,6 +429,14 @@ static const struct iio_info cm32181_info = { .attrs = &cm32181_attribute_group, }; +static void cm32181_unregister_dummy_client (void *data) +{ +struct i2c_client *client = data; + +/* Unregister the dummy client */ +i2c_unregister_device (client); +} +static int cm32181_probe (struct i2c_client *client) {struct device *dev = &client->dev;
@@ -458,6 +466,10 @@ static int cm32181_probe(struct i2c_client *client) client =i2c_acpi_new_device (dev,1 , &board_info);if (IS_ERR (client))return PTR_ERR (client); + + ret =devm_add_action_or_reset (dev, cm32181_unregister_dummy_client, client); +if (ret) +return ret; } cm32181 =iio_priv (indio_dev);
drivers/infiniband/hw/irdma/verbs.c +5 -10
@@ -2272,9 +2272,10 @@ static bool irdma_check_mr_contiguous(struct irdma_pble_alloc *palloc,* @rf: RDMA PCI function * @iwmr: mr pointer for this memory registration * @use_pbles: flag if to use pble's +* @lvl_1_only: request only level 1 pble if true */ static int irdma_setup_pbles (struct irdma_pci_f *rf,struct irdma_mr *iwmr, -bool use_pbles) +bool use_pbles,bool lvl_1_only) {struct irdma_pbl *iwpbl = &iwmr->iwpbl;struct irdma_pble_alloc *palloc = &iwpbl->pble_alloc;
@@ -2285,7 +2286,7 @@ static int irdma_setup_pbles(struct irdma_pci_f *rf, struct irdma_mr *iwmr,if (use_pbles) { status =irdma_get_pble (rf->pble_rsrc, palloc, iwmr->page_cnt, - false); + lvl_1_only);if (status)return -ENOMEM ;
@@ -2328,16 +2329,10 @@ static int irdma_handle_q_mem(struct irdma_device *iwdev,bool ret = true; pg_size = iwmr->page_size; - err =irdma_setup_pbles (iwdev->rf, iwmr, use_pbles); + err =irdma_setup_pbles (iwdev->rf, iwmr, use_pbles, true);if (err)return err; -if (use_pbles && palloc->level !=PBLE_LEVEL_1 ) { -irdma_free_pble (iwdev->rf->pble_rsrc, palloc); - iwpbl->pbl_allocated = false; -return -ENOMEM ; - } -if (use_pbles) arr = palloc->level1.addr;
@@ -2808,7 +2803,7 @@ static struct ib_mr *irdma_reg_user_mr(struct ib_pd *pd, u64 start, u64 len,case IRDMA_MEMREG_TYPE_MEM : use_pbles = (iwmr->page_cnt !=1 ); - err =irdma_setup_pbles (iwdev->rf, iwmr, use_pbles); + err =irdma_setup_pbles (iwdev->rf, iwmr, use_pbles, false);if (err) goto error;
drivers/net/dsa/mv88e6xxx/chip.c +1 -1
@@ -4967,7 +4967,7 @@ static const struct mv88e6xxx_ops mv88e6393x_ops = {* .port_set_upstream_port method. */ .set_egress_port = mv88e6393x_set_egress_port, - .watchdog_ops = &mv88e6390_watchdog_ops, + .watchdog_ops = &mv88e6393x_watchdog_ops, .mgmt_rsvd2cpu = mv88e6393x_port_mgmt_rsvd2cpu, .pot_clear = mv88e6xxx_g2_pot_clear, .reset = mv88e6352_g1_reset,
drivers/net/dsa/mv88e6xxx/global2.c +20 -0
@@ -931,6 +931,26 @@ const struct mv88e6xxx_irq_ops mv88e6390_watchdog_ops = { .irq_free = mv88e6390_watchdog_free, }; +static int mv88e6393x_watchdog_action (struct mv88e6xxx_chip *chip,int irq) +{ +mv88e6390_watchdog_action (chip, irq); + +/* Fix for clearing the force WD event bit. +* Unreleased erratum on mv88e6393x. +*/ +mv88e6xxx_g2_write (chip,MV88E6390_G2_WDOG_CTL , +MV88E6390_G2_WDOG_CTL_UPDATE | +MV88E6390_G2_WDOG_CTL_PTR_EVENT ); + +return IRQ_HANDLED ; +} + +const struct mv88e6xxx_irq_ops mv88e6393x_watchdog_ops = { + .irq_action = mv88e6393x_watchdog_action, + .irq_setup = mv88e6390_watchdog_setup, + .irq_free = mv88e6390_watchdog_free, +}; +static irqreturn_t mv88e6xxx_g2_watchdog_thread_fn (int irq,void *dev_id) {struct mv88e6xxx_chip *chip = dev_id;
drivers/net/dsa/mv88e6xxx/global2.h +1 -0
@@ -361,6 +361,7 @@ int mv88e6xxx_g2_device_mapping_write(struct mv88e6xxx_chip *chip, int target,extern const struct mv88e6xxx_irq_ops mv88e6097_watchdog_ops;extern const struct mv88e6xxx_irq_ops mv88e6250_watchdog_ops;extern const struct mv88e6xxx_irq_ops mv88e6390_watchdog_ops; +extern const struct mv88e6xxx_irq_ops mv88e6393x_watchdog_ops;extern const struct mv88e6xxx_avb_ops mv88e6165_avb_ops;extern const struct mv88e6xxx_avb_ops mv88e6352_avb_ops;
drivers/net/ethernet/google/gve/gve.h +2 -0
@@ -47,6 +47,8 @@#define GVE_RX_BUFFER_SIZE_DQO 2048 +#define GVE_GQ_TX_MIN_PKT_DESC_BYTES 182 +/* Each slot in the desc ring has a 1:1 mapping to a slot in the data ring */ struct gve_rx_desc_queue {struct gve_rx_desc *desc_ring;/* the descriptor ring */
drivers/net/ethernet/google/gve/gve_tx.c +5 -7
@@ -283,8 +283,8 @@ static inline int gve_skb_fifo_bytes_required(struct gve_tx_ring *tx,int bytes;int hlen; - hlen =skb_is_gso (skb) ?skb_checksum_start_offset (skb) + -tcp_hdrlen (skb) :skb_headlen (skb); + hlen =skb_is_gso (skb) ?skb_checksum_start_offset (skb) +tcp_hdrlen (skb) : +min_t (int,GVE_GQ_TX_MIN_PKT_DESC_BYTES , skb->len); pad_bytes =gve_tx_fifo_pad_alloc_one_frag (&tx->tx_fifo, hlen);
@@ -431,13 +431,11 @@ static int gve_tx_add_skb_copy(struct gve_priv *priv, struct gve_tx_ring *tx, st pkt_desc = &tx->desc[idx]; l4_hdr_offset =skb_checksum_start_offset (skb); -/* If the skb is gso, then we want the tcp header in the first segment -* otherwise we want the linear portion of the skb (which will contain -* the checksum because skb->csum_start and skb->csum_offset are given -* relative to skb->head) in the first segment. +/* If the skb is gso, then we want the tcp header alone in the first segment +* otherwise we want the minimum required by the gVNIC spec. */ hlen = is_gso ? l4_hdr_offset +tcp_hdrlen (skb) : -skb_headlen (skb); +min_t (int,GVE_GQ_TX_MIN_PKT_DESC_BYTES , skb->len); info->skb = skb;/* We don't want to split the header, so if necessary, pad to the end
drivers/net/ethernet/intel/iavf/iavf_main.c +11 -11
@@ -3103,7 +3103,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, }else {dev_err (&adapter->pdev->dev,"Bad ether dest mask %pM\n" , match.mask->dst); -return IAVF_ERR_CONFIG ; +return -EINVAL ; } }
@@ -3113,7 +3113,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, }else {dev_err (&adapter->pdev->dev,"Bad ether src mask %pM\n" , match.mask->src); -return IAVF_ERR_CONFIG ; +return -EINVAL ; } }
@@ -3148,7 +3148,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, }else {dev_err (&adapter->pdev->dev,"Bad vlan mask %u\n" , match.mask->vlan_id); -return IAVF_ERR_CONFIG ; +return -EINVAL ; } } vf->mask.tcp_spec.vlan_id |=cpu_to_be16 (0xffff );
@@ -3172,7 +3172,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, }else {dev_err (&adapter->pdev->dev,"Bad ip dst mask 0x%08x\n" ,be32_to_cpu (match.mask->dst)); -return IAVF_ERR_CONFIG ; +return -EINVAL ; } }
@@ -3181,14 +3181,14 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, field_flags |=IAVF_CLOUD_FIELD_IIP ; }else {dev_err (&adapter->pdev->dev,"Bad ip src mask 0x%08x\n" , -be32_to_cpu (match.mask->dst)); -return IAVF_ERR_CONFIG ; +be32_to_cpu (match.mask->src)); +return -EINVAL ; } }if (field_flags &IAVF_CLOUD_FIELD_TEN_ID ) {dev_info (&adapter->pdev->dev,"Tenant id not allowed for ip filter\n" ); -return IAVF_ERR_CONFIG ; +return -EINVAL ; }if (match.key->dst) { vf->mask.tcp_spec.dst_ip[0 ] |=cpu_to_be32 (0xffffffff );
@@ -3209,7 +3209,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter,if (ipv6_addr_any (&match.mask->dst)) {dev_err (&adapter->pdev->dev,"Bad ipv6 dst mask 0x%02x\n" ,IPV6_ADDR_ANY ); -return IAVF_ERR_CONFIG ; +return -EINVAL ; }/* src and dest IPv6 address should not be LOOPBACK
@@ -3219,7 +3219,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, ipv6_addr_loopback(&match.key->src)) {dev_err (&adapter->pdev->dev,"ipv6 addr should not be loopback\n" ); -return IAVF_ERR_CONFIG ; +return -EINVAL ; }if (!ipv6_addr_any (&match.mask->dst) || !ipv6_addr_any (&match.mask->src))
@@ -3244,7 +3244,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, }else {dev_err (&adapter->pdev->dev,"Bad src port mask %u\n" ,be16_to_cpu (match.mask->src)); -return IAVF_ERR_CONFIG ; +return -EINVAL ; } }
@@ -3254,7 +3254,7 @@ static int iavf_parse_cls_flower(struct iavf_adapter *adapter, }else {dev_err (&adapter->pdev->dev,"Bad dst port mask %u\n" ,be16_to_cpu (match.mask->dst)); -return IAVF_ERR_CONFIG ; +return -EINVAL ; } }if (match.key->dst) {
drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c +20 -3
@@ -731,6 +731,21 @@ static void ice_vc_fdir_rem_prof_all(struct ice_vf *vf) } } +/** +* ice_vc_fdir_reset_cnt_all - reset all FDIR counters for this VF FDIR +* @fdir: pointer to the VF FDIR structure +*/ +static void ice_vc_fdir_reset_cnt_all (struct ice_vf_fdir *fdir) +{ +enum ice_fltr_ptype flow; + +for (flow =ICE_FLTR_PTYPE_NONF_NONE ; + flow <ICE_FLTR_PTYPE_MAX ; flow++) { + fdir->fdir_fltr_cnt[flow][0 ] =0 ; + fdir->fdir_fltr_cnt[flow][1 ] =0 ; + } +} +/** * ice_vc_fdir_has_prof_conflict * @vf: pointer to the VF structure
@@ -2136,7 +2151,7 @@ int ice_vc_add_fdir_fltr(struct ice_vf *vf, u8 *msg) v_ret =VIRTCHNL_STATUS_SUCCESS ; stat->status =VIRTCHNL_FDIR_FAILURE_RULE_NORESOURCE ;dev_dbg (dev,"VF %d: set FDIR context failed\n" , vf->vf_id); - goto err_free_conf; + goto err_rem_entry; } ret =ice_vc_fdir_write_fltr (vf, conf, true, is_tun);
@@ -2145,15 +2160,16 @@ int ice_vc_add_fdir_fltr(struct ice_vf *vf, u8 *msg) stat->status =VIRTCHNL_FDIR_FAILURE_RULE_NORESOURCE ;dev_err (dev,"VF %d: writing FDIR rule failed, ret:%d\n" , vf->vf_id, ret); - goto err_rem_entry; + goto err_clr_irq; } exit:kfree (stat);return ret; -err_rem_entry: +err_clr_irq:ice_vc_fdir_clear_irq_ctx (vf); +err_rem_entry:ice_vc_fdir_remove_entry (vf, conf, conf->flow_id); err_free_conf:devm_kfree (dev, conf);
@@ -2262,6 +2278,7 @@ void ice_vf_fdir_init(struct ice_vf *vf)spin_lock_init (&fdir->ctx_lock); fdir->ctx_irq.flags =0 ; fdir->ctx_done.flags =0 ; +ice_vc_fdir_reset_cnt_all (fdir); }/**
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +5 -1
@@ -6893,7 +6893,7 @@ static void stmmac_napi_del(struct net_device *dev)int stmmac_reinit_queues (struct net_device *dev,u32 rx_cnt,u32 tx_cnt) {struct stmmac_priv *priv =netdev_priv (dev); -int ret =0 ; +int ret =0 , i;if (netif_running (dev))stmmac_release (dev);
@@ -6902,6 +6902,10 @@ int stmmac_reinit_queues(struct net_device *dev, u32 rx_cnt, u32 tx_cnt) priv->plat->rx_queues_to_use = rx_cnt; priv->plat->tx_queues_to_use = tx_cnt; +if (!netif_is_rxfh_configured (dev)) +for (i =0 ; i <ARRAY_SIZE (priv->rss.table); i++) + priv->rss.table[i] =ethtool_rxfh_indir_default (i, + rx_cnt);stmmac_napi_add (dev);
drivers/net/ethernet/ti/am65-cpsw-nuss.c +4 -2
@@ -2784,7 +2784,8 @@ static int am65_cpsw_nuss_probe(struct platform_device *pdev)return 0 ; err_of_clear: -of_platform_device_destroy (common->mdio_dev,NULL ); +if (common->mdio_dev) +of_platform_device_destroy (common->mdio_dev,NULL ); err_pm_clear:pm_runtime_put_sync (dev);pm_runtime_disable (dev);
@@ -2813,7 +2814,8 @@ static int am65_cpsw_nuss_remove(struct platform_device *pdev)*/ am65_cpsw_nuss_cleanup_ndev (common); -of_platform_device_destroy (common->mdio_dev,NULL ); +if (common->mdio_dev) +of_platform_device_destroy (common->mdio_dev,NULL );pm_runtime_put_sync (&pdev->dev);pm_runtime_disable (&pdev->dev);
drivers/platform/x86/intel/int3472/Makefile +4 -5
@@ -1,5 +1,4 @@ -obj-$(CONFIG_INTEL_SKL_INT3472) += intel_skl_int3472.o -intel_skl_int3472-y := intel_skl_int3472_common.o \ - intel_skl_int3472_discrete.o \ - intel_skl_int3472_tps68470.o \ - intel_skl_int3472_clk_and_regulator.o +obj-$(CONFIG_INTEL_SKL_INT3472) += intel_skl_int3472_discrete.o \ + intel_skl_int3472_tps68470.o +intel_skl_int3472_discrete-y := discrete.o clk_and_regulator.o common.o +intel_skl_int3472_tps68470-y := tps68470.o common.o
drivers/platform/x86/intel/int3472/clk_and_regulator.c new file +210 -0
210 lines not on this page · raw message
drivers/platform/x86/intel/int3472/common.c new file +54 -0
54 lines not on this page · raw message
drivers/platform/x86/intel/int3472/common.h new file +119 -0
119 lines not on this page · raw message
drivers/platform/x86/intel/int3472/discrete.c new file +439 -0
439 lines not on this page · raw message
drivers/platform/x86/intel/int3472/intel_skl_int3472_clk_and_regulator.c deleted +0 -207
207 lines not on this page · raw message
drivers/platform/x86/intel/int3472/intel_skl_int3472_common.c deleted +0 -106
106 lines not on this page · raw message
drivers/platform/x86/intel/int3472/intel_skl_int3472_common.h deleted +0 -122
122 lines not on this page · raw message
drivers/platform/x86/intel/int3472/intel_skl_int3472_discrete.c deleted +0 -413
413 lines not on this page · raw message
drivers/platform/x86/intel/int3472/intel_skl_int3472_tps68470.c deleted +0 -137
137 lines not on this page · raw message
drivers/platform/x86/intel/int3472/tps68470.c new file +156 -0
156 lines not on this page · raw message
drivers/platform/x86/think-lmi.c +13 -7
@@ -504,7 +504,7 @@ static ssize_t display_name_show(struct kobject *kobj, struct kobj_attribute *atstatic ssize_t current_value_show (struct kobject *kobj,struct kobj_attribute *attr,char *buf) {struct tlmi_attr_setting *setting =to_tlmi_attr_setting (kobj); -char *item, *value; +char *item, *value, *p;int ret; ret =tlmi_setting (setting->index, &item,LENOVO_BIOS_SETTING_GUID );
@@ -514,10 +514,15 @@ static ssize_t current_value_show(struct kobject *kobj, struct kobj_attribute *a/* validate and split from `item,value` -> `value` */ value =strpbrk (item,"," );if (!value || value == item || !strlen (value +1 )) -return -EINVAL ; - - ret =sysfs_emit (buf,"%s\n" , value +1 ); + ret = -EINVAL ; +else { +/* On Workstations remove the Options part after the value */ + p =strchrnul (value,';' ); + *p ='\0' ; + ret =sysfs_emit (buf,"%s\n" , value +1 ); + }kfree (item); +return ret; }
@@ -950,10 +955,10 @@ static int tlmi_analyze(void)* name string. * Try and pull that out if it's available. */ -char *item, *optstart, *optend; +char *optitem, *optstart, *optend; -if (!tlmi_setting (setting->index, &item,LENOVO_BIOS_SETTING_GUID )) { - optstart =strstr (item,"[Optional:" ); +if (!tlmi_setting (setting->index, &optitem,LENOVO_BIOS_SETTING_GUID )) { + optstart =strstr (optitem,"[Optional:" );if (optstart) { optstart +=strlen ("[Optional:" ); optend =strstr (optstart,"]" );
@@ -962,6 +967,7 @@ static int tlmi_analyze(void)kstrndup (optstart, optend - optstart,GFP_KERNEL ); } +kfree (optitem); } }/*
drivers/pwm/pwm-cros-ec.c +1 -0
@@ -157,6 +157,7 @@ static void cros_ec_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, state->enabled = (ret >0 ); state->period =EC_PWM_MAX_DUTY ; + state->polarity =PWM_POLARITY_NORMAL ;/* * Note that "disabled" and "duty cycle == 0" are treated the same. If
drivers/pwm/pwm-sprd.c +1 -0
@@ -109,6 +109,7 @@ static void sprd_pwm_get_state(struct pwm_chip *chip, struct pwm_device *pwm, duty = val &SPRD_PWM_DUTY_MSK ; tmp = (prescale +1 ) *NSEC_PER_SEC * duty; state->duty_cycle =DIV_ROUND_CLOSEST_ULL (tmp, chn->clk_rate); + state->polarity =PWM_POLARITY_NORMAL ;/* Disable PWM clocks if the PWM channel is not in enable state. */ if (!state->enabled)
drivers/scsi/iscsi_tcp.c +1 -2
@@ -767,13 +767,12 @@ static int iscsi_sw_tcp_conn_set_param(struct iscsi_cls_conn *cls_conn,iscsi_set_param (cls_conn, param, buf, buflen);break ;case ISCSI_PARAM_DATADGST_EN : -iscsi_set_param (cls_conn, param, buf, buflen); -mutex_lock (&tcp_sw_conn->sock_lock);if (!tcp_sw_conn->sock) {mutex_unlock (&tcp_sw_conn->sock_lock);return -ENOTCONN ; } +iscsi_set_param (cls_conn, param, buf, buflen); tcp_sw_conn->sendpage = conn->datadgst_en ? sock_no_sendpage : tcp_sw_conn->sock->ops->sendpage;mutex_unlock (&tcp_sw_conn->sock_lock);
drivers/scsi/qla2xxx/qla_os.c +1 -0
@@ -3573,6 +3573,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id) probe_failed:qla_enode_stop (base_vha);qla_edb_stop (base_vha); +vfree (base_vha->scan.l);if (base_vha->gnl.l) {dma_free_coherent (&ha->pdev->dev, base_vha->gnl.size, base_vha->gnl.l, base_vha->gnl.ldma);
drivers/tty/serial/8250/8250_exar.c +27 -24
81 lines not on this page · raw message
drivers/tty/serial/fsl_lpuart.c +7 -1
@@ -829,11 +829,17 @@ static unsigned int lpuart32_tx_empty(struct uart_port *port) struct lpuart_port, port);unsigned long stat =lpuart32_read (port,UARTSTAT );unsigned long sfifo =lpuart32_read (port,UARTFIFO ); +unsigned long ctrl =lpuart32_read (port,UARTCTRL );if (sport->dma_tx_in_progress)return 0 ; -if (stat &UARTSTAT_TC && sfifo &UARTFIFO_TXEMPT ) +/* +* LPUART Transmission Complete Flag may never be set while queuing a break +* character, so avoid checking for transmission complete when UARTCTRL_SBK +* is asserted. +*/ +if ((stat &UARTSTAT_TC && sfifo &UARTFIFO_TXEMPT ) || ctrl &UARTCTRL_SBK )return TIOCSER_TEMT ;return 0 ;
drivers/tty/serial/sh-sci.c +9 -1
@@ -31,6 +31,7 @@#include <linux/ioport.h> #include <linux/ktime.h> #include <linux/major.h> +#include <linux/minmax.h> #include <linux/module.h> #include <linux/mm.h> #include <linux/of.h>
@@ -2895,6 +2896,13 @@ static int sci_init_single(struct platform_device *dev, sci_port->irqs[i] =platform_get_irq (dev, i); } +/* +* The fourth interrupt on SCI port is transmit end interrupt, so +* shuffle the interrupts. +*/ +if (p->type ==PORT_SCI ) +swap (sci_port->irqs[SCIx_BRI_IRQ], sci_port->irqs[SCIx_TEI_IRQ]); +/* The SCI generates several interrupts. They can be muxed together or * connected to different interrupt lines. In the muxed case only one * interrupt resource is specified as there is only one interrupt ID.
@@ -2960,7 +2968,7 @@ static int sci_init_single(struct platform_device *dev, port->flags =UPF_FIXED_PORT |UPF_BOOT_AUTOCONF | p->flags; port->fifosize = sci_port->params->fifosize; -if (port->type ==PORT_SCI ) { +if (port->type ==PORT_SCI && !dev->dev.of_node) {if (sci_port->reg_size >=0x20 ) port->regshift =2 ;else
drivers/usb/cdns3/cdnsp-ep0.c +1 -2
@@ -414,7 +414,7 @@ static int cdnsp_ep0_std_request(struct cdnsp_device *pdev,void cdnsp_setup_analyze (struct cdnsp_device *pdev) {struct usb_ctrlrequest *ctrl = &pdev->setup; -int ret =0 ; +int ret = -EINVAL ;u16 len;trace_cdnsp_ctrl_req (ctrl);
@@ -424,7 +424,6 @@ void cdnsp_setup_analyze(struct cdnsp_device *pdev)if (pdev->gadget.state ==USB_STATE_NOTATTACHED ) {dev_err (pdev->dev,"ERR: Setup detected in unattached state\n" ); - ret = -EINVAL ; goto out; }
drivers/usb/dwc3/dwc3-pci.c +4 -0
@@ -47,6 +47,7 @@#define PCI_DEVICE_ID_INTEL_RPLS 0x7a61#define PCI_DEVICE_ID_INTEL_MTLM 0x7eb1#define PCI_DEVICE_ID_INTEL_MTLP 0x7ec1 +#define PCI_DEVICE_ID_INTEL_MTLS 0x7f6f#define PCI_DEVICE_ID_INTEL_MTL 0x7e7e#define PCI_DEVICE_ID_INTEL_TGL 0x9a15#define PCI_DEVICE_ID_AMD_MR 0x163a
@@ -434,6 +435,9 @@ static const struct pci_device_id dwc3_pci_id_table[] = { {PCI_VDEVICE (INTEL ,PCI_DEVICE_ID_INTEL_MTLP ), (kernel_ulong_t) &dwc3_pci_intel_swnode, }, + { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTLS), + (kernel_ulong_t) &dwc3_pci_intel_swnode, }, + { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_MTL), (kernel_ulong_t) &dwc3_pci_intel_swnode, },
drivers/usb/host/xhci-tegra.c +3 -3
@@ -1225,6 +1225,9 @@ static void tegra_xhci_id_work(struct work_struct *work)mutex_unlock (&tegra->lock); + tegra->otg_usb3_port =tegra_xusb_padctl_get_usb3_companion (tegra->padctl, + tegra->otg_usb2_port); +if (tegra->host_mode) {/* switch to host mode */ if (tegra->otg_usb3_port >=0 ) {
@@ -1339,9 +1342,6 @@ static int tegra_xhci_id_notify(struct notifier_block *nb, } tegra->otg_usb2_port =tegra_xusb_get_usb2_port (tegra, usbphy); - tegra->otg_usb3_port =tegra_xusb_padctl_get_usb3_companion ( - tegra->padctl, - tegra->otg_usb2_port); tegra->host_mode = (usbphy->last_event ==USB_EVENT_ID ) ? true : false;
drivers/usb/host/xhci.c +5 -1
@@ -9,6 +9,7 @@*/ #include <linux/pci.h> +#include <linux/iommu.h> #include <linux/iopoll.h> #include <linux/irq.h> #include <linux/log2.h>
@@ -225,6 +226,7 @@ int xhci_reset(struct xhci_hcd *xhci, u64 timeout_us)static void xhci_zero_64b_regs (struct xhci_hcd *xhci) {struct device *dev =xhci_to_hcd (xhci)->self.sysdev; +struct iommu_domain *domain;int err, i;u64 val;u32 intrs;
@@ -243,7 +245,9 @@ static void xhci_zero_64b_regs(struct xhci_hcd *xhci)* an iommu. Doing anything when there is no iommu is definitely * unsafe... */ -if (!(xhci->quirks &XHCI_ZERO_64B_REGS ) || !device_iommu_mapped (dev)) + domain =iommu_get_domain_for_dev (dev); +if (!(xhci->quirks &XHCI_ZERO_64B_REGS ) || !domain || + domain->type ==IOMMU_DOMAIN_IDENTITY )return ;xhci_info (xhci,"Zeroing 64bit base registers, expecting fault\n" );
drivers/usb/serial/cp210x.c +1 -0
@@ -120,6 +120,7 @@ static const struct usb_device_id id_table[] = { { USB_DEVICE(0x10C4, 0x826B) }, /* Cygnal Integrated Products, Inc., Fasttrax GPS demonstration module */ { USB_DEVICE(0x10C4, 0x8281) }, /* Nanotec Plug & Drive */ { USB_DEVICE(0x10C4, 0x8293) }, /* Telegesis ETRX2USB */ + { USB_DEVICE(0x10C4, 0x82AA) }, /* Silicon Labs IFS-USB-DATACABLE used with Quint UPS */ { USB_DEVICE(0x10C4, 0x82EF) }, /* CESINEL FALCO 6105 AC Power Supply */ { USB_DEVICE(0x10C4, 0x82F1) }, /* CESINEL MEDCAL EFD Earth Fault Detector */ { USB_DEVICE(0x10C4, 0x82F2) }, /* CESINEL MEDCAL ST Network Analyzer */
drivers/usb/serial/option.c +10 -0
@@ -1198,6 +1198,8 @@ static const struct usb_device_id option_ids[] = { { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM520N, 0xff, 0xff, 0x30) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM520N, 0xff, 0, 0x40) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_RM520N, 0xff, 0, 0) }, + { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, 0x0900, 0xff, 0, 0), /* RM500U-CN */ + .driver_info = ZLP }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200U, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200S_CN, 0xff, 0, 0) }, { USB_DEVICE_AND_INTERFACE_INFO(QUECTEL_VENDOR_ID, QUECTEL_PRODUCT_EC200T, 0xff, 0, 0) },
@@ -1300,6 +1302,14 @@ static const struct usb_device_id option_ids[] = { .driver_info = NCTRL(0) | RSVD(1) }, { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1075, 0xff), /* Telit FN990 (PCIe) */ .driver_info = RSVD(0) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1080, 0xff), /* Telit FE990 (rmnet) */ + .driver_info = NCTRL(0) | RSVD(1) | RSVD(2) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1081, 0xff), /* Telit FE990 (MBIM) */ + .driver_info = NCTRL(0) | RSVD(1) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1082, 0xff), /* Telit FE990 (RNDIS) */ + .driver_info = NCTRL(2) | RSVD(3) }, + { USB_DEVICE_INTERFACE_CLASS(TELIT_VENDOR_ID, 0x1083, 0xff), /* Telit FE990 (ECM) */ + .driver_info = NCTRL(0) | RSVD(1) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_ME910), .driver_info = NCTRL(0) | RSVD(1) | RSVD(3) }, { USB_DEVICE(TELIT_VENDOR_ID, TELIT_PRODUCT_ME910_DUAL_MODEM),
drivers/usb/typec/altmodes/displayport.c +5 -1
@@ -101,8 +101,12 @@ static int dp_altmode_configure(struct dp_altmode *dp, u8 con)if (dp->data.status &DP_STATUS_PREFER_MULTI_FUNC && pin_assign &DP_PIN_ASSIGN_MULTI_FUNC_MASK ) pin_assign &=DP_PIN_ASSIGN_MULTI_FUNC_MASK ; -else if (pin_assign &DP_PIN_ASSIGN_DP_ONLY_MASK ) +else if (pin_assign &DP_PIN_ASSIGN_DP_ONLY_MASK ) { pin_assign &=DP_PIN_ASSIGN_DP_ONLY_MASK ; +/* Default to pin assign C if available */ +if (pin_assign &BIT (DP_PIN_ASSIGN_C )) + pin_assign =BIT (DP_PIN_ASSIGN_C ); + }if (!pin_assign)return -EINVAL ;
fs/cifs/cifsfs.c +1 -0
@@ -682,6 +682,7 @@ cifs_show_options(struct seq_file *s, struct dentry *root)seq_printf (s,",acdirmax=%lu" , cifs_sb->ctx->acdirmax /HZ );seq_printf (s,",acregmax=%lu" , cifs_sb->ctx->acregmax /HZ ); } +seq_printf (s,",closetimeo=%lu" , cifs_sb->ctx->closetimeo /HZ );if (tcon->ses->chan_max >1 ) seq_printf(s, ",multichannel,max_channels=%zu",
fs/cifs/connect.c +2 -0
@@ -2436,6 +2436,8 @@ compare_mount_options(struct super_block *sb, struct cifs_mnt_data *mnt_data)return 0 ;if (old->ctx->acdirmax != new->ctx->acdirmax)return 0 ; +if (old->ctx->closetimeo != new->ctx->closetimeo) +return 0 ;return 1 ; }
fs/cifs/file.c +2 -2
@@ -897,12 +897,12 @@ int cifs_close(struct inode *inode, struct file *file)* So, Increase the ref count to avoid use-after-free. */ if (!mod_delayed_work (deferredclose_wq, - &cfile->deferred, cifs_sb->ctx->acregmax)) + &cfile->deferred, cifs_sb->ctx->closetimeo))cifsFileInfo_get (cfile); }else {/* Deferred close for files */ queue_delayed_work (deferredclose_wq, - &cfile->deferred, cifs_sb->ctx->acregmax); + &cfile->deferred, cifs_sb->ctx->closetimeo); cfile->deferred_close_scheduled = true;spin_unlock (&cinode->deferred_lock);return 0 ;
fs/cifs/fs_context.c +16 -6
@@ -143,6 +143,7 @@ const struct fs_parameter_spec smb3_fs_parameters[] = {fsparam_u32 ("actimeo" , Opt_actimeo),fsparam_u32 ("acdirmax" , Opt_acdirmax),fsparam_u32 ("acregmax" , Opt_acregmax), +fsparam_u32 ("closetimeo" , Opt_closetimeo),fsparam_u32 ("echo_interval" , Opt_echo_interval),fsparam_u32 ("max_credits" , Opt_max_credits), fsparam_u32("handletimeout", Opt_handletimeout),
@@ -436,13 +437,14 @@ int smb3_parse_opt(const char *options, const char *key, char **val)* but there are some bugs that prevent rename from working if there are * multiple delimiters. * -* Returns a sanitized duplicate of @path. The caller is responsible for -* cleaning up the original. +* Returns a sanitized duplicate of @path. @gfp indicates the GFP_* flags +* for kstrdup. +* The caller is responsible for freeing the original. */ #define IS_DELIM (c) ((c) == '/' || (c) == '\\') -static char *sanitize_path (char *path) +char *cifs_sanitize_prepath (char *prepath,gfp_t gfp) { -char *cursor1 = path, *cursor2 = path; +char *cursor1 = prepath, *cursor2 = prepath;/* skip all prepended delimiters */ while (IS_DELIM (*cursor1))
@@ -464,7 +466,7 @@ static char *sanitize_path(char *path) cursor2--; *(cursor2) ='\0' ; -return kstrdup (path,GFP_KERNEL ); +return kstrdup (prepath, gfp); }/*
@@ -526,7 +528,7 @@ smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx)if (!*pos)return 0 ; - ctx->prepath =sanitize_path (pos); + ctx->prepath =cifs_sanitize_prepath (pos,GFP_KERNEL );if (!ctx->prepath)return -ENOMEM ;
@@ -1058,6 +1060,13 @@ static int smb3_fs_context_parse_param(struct fs_context *fc, } ctx->acdirmax = ctx->acregmax =HZ * result.uint_32;break ; +case Opt_closetimeo:
Lines of this file are not shown. View the raw message.
fs/ocfs2/super.c +59 -49
108 lines not on this page · raw message
net/qrtr/af_qrtr.c new file +1323 -0
1,323 lines not on this page · raw message
net/qrtr/qrtr.c deleted +0 -1321
1,321 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.