Linux 5.4.264
Greg Kroah-Hartman
maintainerI'm announcing the release of the 5.4.264 kernel.
All users of the 5.4 kernel series must upgrade.
The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.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
------------
Makefile | 2 arch/arm/boot/dts/imx6qdl.dtsi | 2 arch/arm/boot/dts/imx6sl.dtsi | 2 arch/arm/boot/dts/imx6sx.dtsi | 2 arch/arm/boot/dts/imx6ul.dtsi | 4 arch/arm/boot/dts/imx7s.dtsi | 16 arch/arm/mach-imx/mmdc.c | 7 arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts | 2 arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts | 2 arch/arm64/boot/dts/mediatek/mt8173-evb.dts | 4 arch/s390/mm/pgtable.c | 2 arch/x86/kernel/cpu/amd.c | 3 drivers/acpi/arm64/iort.c | 26 drivers/base/devcoredump.c | 86 +++ drivers/gpio/gpiolib-sysfs.c | 15 drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | 2 drivers/hwmon/acpi_power_meter.c | 4 drivers/infiniband/hw/bnxt_re/main.c | 2 drivers/iommu/of_iommu.c | 4 drivers/mmc/core/regulator.c | 41 + drivers/mmc/host/sdhci-sprd.c | 25 drivers/net/arcnet/arc-rimi.c | 4 drivers/net/arcnet/arcdevice.h | 8 drivers/net/arcnet/arcnet.c | 66 ++ drivers/net/arcnet/com20020-isa.c | 4 drivers/net/arcnet/com20020-pci.c | 119 ++-- drivers/net/arcnet/com20020_cs.c | 2 drivers/net/arcnet/com90io.c | 4 drivers/net/arcnet/com90xx.c | 4 drivers/net/ethernet/broadcom/tg3.c | 42 + drivers/net/ethernet/broadcom/tg3.h | 4 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c | 29 + drivers/net/hyperv/Kconfig | 1 drivers/of/base.c | 404 ++++++++------- drivers/of/dynamic.c | 22 drivers/of/fdt.c | 17 drivers/of/irq.c | 46 - drivers/of/overlay.c | 16 drivers/of/platform.c | 10 drivers/of/property.c | 66 +- drivers/parport/parport_pc.c | 21 drivers/pci/msi.c | 9 drivers/scsi/be2iscsi/be_main.c | 1 drivers/tty/serial/8250/8250_early.c | 1 drivers/tty/serial/amba-pl011.c | 112 ++-- drivers/tty/serial/sc16is7xx.c | 12 drivers/usb/gadget/function/f_hid.c | 7 drivers/usb/typec/class.c | 5 fs/btrfs/disk-io.c | 1 fs/btrfs/super.c | 5 fs/cifs/cifsfs.c | 4 fs/cifs/smb2ops.c | 2 fs/io_uring.c | 101 --- fs/nilfs2/sufile.c | 42 + fs/nilfs2/the_nilfs.c | 6 include/linux/acpi_iort.h | 13 include/linux/cpuhotplug.h | 1 include/linux/hrtimer.h | 4 include/linux/mmc/host.h | 3 include/linux/of.h | 75 +- include/linux/of_irq.h | 13 include/linux/perf_event.h | 2 include/net/genetlink.h | 3 include/uapi/linux/perf_event.h | 5 kernel/cpu.c | 8 kernel/events/core.c | 80 ++ kernel/events/ring_buffer.c | 5 kernel/time/hrtimer.c | 33 - kernel/trace/trace.c | 38 - net/core/drop_monitor.c | 4 net/core/filter.c | 19 net/core/scm.c | 6 net/ipv4/ip_gre.c | 11 net/ipv4/tcp_input.c | 6 net/ipv6/ip6_fib.c | 6 net/netfilter/ipset/ip_set_core.c | 14 net/netfilter/xt_owner.c | 16 net/netlink/af_netlink.c | 4 net/netlink/genetlink.c | 35 + net/packet/af_packet.c | 16 net/packet/internal.h | 2 net/psample/psample.c | 3 scripts/kconfig/symbol.c | 14 sound/core/pcm.c | 1 sound/soc/codecs/wm_adsp.c | 8 tools/include/uapi/linux/perf_event.h | 5 86 files changed, 1192 insertions(+), 711 deletions(-)
Ahmed S. Darwish (1):
net: arcnet: Fix RESET flag handling
Alex Pakhunov (2):
tg3: Move the [rt]x_dropped counters to tg3_napi
tg3: Increment tx_dropped in tg3_tso_bug()
AngeloGioacchino Del Regno (1):
arm64: dts: mediatek: mt8173-evb: Fix regulator-fixed node names
Anson Huang (1):
ARM: dts: imx: make gpt node name generic
Armin Wolf (1):
hwmon: (acpi_power_meter) Fix 4.29 MW bug
Arnd Bergmann (1):
ARM: PL011: Fix DMA support
Boerge Struempfel (1):
gpiolib: sysfs: Fix error handling on failed export
Borislav Petkov (AMD) (1):
x86/CPU/AMD: Check vendor in the AMD microcode callback
Cameron Williams (1):
parport: Add support for Brainboxes IX/UC/PX parallel cards
Claudio Imbrenda (1):
KVM: s390/mm: Properly reset no-dat
Daniel Borkmann (1):
packet: Move reference count in packet_sock to atomic_long_t
Daniel Mack (1):
serial: sc16is7xx: address RX timeout interrupt errata
David Howells (1):
cifs: Fix non-availability of dedup breaking generic/304
Diana Craciun (1):
of/irq: make of_msi_map_get_device_domain() bus agnostic
Dinghao Liu (2):
ASoC: wm_adsp: fix memleak in wm_adsp_buffer_populate
scsi: be2iscsi: Fix a memleak in beiscsi_init_wrb_handle()
Eric Dumazet (2):
ipv6: fix potential NULL deref in fib6_add()
tcp: do not accept ACK of bytes we never sent
Eugen Hristev (1):
arm64: dts: mediatek: mt7622: fix memory node warning check
Greg Kroah-Hartman (2):
Revert "btrfs: add dmesg output for first mount and last unmount of a filesystem" Linux 5.4.264
Heiner Kallweit (1):
mmc: core: add helpers mmc_regulator_enable/disable_vqmmc
Ido Schimmel (4):
netlink: don't call ->netlink_bind with table lock held
genetlink: add CAP_NET_ADMIN test for multicast bind
psample: Require 'CAP_NET_ADMIN' when joining "packets" group
drop_monitor: Require 'CAP_SYS_ADMIN' when joining "events" group
Jason Zhang (1):
ALSA: pcm: fix out-of-bounds in snd_pcm_state_names
John Fastabend (1):
bpf: sockmap, updating the sg structure should also update curr
Jozsef Kadlecsik (1):
netfilter: ipset: fix race condition between swap/destroy and kernel side add/del/test
Kalesh AP (1):
RDMA/bnxt_re: Correct module description string
Konstantin Aladyshev (1):
usb: gadget: f_hid: fix report descriptor allocation
Kunwu Chan (1):
ARM: imx: Check return value of devm_kasprintf in imx_mmdc_perf_init
Lee Jones (1):
of: base: Fix some formatting issues and provide missing descriptions
Lorenzo Pieralisi (4):
ACPI/IORT: Make iort_get_device_domain IRQ domain agnostic ACPI/IORT: Make iort_msi_map_rid() PCI agnostic of/iommu: Make of_map_rid() PCI agnostic
of/irq: Make of_msi_map_rid() PCI bus agnostic
Luca Ceresoli (1):
of: dynamic: Fix of_reconfig_get_state_change() return value documentation
Masahiro Yamada (1):
kconfig: fix memory leak from range properties
Mukesh Ojha (2):
devcoredump : Serialize devcd_del work
devcoredump: Send uevent once devcd is ready
Namhyung Kim (2):
perf/core: Add a new read format to get a number of lost samples tools headers UAPI: Sync linux/perf_event.h with the kernel sources
Paulo Alcantara (1):
smb: client: fix potential NULL deref in parse_dfs_referrals()
Pavel Begunkov (1):
io_uring/af_unix: disable sending io_uring over sockets
Peter Zijlstra (1):
perf: Fix perf_event_validate_size()
Petr Pavlu (3):
tracing: Fix a warning when allocating buffered events fails
tracing: Fix incomplete locking when disabling buffered events
tracing: Fix a possible race when disabling buffered events
Phil Sutter (1):
netfilter: xt_owner: Fix for unsafe access of sk->sk_socket
Philipp Zabel (1):
ARM: dts: imx7: Declare timers compatible with fsl,imx6dl-gpt
RD Babiera (1):
usb: typec: class: fix typec_altmode_put_partner to put plugs
Randy Dunlap (1):
hv_netvsc: rndis_filter needs to select NLS
Rob Herring (2):
of: Fix kerneldoc output formatting
of: Add missing 'Return' section in kerneldoc comments
Ronald Wahl (1):
serial: 8250_omap: Add earlycon support for the AM654 UART controller
Ryusuke Konishi (2):
nilfs2: prevent WARNING in nilfs_sufile_set_segment_usage()
nilfs2: fix missing error check for sb_set_blocksize call
Shigeru Yoshida (1):
ipv4: ip_gre: Avoid skb_pull() failure in ipgre_xmit()
Steven Rostedt (Google) (1):
tracing: Always update snapshot buffer size
Thomas Gleixner (1):
hrtimers: Push pending hrtimers away from outgoing CPU earlier
Thomas Reichinger (1):
arcnet: restoring support for multiple Sohard Arcnet cards
Tong Zhang (1):
net: arcnet: com20020 fix error handling
Ulf Hansson (1):
of: base: Add of_get_cpu_state_node() to get idle states for a CPU node
Wenchao Chen (1):
mmc: sdhci-sprd: Fix vqmmc not shutting down after the card was pulled
Yonglong Liu (1):
net: hns: fix fake link up on xge port
YuanShang (1):
drm/amdgpu: correct chunk_ptr to a pointer to chunk.
Greg Kroah-Hartman
maintainerMakefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0 VERSION = 5 PATCHLEVEL = 4 -SUBLEVEL = 263 +SUBLEVEL = 264 EXTRAVERSION = NAME = Kleptomaniac Octopus
arch/arm/boot/dts/imx6qdl.dtsi +1 -1
@@ -578,7 +578,7 @@ status = "disabled"; }; - gpt: gpt@2098000 { + gpt: timer@2098000 { compatible = "fsl,imx6q-gpt", "fsl,imx31-gpt"; reg = <0x02098000 0x4000>; interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/imx6sl.dtsi +1 -1
@@ -386,7 +386,7 @@ clock-names = "ipg", "per"; }; - gpt: gpt@2098000 { + gpt: timer@2098000 { compatible = "fsl,imx6sl-gpt"; reg = <0x02098000 0x4000>; interrupts = <0 55 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/imx6sx.dtsi +1 -1
@@ -475,7 +475,7 @@ status = "disabled"; }; - gpt: gpt@2098000 { + gpt: timer@2098000 { compatible = "fsl,imx6sx-gpt", "fsl,imx6dl-gpt"; reg = <0x02098000 0x4000>; interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/imx6ul.dtsi +2 -2
@@ -433,7 +433,7 @@ status = "disabled"; }; - gpt1: gpt@2098000 { + gpt1: timer@2098000 { compatible = "fsl,imx6ul-gpt", "fsl,imx6sx-gpt"; reg = <0x02098000 0x4000>; interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
@@ -707,7 +707,7 @@ reg = <0x020e4000 0x4000>; }; - gpt2: gpt@20e8000 { + gpt2: timer@20e8000 { compatible = "fsl,imx6ul-gpt", "fsl,imx6sx-gpt"; reg = <0x020e8000 0x4000>; interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
arch/arm/boot/dts/imx7s.dtsi +8 -8
@@ -446,8 +446,8 @@ fsl,input-sel = <&iomuxc>; }; - gpt1: gpt@302d0000 { - compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; + gpt1: timer@302d0000 { + compatible = "fsl,imx7d-gpt", "fsl,imx6dl-gpt"; reg = <0x302d0000 0x10000>; interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX7D_GPT1_ROOT_CLK>,
@@ -455,8 +455,8 @@ clock-names = "ipg", "per"; }; - gpt2: gpt@302e0000 { - compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; + gpt2: timer@302e0000 { + compatible = "fsl,imx7d-gpt", "fsl,imx6dl-gpt"; reg = <0x302e0000 0x10000>; interrupts = <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX7D_GPT2_ROOT_CLK>,
@@ -465,8 +465,8 @@ status = "disabled"; }; - gpt3: gpt@302f0000 { - compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; + gpt3: timer@302f0000 { + compatible = "fsl,imx7d-gpt", "fsl,imx6dl-gpt"; reg = <0x302f0000 0x10000>; interrupts = <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX7D_GPT3_ROOT_CLK>,
@@ -475,8 +475,8 @@ status = "disabled"; }; - gpt4: gpt@30300000 { - compatible = "fsl,imx7d-gpt", "fsl,imx6sx-gpt"; + gpt4: timer@30300000 { + compatible = "fsl,imx7d-gpt", "fsl,imx6dl-gpt"; reg = <0x30300000 0x10000>; interrupts = <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>; clocks = <&clks IMX7D_GPT4_ROOT_CLK>,
arch/arm/mach-imx/mmdc.c +6 -1
@@ -502,6 +502,10 @@ static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_b name =devm_kasprintf (&pdev->dev,GFP_KERNEL ,"mmdc%d" , ret); +if (!name) { + ret = -ENOMEM ; + goto pmu_release_id; + } pmu_mmdc->mmdc_ipg_clk = mmdc_ipg_clk; pmu_mmdc->devtype_data = (struct fsl_mmdc_devtype_data *)of_id->data;
@@ -524,9 +528,10 @@ static int imx_mmdc_perf_init(struct platform_device *pdev, void __iomem *mmdc_b pmu_register_err:pr_warn ("MMDC Perf PMU failed (%d), disabled\n" , ret); -ida_simple_remove (&mmdc_ida, pmu_mmdc->id);cpuhp_state_remove_instance_nocalls (cpuhp_mmdc_state, &pmu_mmdc->node);hrtimer_cancel (&pmu_mmdc->hrtimer); +pmu_release_id: +ida_simple_remove (&mmdc_ida, pmu_mmdc->id); pmu_free:kfree (pmu_mmdc);return ret;
arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts +1 -1
@@ -69,7 +69,7 @@ }; }; - memory { + memory@40000000 { reg = <0 0x40000000 0 0x40000000>; };
arch/arm64/boot/dts/mediatek/mt7622-rfb1.dts +1 -1
@@ -55,7 +55,7 @@ }; }; - memory { + memory@40000000 { reg = <0 0x40000000 0 0x20000000>; };
arch/arm64/boot/dts/mediatek/mt8173-evb.dts +2 -2
@@ -43,7 +43,7 @@ id-gpio = <&pio 16 GPIO_ACTIVE_HIGH>; }; - usb_p1_vbus: regulator@0 { + usb_p1_vbus: regulator-usb-p1 { compatible = "regulator-fixed"; regulator-name = "usb_vbus"; regulator-min-microvolt = <5000000>;
@@ -52,7 +52,7 @@ enable-active-high; }; - usb_p0_vbus: regulator@1 { + usb_p0_vbus: regulator-usb-p0 { compatible = "regulator-fixed"; regulator-name = "vbus"; regulator-min-microvolt = <5000000>;
arch/s390/mm/pgtable.c +1 -1
@@ -699,7 +699,7 @@ void ptep_zap_unused(struct mm_struct *mm, unsigned long addr,pte_clear (mm, addr, ptep); }if (reset) -pgste_val (pgste) &= ~_PGSTE_GPS_USAGE_MASK; +pgste_val (pgste) &= ~(_PGSTE_GPS_USAGE_MASK | _PGSTE_GPS_NODAT);pgste_set_unlock (ptep, pgste);preempt_enable (); }
arch/x86/kernel/cpu/amd.c +3 -0
@@ -1248,5 +1248,8 @@ static void zenbleed_check_cpu(void *unused)void amd_check_microcode (void ) { +if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD ) +return ; +on_each_cpu (zenbleed_check_cpu,NULL ,1 ); }
drivers/acpi/arm64/iort.c +13 -13
@@ -503,7 +503,6 @@ static struct acpi_iort_node *iort_find_dev_node(struct device *dev) node =iort_get_iort_node (dev->fwnode);if (node)return node; -/* * if not, then it should be a platform device defined in * DSDT/SSDT (with Named Component node in IORT)
@@ -522,22 +521,22 @@ static struct acpi_iort_node *iort_find_dev_node(struct device *dev) }/** -* iort_msi_map_rid() - Map a MSI requester ID for a device +* iort_msi_map_id() - Map a MSI input ID for a device * @dev: The device for which the mapping is to be done. -* @req_id: The device requester ID. +* @input_id: The device input ID. * -* Returns: mapped MSI RID on success, input requester ID otherwise +* Returns: mapped MSI ID on success, input ID otherwise */ -u32 iort_msi_map_rid (struct device *dev,u32 req_id) +u32 iort_msi_map_id (struct device *dev,u32 input_id) {struct acpi_iort_node *node;u32 dev_id; node =iort_find_dev_node (dev);if (!node) -return req_id; +return input_id; -iort_node_map_id (node, req_id, &dev_id,IORT_MSI_TYPE ); +iort_node_map_id (node, input_id, &dev_id,IORT_MSI_TYPE );return dev_id; }
@@ -594,13 +593,13 @@ static int __maybe_unused iort_find_its_base(u32 its_id, phys_addr_t *base)/** * iort_dev_find_its_id() - Find the ITS identifier for a device * @dev: The device. -* @req_id: Device's requester ID +* @id: Device's ID * @idx: Index of the ITS identifier list. * @its_id: ITS identifier. * * Returns: 0 on success, appropriate error value otherwise */ -static int iort_dev_find_its_id (struct device *dev,u32 req_id, +static int iort_dev_find_its_id (struct device *dev,u32 id,unsigned int idx,int *its_id) {struct acpi_iort_its_group *its;
@@ -610,7 +609,7 @@ static int iort_dev_find_its_id(struct device *dev, u32 req_id,if (!node)return -ENXIO ; - node =iort_node_map_id (node, req_id,NULL ,IORT_MSI_TYPE ); + node =iort_node_map_id (node, id,NULL ,IORT_MSI_TYPE );if (!node)return -ENXIO ;
@@ -633,19 +632,20 @@ static int iort_dev_find_its_id(struct device *dev, u32 req_id,* * Returns: the MSI domain for this device, NULL otherwise */ -struct irq_domain *iort_get_device_domain (struct device *dev,u32 req_id) +struct irq_domain *iort_get_device_domain (struct device *dev,u32 id, +enum irq_domain_bus_token bus_token) {struct fwnode_handle *handle;int its_id; -if (iort_dev_find_its_id (dev, req_id,0 , &its_id)) +if (iort_dev_find_its_id (dev, id,0 , &its_id))return NULL ; handle =iort_find_domain_token (its_id);if (!handle)return NULL ; -return irq_find_matching_fwnode (handle,DOMAIN_BUS_PCI_MSI ); +return irq_find_matching_fwnode (handle, bus_token); } static void iort_set_device_domain(struct device *dev,
drivers/base/devcoredump.c +84 -2
135 lines not on this page · raw message
drivers/gpio/gpiolib-sysfs.c +9 -6
@@ -490,14 +490,17 @@ static ssize_t export_store(struct class *class, } status =gpiod_set_transitory (desc, false); -if (!status) { - status =gpiod_export (desc, true); -if (status <0 ) -gpiod_free (desc); -else -set_bit (FLAG_SYSFS , &desc->flags); +if (status) { +gpiod_free (desc); + goto done; } + status =gpiod_export (desc, true); +if (status <0 ) +gpiod_free (desc); +else +set_bit (FLAG_SYSFS , &desc->flags); + done:if (status)pr_debug ("%s: status %d\n" , __func__, status);
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c +1 -1
@@ -141,7 +141,7 @@ static int amdgpu_cs_parser_init(struct amdgpu_cs_parser *p, union drm_amdgpu_cs }for (i =0 ; i < p->nchunks; i++) { -struct drm_amdgpu_cs_chunk __user **chunk_ptr =NULL ; +struct drm_amdgpu_cs_chunk __user *chunk_ptr =NULL ;struct drm_amdgpu_cs_chunk user_chunk;uint32_t __user *cdata;
drivers/hwmon/acpi_power_meter.c +4 -0
@@ -32,6 +32,7 @@ ACPI_MODULE_NAME(ACPI_POWER_METER_NAME);#define POWER_METER_CAN_NOTIFY (1 << 3)#define POWER_METER_IS_BATTERY (1 << 8)#define UNKNOWN_HYSTERESIS 0xFFFFFFFF +#define UNKNOWN_POWER 0xFFFFFFFF#define METER_NOTIFY_CONFIG 0x80#define METER_NOTIFY_TRIP 0x81
@@ -343,6 +344,9 @@ static ssize_t show_power(struct device *dev,update_meter (resource);mutex_unlock (&resource->lock); +if (resource->power ==UNKNOWN_POWER ) +return -ENODATA ; +return sprintf (buf,"%llu\n" , resource->power *1000 ); }
drivers/infiniband/hw/bnxt_re/main.c +1 -1
@@ -70,7 +70,7 @@ static char version[] =BNXT_RE_DESC "\n" ;MODULE_AUTHOR ("Eddie Wai <[email protected]>" ); -MODULE_DESCRIPTION (BNXT_RE_DESC " Driver" ); +MODULE_DESCRIPTION (BNXT_RE_DESC );MODULE_LICENSE ("Dual BSD/GPL" );/* globals */
drivers/iommu/of_iommu.c +2 -2
@@ -121,7 +121,7 @@ static int of_pci_iommu_init(struct pci_dev *pdev, u16 alias, void *data)struct of_phandle_args iommu_spec = { .args_count =1 };int err; - err =of_map_rid (info->np, alias,"iommu-map" ,"iommu-map-mask" , + err =of_map_id (info->np, alias,"iommu-map" ,"iommu-map-mask" , &iommu_spec.np, iommu_spec.args);if (err)return err == -ENODEV ?NO_IOMMU : err;
@@ -137,7 +137,7 @@ static int of_fsl_mc_iommu_init(struct fsl_mc_device *mc_dev,struct of_phandle_args iommu_spec = { .args_count =1 };int err; - err =of_map_rid (master_np, mc_dev->icid,"iommu-map" , + err =of_map_id (master_np, mc_dev->icid,"iommu-map" ,"iommu-map-mask" , &iommu_spec.np, iommu_spec.args);if (err)
drivers/mmc/core/regulator.c +41 -0
44 lines not on this page · raw message
drivers/mmc/host/sdhci-sprd.c +25 -0
@@ -381,12 +381,33 @@ static unsigned int sdhci_sprd_get_ro(struct sdhci_host *host)return 0 ; } +static void sdhci_sprd_set_power (struct sdhci_host *host,unsigned char mode, +unsigned short vdd) +{ +struct mmc_host *mmc = host->mmc; + +switch (mode) { +case MMC_POWER_OFF : +mmc_regulator_set_ocr (host->mmc, mmc->supply.vmmc,0 ); + +mmc_regulator_disable_vqmmc (mmc); +break ; +case MMC_POWER_ON : +mmc_regulator_enable_vqmmc (mmc); +break ; +case MMC_POWER_UP : +mmc_regulator_set_ocr (host->mmc, mmc->supply.vmmc, vdd); +break ; + } +} +static struct sdhci_ops sdhci_sprd_ops = { .read_l = sdhci_sprd_readl, .write_l = sdhci_sprd_writel, .write_w = sdhci_sprd_writew, .write_b = sdhci_sprd_writeb, .set_clock = sdhci_sprd_set_clock, + .set_power = sdhci_sprd_set_power, .get_max_clock = sdhci_sprd_get_max_clock, .get_min_clock = sdhci_sprd_get_min_clock, .set_bus_width = sdhci_set_bus_width,
@@ -630,6 +651,10 @@ static int sdhci_sprd_probe(struct platform_device *pdev) host->caps1 &= ~(SDHCI_SUPPORT_SDR50 |SDHCI_SUPPORT_SDR104 |SDHCI_SUPPORT_DDR50 ); + ret =mmc_regulator_get_supply (host->mmc); +if (ret) + goto pm_runtime_disable; + ret =sdhci_setup_host (host);if (ret) goto pm_runtime_disable;
drivers/net/arcnet/arc-rimi.c +2 -2
@@ -332,7 +332,7 @@ static int __init arc_rimi_init(void) dev->irq =9 ;if (arcrimi_probe (dev)) { -free_netdev (dev); +free_arcdev (dev);return -EIO ; }
@@ -349,7 +349,7 @@ static void __exit arc_rimi_exit(void)iounmap (lp->mem_start);release_mem_region (dev->mem_start, dev->mem_end - dev->mem_start +1 );free_irq (dev->irq, dev); -free_netdev (dev); +free_arcdev (dev); }#ifndef MODULE
drivers/net/arcnet/arcdevice.h +8 -0
@@ -186,6 +186,8 @@ do { \#define ARC_IS_5MBIT 1/* card default speed is 5MBit */ #define ARC_CAN_10MBIT 2/* card uses COM20022, supporting 10MBit, but default is 2.5MBit. */ +#define ARC_HAS_LED 4/* card has software controlled LEDs */ +#define ARC_HAS_ROTARY 8/* card has rotary encoder */ /* information needed to define an encapsulation driver */ struct ArcProto {
@@ -298,6 +300,10 @@ struct arcnet_local {int excnak_pending;/* We just got an excesive nak interrupt */ +/* RESET flag handling */ +int reset_in_progress; +struct work_struct reset_work; +struct {uint16_t sequence;/* sequence number (incs with each packet) */ __be16 aborted_seq;
@@ -350,7 +356,9 @@ void arcnet_dump_skb(struct net_device *dev, struct sk_buff *skb, char *desc)void arcnet_unregister_proto (struct ArcProto *proto);irqreturn_t arcnet_interrupt (int irq,void *dev_id); +struct net_device *alloc_arcdev (const char *name); +void free_arcdev (struct net_device *dev);int arcnet_open (struct net_device *dev);int arcnet_close (struct net_device *dev);
drivers/net/arcnet/arcnet.c +62 -4
113 lines not on this page · raw message
drivers/net/arcnet/com20020-isa.c +2 -2
@@ -169,7 +169,7 @@ static int __init com20020_init(void) dev->irq =9 ;if (com20020isa_probe (dev)) { -free_netdev (dev); +free_arcdev (dev);return -EIO ; }
@@ -182,7 +182,7 @@ static void __exit com20020_exit(void)unregister_netdev (my_dev);free_irq (my_dev->irq, my_dev);release_region (my_dev->base_addr,ARCNET_TOTAL_SIZE ); -free_netdev (my_dev); +free_arcdev (my_dev); }#ifndef MODULE
drivers/net/arcnet/com20020-pci.c +63 -56
200 lines not on this page · raw message
drivers/net/arcnet/com20020_cs.c +1 -1
@@ -177,7 +177,7 @@ static void com20020_detach(struct pcmcia_device *link) dev = info->dev;if (dev) {dev_dbg (&link->dev,"kfree...\n" ); -free_netdev (dev); +free_arcdev (dev); }dev_dbg (&link->dev,"kfree2...\n" );kfree (info);
drivers/net/arcnet/com90io.c +2 -2
@@ -396,7 +396,7 @@ static int __init com90io_init(void) err =com90io_probe (dev);if (err) { -free_netdev (dev); +free_arcdev (dev);return err; }
@@ -419,7 +419,7 @@ static void __exit com90io_exit(void)free_irq (dev->irq, dev);release_region (dev->base_addr,ARCNET_TOTAL_SIZE ); -free_netdev (dev); +free_arcdev (dev); }module_init (com90io_init)
drivers/net/arcnet/com90xx.c +2 -2
@@ -554,7 +554,7 @@ static int __init com90xx_found(int ioaddr, int airq, u_long shmem, err_release_mem:release_mem_region (dev->mem_start, dev->mem_end - dev->mem_start +1 ); err_free_dev: -free_netdev (dev); +free_arcdev (dev);return -EIO ; }
@@ -672,7 +672,7 @@ static void __exit com90xx_exit(void)release_region (dev->base_addr,ARCNET_TOTAL_SIZE );release_mem_region (dev->mem_start, dev->mem_end - dev->mem_start +1 ); -free_netdev (dev); +free_arcdev (dev); } }
drivers/net/ethernet/broadcom/tg3.c +36 -6
85 lines not on this page · raw message
drivers/net/ethernet/broadcom/tg3.h +2 -2
@@ -3018,6 +3018,7 @@ struct tg3_napi {u16 *rx_rcb_prod_idx;struct tg3_rx_prodring_set prodring;struct tg3_rx_buffer_desc *rx_rcb; +unsigned long rx_dropped;u32 tx_prod____cacheline_aligned ;u32 tx_cons;
@@ -3026,6 +3027,7 @@ struct tg3_napi {u32 prodmbox;struct tg3_tx_buffer_desc *tx_ring;struct tg3_tx_ring_info *tx_buffers; +unsigned long tx_dropped;dma_addr_t status_mapping;dma_addr_t rx_rcb_mapping;
@@ -3219,8 +3221,6 @@ struct tg3 {/* begin "everything else" cacheline(s) section */ -unsigned long rx_dropped; -unsigned long tx_dropped;struct rtnl_link_stats64 net_stats_prev;struct tg3_ethtool_stats estats_prev;
drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c +29 -0
@@ -66,6 +66,27 @@ static enum mac_mode hns_get_enet_interface(const struct hns_mac_cb *mac_cb) } } +static u32 hns_mac_link_anti_shake (struct mac_driver *mac_ctrl_drv) +{ +#define HNS_MAC_LINK_WAIT_TIME 5 +#define HNS_MAC_LINK_WAIT_CNT 40 + +u32 link_status =0 ; +int i; + +if (!mac_ctrl_drv->get_link_status) +return link_status; + +for (i =0 ; i <HNS_MAC_LINK_WAIT_CNT ; i++) { +msleep (HNS_MAC_LINK_WAIT_TIME ); + mac_ctrl_drv->get_link_status (mac_ctrl_drv, &link_status); +if (!link_status) +break ; + } + +return link_status; +} +void hns_mac_get_link_status (struct hns_mac_cb *mac_cb,u32 *link_status) {struct mac_driver *mac_ctrl_drv;
@@ -83,6 +104,14 @@ void hns_mac_get_link_status(struct hns_mac_cb *mac_cb, u32 *link_status) &sfp_prsnt);if (!ret) *link_status = *link_status && sfp_prsnt; + +/* for FIBER port, it may have a fake link up. +* when the link status changes from down to up, we need to do +* anti-shake. the anti-shake time is base on tests. +* only FIBER port need to do this. +*/ +if (*link_status && !mac_cb->link) + *link_status =hns_mac_link_anti_shake (mac_ctrl_drv); } mac_cb->link = *link_status;
drivers/net/hyperv/Kconfig +1 -0
@@ -3,5 +3,6 @@ config HYPERV_NET tristate "Microsoft Hyper-V virtual network driver" depends on HYPERV select UCS2_STRING + select NLS help Select this option to enable the Hyper-V virtual network driver.
drivers/of/base.c +224 -180
728 lines not on this page · raw message
drivers/of/dynamic.c +14 -8
@@ -27,7 +27,7 @@ static struct device_node *kobj_to_device_node(struct kobject *kobj)* @node: Node to inc refcount, NULL is supported to simplify writing of * callers * -* Returns node. +* Return: The node with refcount incremented. */ struct device_node *of_node_get (struct device_node *node) {
@@ -104,8 +104,10 @@ int of_reconfig_notify(unsigned long action, struct of_reconfig_data *p)* @arg - argument of the of notifier * * Returns the new state of a device based on the notifier used. -* Returns 0 on device going from enabled to disabled, 1 on device -* going from disabled to enabled and -1 on no change. +* +* Return: OF_RECONFIG_CHANGE_REMOVE on device going from enabled to +* disabled, OF_RECONFIG_CHANGE_ADD on device going from disabled to +* enabled and OF_RECONFIG_NO_CHANGE on no change. */ int of_reconfig_get_state_change (unsigned long action,struct of_reconfig_data *pr) {
@@ -372,7 +374,8 @@ void of_node_release(struct kobject *kobj)* property structure and the property name & contents. The property's * flags have the OF_DYNAMIC bit set so that we can differentiate between * dynamically allocated properties and not. -* Returns the newly allocated property or NULL on out of memory error. +* +* Return: The newly allocated property or NULL on out of memory error. */ struct property *__of_prop_dup (const struct property *prop,gfp_t allocflags) {
@@ -415,7 +418,7 @@ struct property *__of_prop_dup(const struct property *prop, gfp_t allocflags)* another node. The node data are dynamically allocated and all the node * flags have the OF_DYNAMIC & OF_DETACHED bits set. * -* Returns the newly allocated node or NULL on out of memory error. +* Return: The newly allocated node or NULL on out of memory error. */ struct device_node *__of_node_dup (const struct device_node *np,const char *full_name)
@@ -781,7 +784,8 @@ static int __of_changeset_apply(struct of_changeset *ocs)* Any side-effects of live tree state changes are applied here on * success, like creation/destruction of devices and side-effects * like creation of sysfs properties and directories. -* Returns 0 on success, a negative error value in case of an error. +* +* Return: 0 on success, a negative error value in case of an error. * On error the partially applied effects are reverted. */ int of_changeset_apply (struct of_changeset *ocs)
@@ -875,7 +879,8 @@ static int __of_changeset_revert(struct of_changeset *ocs)* was before the application. * Any side-effects like creation/destruction of devices and * removal of sysfs properties and directories are applied. -* Returns 0 on success, a negative error value in case of an error. +* +* Return: 0 on success, a negative error value in case of an error. */ int of_changeset_revert (struct of_changeset *ocs) {
@@ -903,7 +908,8 @@ EXPORT_SYMBOL_GPL(of_changeset_revert);* + OF_RECONFIG_ADD_PROPERTY * + OF_RECONFIG_REMOVE_PROPERTY, * + OF_RECONFIG_UPDATE_PROPERTY -* Returns 0 on success, a negative error value in case of an error. +* +* Return: 0 on success, a negative error value in case of an error. */ int of_changeset_action (struct of_changeset *ocs,unsigned long action,struct device_node *np,struct property *prop)
drivers/of/fdt.c +8 -9
@@ -282,7 +282,7 @@ static void reverse_nodes(struct device_node *parent)* @dad: Parent struct device_node * @nodepp: The device_node tree created by the call * -* It returns the size of unflattened device tree or error code +* Return: The size of unflattened device tree or error code */ static int unflatten_dt_nodes(const void *blob, void *mem,
@@ -349,11 +349,6 @@ static int unflatten_dt_nodes(const void *blob,/** * __unflatten_device_tree - create tree of device_nodes from flat blob -* -* unflattens a device-tree, creating the -* tree of struct device_node. It also fills the "name" and "type" -* pointers of the nodes so the normal device-tree walking functions -* can be used. * @blob: The blob to expand * @dad: Parent device node * @mynodes: The device_node tree created by the call
@@ -361,7 +356,11 @@ static int unflatten_dt_nodes(const void *blob,* for the resulting tree * @detached: if true set OF_DETACHED on @mynodes * -* Returns NULL on failure or the memory chunk containing the unflattened +* unflattens a device-tree, creating the tree of struct device_node. It also +* fills the "name" and "type" pointers of the nodes so the normal device-tree +* walking functions can be used. +* +* Return: NULL on failure or the memory chunk containing the unflattened * device tree on success. */ void *__unflatten_device_tree(const void *blob,
@@ -442,7 +441,7 @@ static DEFINE_MUTEX(of_fdt_unflatten_mutex);* pointers of the nodes so the normal device-tree walking functions * can be used. * -* Returns NULL on failure or the memory chunk containing the unflattened +* Return: NULL on failure or the memory chunk containing the unflattened * device tree on success. */ void *of_fdt_unflatten_tree(const unsigned long *blob,
@@ -720,7 +719,7 @@ const void *__init of_get_flat_dt_prop(unsigned long node, const char *name,* @node: node to test * @compat: compatible string to compare with compatible list. * -* On match, returns a non-zero value with smaller values returned for more +* Return: a non-zero value on match with smaller values returned for more * specific compatible values. */ static int of_fdt_is_compatible(const void *blob,
drivers/of/irq.c +24 -22
121 lines not on this page · raw message
drivers/of/overlay.c +8 -8
@@ -296,7 +296,7 @@ static struct property *dup_and_fixup_symbol_prop(* * Update of property in symbols node is not allowed. * -* Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if +* Return: 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if * invalid @overlay. */ static int add_changeset_property(struct overlay_changeset *ovcs,
@@ -401,7 +401,7 @@ static int add_changeset_property(struct overlay_changeset *ovcs,* * NOTE_2: Multiple mods of created nodes not supported. * -* Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if +* Return: 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if * invalid @overlay. */ static int add_changeset_node(struct overlay_changeset *ovcs,
@@ -473,7 +473,7 @@ static int add_changeset_node(struct overlay_changeset *ovcs,* * Do not allow symbols node to have any children. * -* Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if +* Return: 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if * invalid @overlay_node. */ static int build_changeset_next_level(struct overlay_changeset *ovcs,
@@ -604,7 +604,7 @@ static int find_dup_cset_prop(struct overlay_changeset *ovcs,* the same node or duplicate {add, delete, or update} properties entries * for the same property. * -* Returns 0 on success, or -EINVAL if duplicate changeset entry found. +* Return: 0 on success, or -EINVAL if duplicate changeset entry found. */ static int changeset_dup_entry_check (struct overlay_changeset *ovcs) {
@@ -628,7 +628,7 @@ static int changeset_dup_entry_check(struct overlay_changeset *ovcs)* any portions of the changeset that were successfully created will remain * in @ovcs->cset. * -* Returns 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if +* Return: 0 on success, -ENOMEM if memory allocation failure, or -EINVAL if * invalid overlay in @ovcs->fragments[]. */ static int build_changeset (struct overlay_changeset *ovcs)
@@ -724,7 +724,7 @@ static struct device_node *find_target(struct device_node *info_node)* the top level of @tree. The relevant top level nodes are the fragment * nodes and the __symbols__ node. Any other top level node will be ignored. * -* Returns 0 on success, -ENOMEM if memory allocation failure, -EINVAL if error +* Return: 0 on success, -ENOMEM if memory allocation failure, -EINVAL if error * detected in @tree, or -ENOSPC if idr_alloc() error. */ static int init_overlay_changeset(struct overlay_changeset *ovcs,
@@ -1180,7 +1180,7 @@ static int overlay_removal_is_ok(struct overlay_changeset *remove_ovcs)* If an error is returned by an overlay changeset post-remove notifier * then no further overlay changeset post-remove notifier will be called. * -* Returns 0 on success, or a negative error number. *ovcs_id is set to +* Return: 0 on success, or a negative error number. *ovcs_id is set to * zero after reverting the changeset, even if a subsequent error occurs. */ int of_overlay_remove (int *ovcs_id)
@@ -1267,7 +1267,7 @@ EXPORT_SYMBOL_GPL(of_overlay_remove);* * Removes all overlays from the system in the correct order. * -* Returns 0 on success, or a negative error number +* Return: 0 on success, or a negative error number */ int of_overlay_remove_all (void ) {
drivers/of/platform.c +5 -5
@@ -44,7 +44,7 @@ static const struct of_device_id of_skipped_node_table[] = {* Takes a reference to the embedded struct device which needs to be dropped * after use. * -* Returns platform_device pointer, or NULL if not found +* Return: platform_device pointer, or NULL if not found */ struct platform_device *of_find_device_by_node (struct device_node *np) {
@@ -160,7 +160,7 @@ EXPORT_SYMBOL(of_device_alloc);* @platform_data: pointer to populate platform_data pointer with * @parent: Linux device model parent device. * -* Returns pointer to created platform device, or NULL if a device was not +* Return: Pointer to created platform device, or NULL if a device was not * registered. Unavailable devices will not get registered. */ static struct platform_device *of_platform_device_create_pdata(
@@ -204,7 +204,7 @@ static struct platform_device *of_platform_device_create_pdata(* @bus_id: name to assign device * @parent: Linux device model parent device. * -* Returns pointer to created platform device, or NULL if a device was not +* Return: Pointer to created platform device, or NULL if a device was not * registered. Unavailable devices will not get registered. */ struct platform_device *of_platform_device_create(struct device_node *np,
@@ -463,7 +463,7 @@ EXPORT_SYMBOL(of_platform_bus_probe);* New board support should be using this function instead of * of_platform_bus_probe(). * -* Returns 0 on success, < 0 on failure. +* Return: 0 on success, < 0 on failure. */ int of_platform_populate(struct device_node *root, const struct of_device_id *matches,
@@ -594,7 +594,7 @@ static void devm_of_platform_populate_release(struct device *dev, void *res)* Similar to of_platform_populate(), but will automatically call * of_platform_depopulate() when the device is unbound from the bus. * -* Returns 0 on success, < 0 on failure. +* Return: 0 on success, < 0 on failure. */ int devm_of_platform_populate (struct device *dev) {
drivers/of/property.c +42 -24
142 lines not on this page · raw message
drivers/parport/parport_pc.c +21 -0
@@ -2648,6 +2648,8 @@ enum parport_pc_pci_cards { netmos_9865, quatech_sppxp100, wch_ch382l, + brainboxes_uc146, + brainboxes_px203, };
@@ -2711,6 +2713,8 @@ static struct parport_pc_pci { /* netmos_9865 */ { 1, { { 0, -1 }, } }, /* quatech_sppxp100 */ { 1, { { 0, 1 }, } }, /* wch_ch382l */ { 1, { { 2, -1 }, } }, + /* brainboxes_uc146 */ { 1, { { 3, -1 }, } }, + /* brainboxes_px203 */ { 1, { { 0, -1 }, } }, }; static const struct pci_device_id parport_pc_pci_tbl[] = {
@@ -2802,6 +2806,23 @@ static const struct pci_device_id parport_pc_pci_tbl[] = { PCI_ANY_ID, PCI_ANY_ID, 0, 0, quatech_sppxp100 }, /* WCH CH382L PCI-E single parallel port card */ { 0x1c00, 0x3050, 0x1c00, 0x3050, 0, 0, wch_ch382l }, +/* Brainboxes IX-500/550 */ + { PCI_VENDOR_ID_INTASHIELD, 0x402a, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport }, +/* Brainboxes UC-146/UC-157 */ + { PCI_VENDOR_ID_INTASHIELD, 0x0be1, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc146 }, + { PCI_VENDOR_ID_INTASHIELD, 0x0be2, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_uc146 }, +/* Brainboxes PX-146/PX-257 */ + { PCI_VENDOR_ID_INTASHIELD, 0x401c, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport }, +/* Brainboxes PX-203 */ + { PCI_VENDOR_ID_INTASHIELD, 0x4007, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, brainboxes_px203 }, +/* Brainboxes PX-475 */ + { PCI_VENDOR_ID_INTASHIELD, 0x401f, + PCI_ANY_ID, PCI_ANY_ID, 0, 0, oxsemi_pcie_pport }, { 0, } /* terminate list */ };MODULE_DEVICE_TABLE (pci, parport_pc_pci_tbl);
drivers/pci/msi.c +5 -4
@@ -1603,8 +1603,8 @@ u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev)pci_for_each_dma_alias (pdev, get_msi_id_cb, &rid); of_node =irq_domain_get_of_node (domain); - rid = of_node ?of_msi_map_rid (&pdev->dev, of_node, rid) : -iort_msi_map_rid (&pdev->dev, rid); + rid = of_node ?of_msi_map_id (&pdev->dev, of_node, rid) : +iort_msi_map_id (&pdev->dev, rid);return rid; }
@@ -1624,9 +1624,10 @@ struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev)u32 rid =pci_dev_id (pdev);pci_for_each_dma_alias (pdev, get_msi_id_cb, &rid); - dom =of_msi_map_get_device_domain (&pdev->dev, rid); + dom =of_msi_map_get_device_domain (&pdev->dev, rid,DOMAIN_BUS_PCI_MSI );if (!dom) - dom =iort_get_device_domain (&pdev->dev, rid); + dom =iort_get_device_domain (&pdev->dev, rid, +DOMAIN_BUS_PCI_MSI ); return dom; }#endif /* CONFIG_PCI_MSI_IRQ_DOMAIN */
drivers/scsi/be2iscsi/be_main.c +1 -0
@@ -2694,6 +2694,7 @@ static int beiscsi_init_wrb_handle(struct beiscsi_hba *phba)kfree (pwrb_context->pwrb_handle_base);kfree (pwrb_context->pwrb_handle_basestd); } +kfree (phwi_ctxt->be_wrbq);return -ENOMEM ; }
drivers/tty/serial/8250/8250_early.c +1 -0
@@ -176,6 +176,7 @@ static int __init early_omap8250_setup(struct earlycon_device *device,OF_EARLYCON_DECLARE (omap8250,"ti,omap2-uart" , early_omap8250_setup);OF_EARLYCON_DECLARE (omap8250,"ti,omap3-uart" , early_omap8250_setup);OF_EARLYCON_DECLARE (omap8250,"ti,omap4-uart" , early_omap8250_setup); +OF_EARLYCON_DECLARE (omap8250,"ti,am654-uart" , early_omap8250_setup);#endif
drivers/tty/serial/amba-pl011.c +54 -58
276 lines not on this page · raw message
drivers/tty/serial/sc16is7xx.c +12 -0
@@ -694,6 +694,18 @@ static bool sc16is7xx_port_irq(struct sc16is7xx_port *s, int portno)case SC16IS7XX_IIR_RTOI_SRC :case SC16IS7XX_IIR_XOFFI_SRC : rxlen =sc16is7xx_port_read (port,SC16IS7XX_RXLVL_REG ); + +/* +* There is a silicon bug that makes the chip report a +* time-out interrupt but no data in the FIFO. This is +* described in errata section 18.1.4. +* +* When this happens, read one byte from the FIFO to +* clear the interrupt. +*/ +if (iir ==SC16IS7XX_IIR_RTOI_SRC && !rxlen) + rxlen =1 ; +if (rxlen)sc16is7xx_handle_rx (port, rxlen, iir);break ;
drivers/usb/gadget/function/f_hid.c +4 -3
@@ -88,6 +88,7 @@ static void hidg_release(struct device *dev) { struct f_hidg *hidg = container_of(dev, struct f_hidg, dev); +kfree (hidg->report_desc);kfree (hidg->set_report_buf);kfree (hidg); }
@@ -1293,9 +1294,9 @@ static struct usb_function *hidg_alloc(struct usb_function_instance *fi) hidg->report_length = opts->report_length; hidg->report_desc_length = opts->report_desc_length;if (opts->report_desc) { - hidg->report_desc =devm_kmemdup (&hidg->dev, opts->report_desc, - opts->report_desc_length, -GFP_KERNEL ); + hidg->report_desc =kmemdup (opts->report_desc, + opts->report_desc_length, +GFP_KERNEL );if (!hidg->report_desc) {put_device (&hidg->dev); --opts->refcnt;
drivers/usb/typec/class.c +3 -2
@@ -193,7 +193,7 @@ static void typec_altmode_put_partner(struct altmode *altmode)if (!partner)return ; - adev = &partner->adev; + adev = &altmode->adev;if (is_typec_plug (adev->dev.parent)) {struct typec_plug *plug =to_typec_plug (adev->dev.parent);
@@ -465,7 +465,8 @@ static void typec_altmode_release(struct device *dev) {struct altmode *alt =to_altmode (to_typec_altmode (dev)); -typec_altmode_put_partner (alt); +if (!is_typec_port (dev->parent)) +typec_altmode_put_partner (alt);altmode_id_remove (alt->adev.dev.parent, alt->id);kfree (alt);
fs/btrfs/disk-io.c +0 -1
@@ -2829,7 +2829,6 @@ int open_ctree(struct super_block *sb, goto fail_alloc; } -btrfs_info (fs_info,"first mount of filesystem %pU" , disk_super->fsid);/* * Verify the type first, if that or the checksum value are * corrupted, we'll find out
fs/btrfs/super.c +1 -4
@@ -291,10 +291,7 @@ void __btrfs_panic(struct btrfs_fs_info *fs_info, const char *function,static void btrfs_put_super (struct super_block *sb) { -struct btrfs_fs_info *fs_info =btrfs_sb (sb); - -btrfs_info (fs_info,"last unmount of filesystem %pU" , fs_info->fs_devices->fsid); -close_ctree (fs_info); +close_ctree (btrfs_sb (sb)); }enum {
fs/cifs/cifsfs.c +3 -1
@@ -1079,7 +1079,9 @@ static loff_t cifs_remap_file_range(struct file *src_file, loff_t off,unsigned int xid;int rc; -if (remap_flags & ~(REMAP_FILE_DEDUP |REMAP_FILE_ADVISORY )) +if (remap_flags &REMAP_FILE_DEDUP ) +return -EOPNOTSUPP ; +if (remap_flags & ~REMAP_FILE_ADVISORY )return -EINVAL ;cifs_dbg (FYI ,"clone range\n" );
fs/cifs/smb2ops.c +2 -0
@@ -2498,6 +2498,8 @@ smb2_get_dfs_refer(const unsigned int xid, struct cifs_ses *ses, (char **)&dfs_rsp, &dfs_rsp_size); }while (rc == -EAGAIN ); +if (!rc && !dfs_rsp) + rc = -EIO ;if (rc) {if ((rc != -ENOENT ) && (rc != -EOPNOTSUPP ))cifs_tcon_dbg (VFS ,"ioctl error in %s rc=%d\n" , __func__, rc);
fs/io_uring.c +1 -100
113 lines not on this page · raw message
fs/nilfs2/sufile.c +35 -7
59 lines not on this page · raw message
fs/nilfs2/the_nilfs.c +5 -1
@@ -688,7 +688,11 @@ int init_nilfs(struct the_nilfs *nilfs, struct super_block *sb, char *data) goto failed_sbh; }nilfs_release_super_block (nilfs); -sb_set_blocksize (sb, blocksize); +if (!sb_set_blocksize (sb, blocksize)) { +nilfs_msg (sb,KERN_ERR ,"bad blocksize %d" , blocksize); + err = -EINVAL ; + goto out; + } err =nilfs_load_super_block (nilfs, sb, blocksize, &sbp);if (err)
include/linux/acpi_iort.h +7 -6
@@ -29,8 +29,9 @@ void iort_deregister_domain_token(int trans_id);struct fwnode_handle *iort_find_domain_token (int trans_id);#ifdef CONFIG_ACPI_IORT void acpi_iort_init (void ); -u32 iort_msi_map_rid (struct device *dev,u32 req_id); -struct irq_domain *iort_get_device_domain (struct device *dev,u32 req_id); +u32 iort_msi_map_id (struct device *dev,u32 id); +struct irq_domain *iort_get_device_domain (struct device *dev,u32 id, +enum irq_domain_bus_token bus_token);void acpi_configure_pmsi_domain (struct device *dev);int iort_pmsi_get_dev_id (struct device *dev,u32 *dev_id);/* IOMMU interface */
@@ -39,10 +40,10 @@ const struct iommu_ops *iort_iommu_configure(struct device *dev);int iort_iommu_msi_get_resv_regions (struct device *dev,struct list_head *head);#else static inline void acpi_iort_init (void ) { } -static inline u32 iort_msi_map_rid (struct device *dev,u32 req_id) -{return req_id; } -static inline struct irq_domain *iort_get_device_domain (struct device *dev, -u32 req_id) +static inline u32 iort_msi_map_id (struct device *dev,u32 id) +{return id; } +static inline struct irq_domain *iort_get_device_domain ( +struct device *dev,u32 id,enum irq_domain_bus_token bus_token) {return NULL ; }static inline void acpi_configure_pmsi_domain (struct device *dev) { }/* IOMMU interface */
include/linux/cpuhotplug.h +1 -0
@@ -141,6 +141,7 @@ enum cpuhp_state {CPUHP_AP_ARM_CORESIGHT_STARTING ,CPUHP_AP_ARM64_ISNDEP_STARTING ,CPUHP_AP_SMPCFD_DYING , +CPUHP_AP_HRTIMERS_DYING ,CPUHP_AP_X86_TBOOT_DYING ,CPUHP_AP_ARM_CACHE_B15_RAC_DYING , CPUHP_AP_ONLINE,
include/linux/hrtimer.h +2 -2
@@ -526,9 +526,9 @@ extern void sysrq_timer_list_show(void);int hrtimers_prepare_cpu (unsigned int cpu);#ifdef CONFIG_HOTPLUG_CPU -int hrtimers_dead_cpu (unsigned int cpu); +int hrtimers_cpu_dying (unsigned int cpu);#else -#define hrtimers_dead_cpu NULL +#define hrtimers_cpu_dying NULL#endif #endif
include/linux/mmc/host.h +3 -0
@@ -397,6 +397,7 @@ struct mmc_host { unsigned int use_blk_mq:1; /* use blk-mq */ unsigned int retune_crc_disable:1; /* don't trigger retune upon crc */ unsigned int can_dma_map_merge:1; /* merging can be used */ + unsigned int vqmmc_enabled:1; /* vqmmc regulator is enabled */int rescan_disable;/* disable card detection */ int rescan_entered;/* used with nonremovable devices */
@@ -534,6 +535,8 @@ static inline int mmc_regulator_set_vqmmc(struct mmc_host *mmc,#endif int mmc_regulator_get_supply (struct mmc_host *mmc); +int mmc_regulator_enable_vqmmc (struct mmc_host *mmc); +void mmc_regulator_disable_vqmmc (struct mmc_host *mmc);static inline int mmc_card_is_removable (struct mmc_host *host) {
include/linux/of.h +51 -24
14 lines not on this page · raw message
kernel/events/core.c +55 -25
80 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.