16 Oct, 2020

1 commit

  • Pull staging / IIO driver updates from Greg KH:
    "Here is the large set of staging and IIO driver updates for 5.10-rc1.

    Included in here are:

    - new IIO drivers

    - new IIO driver frameworks

    - various IIO driver fixes and updates

    - IIO device tree conversions to yaml

    - so many minor staging driver coding style cleanups

    - most cdev driver moved out of staging

    - no staging drivers added or removed

    Full details are in the shortlog.

    All of these have been in linux-next for a while with no reported
    issues"

    * tag 'staging-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging: (476 commits)
    staging: comedi: check validity of wMaxPacketSize of usb endpoints found
    staging: wfx: improve robustness of wfx_get_hw_rate()
    staging: wfx: drop unicode characters from strings
    staging: wfx: gpiod_get_value() can return an error
    staging: wfx: increase robustness of hif_generic_confirm()
    staging: wfx: wfx_init_common() returns NULL on error
    staging: wfx: standardize the error when vif does not exist
    staging: wfx: check memory allocation
    staging: wfx: improve error handling of hif_join()
    staging: dpaa2-switch: add a dpaa2_switch prefix to all functions in ethsw.c
    staging: dpaa2-switch: add a dpaa2_switch_ prefix to all functions in ethsw-ethtool.c
    staging: rtl8188eu: Fix long lines
    dt-bindings: staging: wfx: silabs,wfx yaml conversion
    staging: wfx: update copyrights dates
    staging: wfx: fix QoS priority for slow buses
    staging: wfx: fix BA sessions for older firmwares
    staging: wfx: remove remaining code of 'secure link' feature
    staging: wfx: fix handling of MMIC error
    staging: vchiq: Fix list_for_each exit tests
    staging: greybus: use __force when assigning __u8 value to snd_ctl_elem_type_t
    ...

    Linus Torvalds
     

05 Oct, 2020

1 commit

  • This fixes commit 0107635e15ac
    ("staging: qlge: replace pr_err with netdev_err") which introduced an
    build breakage of missing `struct ql_adapter *qdev` for some functions
    and a warning of type mismatch with dumping enabled, i.e.,

    $ make CFLAGS_MODULE="-DQL_ALL_DUMP -DQL_OB_DUMP -DQL_CB_DUMP \
    -DQL_IB_DUMP -DQL_REG_DUMP -DQL_DEV_DUMP" M=drivers/staging/qlge

    qlge_dbg.c: In function ‘ql_dump_ob_mac_rsp’:
    qlge_dbg.c:2051:13: error: ‘qdev’ undeclared (first use in this function); did you mean ‘cdev’?
    2051 | netdev_err(qdev->ndev, "%s\n", __func__);
    | ^~~~
    qlge_dbg.c: In function ‘ql_dump_routing_entries’:
    qlge_dbg.c:1435:10: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘int’ [-Wformat=]
    1435 | "%s: Routing Mask %d = 0x%.08x\n",
    | ~^
    | |
    | char *
    | %d
    1436 | i, value);
    | ~
    | |
    | int
    qlge_dbg.c:1435:37: warning: format ‘%x’ expects a matching ‘unsigned int’ argument [-Wformat=]
    1435 | "%s: Routing Mask %d = 0x%.08x\n",
    | ~~~~^
    | |
    | unsigned int

    Note that now ql_dump_rx_ring/ql_dump_tx_ring won't check if the passed
    parameter is a null pointer.

    Fixes: 0107635e15ac ("staging: qlge: replace pr_err with netdev_err")
    Reported-by: Benjamin Poirier
    Suggested-by: Benjamin Poirier
    Reviewed-by: Benjamin Poirier
    Signed-off-by: Coiby Xu
    Link: https://lore.kernel.org/r/20201002235941.77062-1-coiby.xu@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Coiby Xu
     

16 Sep, 2020

1 commit

  • All files related to this driver contain the following notice:

    See LICENSE.qlge for copyright and licensing details.

    LICENSE.qlge can be found in
    Documentation/networking/device_drivers/qlogic/. The file contains:

    - A copyright notice

    This copyright notice is redundant as all files contain the same
    copyright notice already

    - A license notice

    You may modify and redistribute the device driver code under the
    GNU General Public License (a copy of which is attached hereto as
    Exhibit A) published by the Free Software Foundation (version 2).

    This can be replaced with the corresponding SPDX license identifier
    (GPL-2.0-only) in the source files which reference this license
    file.

    - The full GPLv2 license text

    A redundant copy of LICENSES/preferred/GPL-2.0

    Remove the notices and add the SPDX license identifier GPL-2.0-only to the
    source files.

    Finally remove the now redundant LICENSE.qlge file.

    Reviewed-by: Richard Fontana
    Reviewed-by: Jilayne Lovejoy
    Reviewed-by: Alexios Zavras
    Signed-off-by: Thomas Gleixner
    Signed-off-by: Lukas Bulwahn
    Signed-off-by: Greg Kroah-Hartman

    Thomas Gleixner
     

13 Sep, 2020

1 commit


02 Sep, 2020

1 commit

  • CHECK: Blank lines aren't necessary before a close brace '}'
    FILE: drivers/staging/qlge/qlge_mpi.c:121:

    CHECK: Unbalanced braces around else statement
    FILE: drivers/staging/qlge/qlge_mpi.c:243:

    CHECK: braces {} should be used on all arms of this statement
    FILE: drivers/staging/qlge/qlge_mpi.c:350:

    CHECK: Unbalanced braces around else statement
    FILE: drivers/staging/qlge/qlge_mpi.c:352:

    CHECK: Blank lines aren't necessary before a close brace '}'
    FILE: drivers/staging/qlge/qlge_mpi.c:360:

    CHECK: Blank lines aren't necessary after an open brace '{'
    FILE: drivers/staging/qlge/qlge_mpi.c:408:

    CHECK: braces {} should be used on all arms of this statement
    FILE: drivers/staging/qlge/qlge_mpi.c:997:

    CHECK: Unbalanced braces around else statement
    FILE: drivers/staging/qlge/qlge_mpi.c:1001:

    Signed-off-by: Sebastian Fuentes
    Link: https://lore.kernel.org/r/20200831014859.GA29362@ubuntu
    Signed-off-by: Greg Kroah-Hartman

    Sebastian Fuentes
     

08 Aug, 2020

1 commit

  • Pull PCI updates from Bjorn Helgaas:
    "Enumeration:
    - Fix pci_cfg_wait queue locking problem (Bjorn Helgaas)
    - Convert PCIe capability PCIBIOS errors to errno (Bolarinwa Olayemi
    Saheed)
    - Align PCIe capability and PCI accessor return values (Bolarinwa
    Olayemi Saheed)
    - Fix pci_create_slot() reference count leak (Qiushi Wu)
    - Announce device after early fixups (Tiezhu Yang)

    PCI device hotplug:
    - Make rpadlpar functions static (Wei Yongjun)

    Driver binding:
    - Add device even if driver attach failed (Rajat Jain)

    Virtualization:
    - xen: Remove redundant initialization of irq (Colin Ian King)

    IOMMU:
    - Add pci_pri_supported() to check device or associated PF (Ashok Raj)
    - Release IVRS table in AMD ACS quirk (Hanjun Guo)
    - Mark AMD Navi10 GPU rev 0x00 ATS as broken (Kai-Heng Feng)
    - Treat "external-facing" devices themselves as internal (Rajat Jain)

    MSI:
    - Forward MSI-X error code in pci_alloc_irq_vectors_affinity() (Piotr
    Stankiewicz)

    Error handling:
    - Clear PCIe Device Status errors only if OS owns AER (Jonathan
    Cameron)
    - Log correctable errors as warning, not error (Matt Jolly)
    - Use 'pci_channel_state_t' instead of 'enum pci_channel_state' (Luc
    Van Oostenryck)

    Peer-to-peer DMA:
    - Allow P2PDMA on AMD Zen and newer CPUs (Logan Gunthorpe)

    ASPM:
    - Add missing newline in sysfs 'policy' (Xiongfeng Wang)

    Native PCIe controllers:
    - Convert to devm_platform_ioremap_resource_byname() (Dejin Zheng)
    - Convert to devm_platform_ioremap_resource() (Dejin Zheng)
    - Remove duplicate error message from devm_pci_remap_cfg_resource()
    callers (Dejin Zheng)
    - Fix runtime PM imbalance on error (Dinghao Liu)
    - Remove dev_err() when handing an error from platform_get_irq()
    (Krzysztof Wilczyński)
    - Use pci_host_bridge.windows list directly instead of splicing in a
    temporary list for cadence, mvebu, host-common (Rob Herring)
    - Use pci_host_probe() instead of open-coding all the pieces for
    altera, brcmstb, iproc, mobiveil, rcar, rockchip, tegra, v3,
    versatile, xgene, xilinx, xilinx-nwl (Rob Herring)
    - Default host bridge parent device to the platform device (Rob
    Herring)
    - Use pci_is_root_bus() instead of tracking root bus number
    separately in aardvark, designware (imx6, keystone,
    designware-host), mobiveil, xilinx-nwl, xilinx, rockchip, rcar (Rob
    Herring)
    - Set host bridge bus number in pci_scan_root_bus_bridge() instead of
    each driver for aardvark, designware-host, host-common, mediatek,
    rcar, tegra, v3-semi (Rob Herring)
    - Move DT resource setup into devm_pci_alloc_host_bridge() (Rob
    Herring)
    - Set bridge map_irq and swizzle_irq to default functions; drivers
    that don't support legacy IRQs (iproc) need to undo this (Rob
    Herring)

    ARM Versatile PCIe controller driver:
    - Drop flag PCI_ENABLE_PROC_DOMAINS (Rob Herring)

    Cadence PCIe controller driver:
    - Use "dma-ranges" instead of "cdns,no-bar-match-nbits" property
    (Kishon Vijay Abraham I)
    - Remove "mem" from reg binding (Kishon Vijay Abraham I)
    - Fix cdns_pcie_{host|ep}_setup() error path (Kishon Vijay Abraham I)
    - Convert all r/w accessors to perform only 32-bit accesses (Kishon
    Vijay Abraham I)
    - Add support to start link and verify link status (Kishon Vijay
    Abraham I)
    - Allow pci_host_bridge to have custom pci_ops (Kishon Vijay Abraham I)
    - Add new *ops* for CPU addr fixup (Kishon Vijay Abraham I)
    - Fix updating Vendor ID and Subsystem Vendor ID register (Kishon
    Vijay Abraham I)
    - Use bridge resources for outbound window setup (Rob Herring)
    - Remove private bus number and range storage (Rob Herring)

    Cadence PCIe endpoint driver:
    - Add MSI-X support (Alan Douglas)

    HiSilicon PCIe controller driver:
    - Remove non-ECAM HiSilicon hip05/hip06 driver (Rob Herring)

    Intel VMD host bridge driver:
    - Use Shadow MEMBAR registers for QEMU/KVM guests (Jon Derrick)

    Loongson PCIe controller driver:
    - Use DECLARE_PCI_FIXUP_EARLY for bridge_class_quirk() (Tiezhu Yang)

    Marvell Aardvark PCIe controller driver:
    - Indicate error in 'val' when config read fails (Pali Rohár)
    - Don't touch PCIe registers if no card connected (Pali Rohár)

    Marvell MVEBU PCIe controller driver:
    - Setup BAR0 in order to fix MSI (Shmuel Hazan)

    Microsoft Hyper-V host bridge driver:
    - Fix a timing issue which causes kdump to fail occasionally (Wei Hu)
    - Make some functions static (Wei Yongjun)

    NVIDIA Tegra PCIe controller driver:
    - Revert tegra124 raw_violation_fixup (Nicolas Chauvet)
    - Remove PLL power supplies (Thierry Reding)

    Qualcomm PCIe controller driver:
    - Change duplicate PCI reset to phy reset (Abhishek Sahu)
    - Add missing ipq806x clocks in PCIe driver (Ansuel Smith)
    - Add missing reset for ipq806x (Ansuel Smith)
    - Add ext reset (Ansuel Smith)
    - Use bulk clk API and assert on error (Ansuel Smith)
    - Add support for tx term offset for rev 2.1.0 (Ansuel Smith)
    - Define some PARF params needed for ipq8064 SoC (Ansuel Smith)
    - Add ipq8064 rev2 variant (Ansuel Smith)
    - Support PCI speed set for ipq806x (Sham Muthayyan)

    Renesas R-Car PCIe controller driver:
    - Use devm_pci_alloc_host_bridge() (Rob Herring)
    - Use struct pci_host_bridge.windows list directly (Rob Herring)
    - Convert rcar-gen2 to use modern host bridge probe functions (Rob
    Herring)

    TI J721E PCIe driver:
    - Add TI J721E PCIe host and endpoint driver (Kishon Vijay Abraham I)

    Xilinx Versal CPM PCIe controller driver:
    - Add Versal CPM Root Port driver and YAML schema (Bharat Kumar
    Gogada)

    MicroSemi Switchtec management driver:
    - Add missing __iomem and __user tags to fix sparse warnings (Logan
    Gunthorpe)

    Miscellaneous:
    - Replace http:// links with https:// (Alexander A. Klimov)
    - Replace lkml.org, spinics, gmane with lore.kernel.org (Bjorn
    Helgaas)
    - Remove unused pci_lost_interrupt() (Heiner Kallweit)
    - Move PCI_VENDOR_ID_REDHAT definition to pci_ids.h (Huacai Chen)
    - Fix kerneldoc warnings (Krzysztof Kozlowski)"

    * tag 'pci-v5.9-changes' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: (113 commits)
    PCI: Fix kerneldoc warnings
    PCI: xilinx-cpm: Add Versal CPM Root Port driver
    PCI: xilinx-cpm: Add YAML schemas for Versal CPM Root Port
    PCI: Set bridge map_irq and swizzle_irq to default functions
    PCI: Move DT resource setup into devm_pci_alloc_host_bridge()
    PCI: rcar-gen2: Convert to use modern host bridge probe functions
    PCI: Remove dev_err() when handing an error from platform_get_irq()
    MAINTAINERS: Add Kishon Vijay Abraham I for TI J721E SoC PCIe
    misc: pci_endpoint_test: Add J721E in pci_device_id table
    PCI: j721e: Add TI J721E PCIe driver
    PCI: switchtec: Add missing __iomem tag to fix sparse warnings
    PCI: switchtec: Add missing __iomem and __user tags to fix sparse warnings
    PCI: rpadlpar: Make functions static
    PCI/P2PDMA: Allow P2PDMA on AMD Zen and newer CPUs
    PCI: Release IVRS table in AMD ACS quirk
    PCI: Announce device after early fixups
    PCI: Mark AMD Navi10 GPU rev 0x00 ATS as broken
    PCI: Remove unused pci_lost_interrupt()
    dt-bindings: PCI: Add EP mode dt-bindings for TI's J721E SoC
    dt-bindings: PCI: Add host mode dt-bindings for TI's J721E SoC
    ...

    Linus Torvalds
     

30 Jul, 2020

1 commit

  • Inside function ql_get_dump comment statement had a repition of word
    "to" which I removed and checkpatch.pl ouputs zero error or warnings
    now.

    Signed-off-by: Dhiraj Sharma
    Link: https://lore.kernel.org/r/20200728182610.2538-1-dhiraj.sharma0024@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Dhiraj Sharma
     

28 Jul, 2020

1 commit

  • Replace the existing /* fall through */ comments and its variants with
    the new pseudo-keyword macro fallthrough[1].

    [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

    Signed-off-by: Gustavo A. R. Silva
    Link: https://lore.kernel.org/r/20200727184042.GA29074@embeddedor
    Signed-off-by: Greg Kroah-Hartman

    Gustavo A. R. Silva
     

17 Jul, 2020

1 commit


13 Jul, 2020

6 commits

  • Use direct assignment instead of using memset with just one byte as an
    argument.
    Issue found by checkpatch.pl.

    Signed-off-by: Suraj Upadhyay
    Link: https://lore.kernel.org/r/b5eb87576cef4bf1b968481d6341013e6c7e9650.1594642213.git.usuraj35@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Suraj Upadhyay
     
  • Simplify while loops into more readable and simple for loops.

    Signed-off-by: Suraj Upadhyay
    Link: https://lore.kernel.org/r/6eb96e8c074bbdee3838b6421d25b50f1faffb3d.1594642213.git.usuraj35@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Suraj Upadhyay
     
  • Simplify while loops into more readable and simple for loops.

    Signed-off-by: Suraj Upadhyay
    Link: https://lore.kernel.org/r/79e35c695a80168639c073137a80804da3362301.1594642213.git.usuraj35@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Suraj Upadhyay
     
  • Issue found by checkpatch.pl

    Signed-off-by: Suraj Upadhyay
    Link: https://lore.kernel.org/r/d14343ed4ea3d4428f93a63bf1f52804ed5938e9.1594642213.git.usuraj35@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Suraj Upadhyay
     
  • Issue found with checkpatch.pl

    Signed-off-by: Suraj Upadhyay
    Link: https://lore.kernel.org/r/2d788cffeec2dad9ce9562c15a69d8b63ed0b21f.1594642213.git.usuraj35@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Suraj Upadhyay
     
  • The legacy API wrappers in include/linux/pci-dma-compat.h
    should go away as it creates unnecessary midlayering
    for include/linux/dma-mapping.h APIs, instead use dma-mapping.h
    APIs directly.

    The patch has been generated with the coccinelle script below
    and compile-tested.

    @@@@
    - PCI_DMA_BIDIRECTIONAL
    + DMA_BIDIRECTIONAL

    @@@@
    - PCI_DMA_TODEVICE
    + DMA_TO_DEVICE

    @@@@
    - PCI_DMA_FROMDEVICE
    + DMA_FROM_DEVICE

    @@@@
    - PCI_DMA_NONE
    + DMA_NONE

    @@ expression E1, E2, E3; @@
    - pci_alloc_consistent(E1, E2, E3)
    + dma_alloc_coherent(&E1->dev, E2, E3, GFP_ATOMIC)

    @@ expression E1, E2, E3; @@
    - pci_zalloc_consistent(E1, E2, E3)
    + dma_alloc_coherent(&E1->dev, E2, E3, GFP_ATOMIC)

    @@ expression E1, E2, E3, E4; @@
    - pci_free_consistent(E1, E2, E3, E4)
    + dma_free_coherent(&E1->dev, E2, E3, E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_map_single(E1, E2, E3, E4)
    + dma_map_single(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_unmap_single(E1, E2, E3, E4)
    + dma_unmap_single(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4, E5; @@
    - pci_map_page(E1, E2, E3, E4, E5)
    + dma_map_page(&E1->dev, E2, E3, E4, (enum dma_data_direction)E5)

    @@ expression E1, E2, E3, E4; @@
    - pci_unmap_page(E1, E2, E3, E4)
    + dma_unmap_page(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_map_sg(E1, E2, E3, E4)
    + dma_map_sg(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_unmap_sg(E1, E2, E3, E4)
    + dma_unmap_sg(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_dma_sync_single_for_cpu(E1, E2, E3, E4)
    + dma_sync_single_for_cpu(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_dma_sync_single_for_device(E1, E2, E3, E4)
    + dma_sync_single_for_device(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_dma_sync_sg_for_cpu(E1, E2, E3, E4)
    + dma_sync_sg_for_cpu(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2, E3, E4; @@
    - pci_dma_sync_sg_for_device(E1, E2, E3, E4)
    + dma_sync_sg_for_device(&E1->dev, E2, E3, (enum dma_data_direction)E4)

    @@ expression E1, E2; @@
    - pci_dma_mapping_error(E1, E2)
    + dma_mapping_error(&E1->dev, E2)

    @@ expression E1, E2; @@
    - pci_set_consistent_dma_mask(E1, E2)
    + dma_set_coherent_mask(&E1->dev, E2)

    @@ expression E1, E2; @@
    - pci_set_dma_mask(E1, E2)
    + dma_set_mask(&E1->dev, E2)

    Signed-off-by: Suraj Upadhyay
    Link: https://lore.kernel.org/r/20200711124633.GA16459@blackclown
    Signed-off-by: Greg Kroah-Hartman

    Suraj Upadhyay
     

08 Jul, 2020

1 commit

  • The method struct pci_error_handlers.error_detected() is defined and
    documented as taking an 'enum pci_channel_state' for the second argument,
    but most drivers use 'pci_channel_state_t' instead.

    This 'pci_channel_state_t' is not a typedef for the enum but a typedef for
    a bitwise type in order to have better/stricter typechecking.

    Consolidate everything by using 'pci_channel_state_t' in the method's
    definition, in the related helpers and in the drivers.

    Enforce use of 'pci_channel_state_t' by replacing 'enum pci_channel_state'
    with an anonymous 'enum'.

    Note: Currently, from a typechecking point of view this patch changes
    nothing because only the constants defined by the enum are bitwise, not the
    enum itself (sparse doesn't have the notion of 'bitwise enum'). This may
    change in some not too far future, hence the patch.

    [bhelgaas: squash in
    https://lore.kernel.org/r/20200702162651.49526-3-luc.vanoostenryck@gmail.com
    https://lore.kernel.org/r/20200702162651.49526-4-luc.vanoostenryck@gmail.com]
    Link: https://lore.kernel.org/r/20200702162651.49526-2-luc.vanoostenryck@gmail.com
    Signed-off-by: Luc Van Oostenryck
    Signed-off-by: Bjorn Helgaas

    Luc Van Oostenryck
     

03 Jul, 2020

1 commit


01 Jul, 2020

2 commits

  • Spaces aren't necessary before function pointer arguments.

    Signed-off-by: Diego Bienz
    Link: https://lore.kernel.org/r/20200630113324.GA10534@diegob-nb
    Signed-off-by: Greg Kroah-Hartman

    Diego Bienz
     
  • Drivers should not use legacy power management as they have to manage power
    states and related operations, for the device, themselves. This driver was
    handling them with the help of PCI helper functions like
    pci_save/restore_state(), pci_enable/disable_device(), etc.

    With generic PM, all essentials will be handled by the PCI core. Driver
    needs to do only device-specific operations.

    The driver was also using pci_enable_wake(...,..., 0) to disable wake. Use
    device_wakeup_disable() instead.

    Compile-tested only.

    Signed-off-by: Vaibhav Gupta
    Link: https://lore.kernel.org/r/20200629173459.262075-2-vaibhavgupta40@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Vaibhav Gupta
     

28 Jun, 2020

2 commits

  • Replace all pr_errs with netdev_err.

    Suggested-by: Joe Perches
    Signed-off-by: Coiby Xu
    Reviewed-by: Dan Carpenter
    Link: https://lore.kernel.org/r/20200627145857.15926-5-coiby.xu@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Coiby Xu
     
  • Some functions return without releasing the lock. Replace return with
    break.

    Suggested-by Dan Carpenter .

    Signed-off-by: Coiby Xu
    Reviewed-by: Dan Carpenter
    Link: https://lore.kernel.org/r/20200627145857.15926-4-coiby.xu@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Coiby Xu
     

27 Jun, 2020

2 commits


18 Jun, 2020

1 commit


19 May, 2020

1 commit

  • DMA not unmapped when lock failed, this patch fixed it.

    Signed-off-by: Xiangyang Zhang
    Fixes: 4322c5bee85e ("qlge: Expand coverage of hw lock for config register.")
    Link: https://lore.kernel.org/r/20200517054638.10764-1-xyz.sun.ok@gmail.com
    Signed-off-by: Greg Kroah-Hartman

    Xiangyang Zhang
     

15 May, 2020

1 commit


05 May, 2020

7 commits

  • Fix checkpatch.pl check:

    CHECK: Alignment should match open parenthesis

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/12c7c34330b410e4ee8b9b5634f1a50ceb9c3590.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • Fix checkpatch.pl warnings:

    WARNING: suspect code indent for conditional statements (16, 23)
    WARNING: line over 80 characters

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/7c07400dbce98d0c4c84aa941da8f34e32616159.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • Fix checkpatch.pl warning:

    WARNING: Avoid multiple line dereference - prefer 'qdev->flags'

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/517d71f0cbc55e6880c19a9ff16c2c8ab8913251.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • Similar to ql_set_mac_addr_reg, ql_get_mac_addr_reg also has several
    goto statements that can be trivially replaced with a break statement.

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/9339ea49c4f943411adae3b9b5b278ae8bf062e1.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • This has similar indentation style issues as ql_set_mac_addr_reg, so I
    thought I'd re-indent this too.

    Fix several checkpatch.pl warnings:

    WARNING: line over 80 characters

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/b51f21b20514dc5197266a5a52d31c7b85f16741.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • As suggested by Joe Perches, this patch removes the 'exit' label
    from the ql_set_mac_addr_reg function and replaces the goto
    statements with break statements.

    Signed-off-by: Rylan Dmello
    Reviewed-by: Dan Carpenter
    Link: https://lore.kernel.org/r/a6f485e43eb55e8fdc64a7a346cb0419b55c3cb6.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • Based on Joe Perches' feedback, fix the indentation throughout
    ql_set_mac_addr_reg. This helps fix several "line over 80 characters"
    warnings along with the original "multiple line dereference" warning.

    Fix checkpatch.pl warnings:

    WARNING: Avoid multiple line dereference - prefer 'qdev->func'
    WARNING: line over 80 characters

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/299f2cb3b7d4efa30b44d4d1defbcd5f54bd7eaf.1588209862.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     

28 Apr, 2020

3 commits

  • Remove debug print statements referring to non-existent fields
    'lbq_clean_idx' and 'lbq_free_cnt' in the 'rx_ring' struct, which causes
    a compilation failure when QL_DEV_DUMP is set.

    These fields were initially removed as a part of commit aec626d2092f
    ("staging: qlge: Update buffer queue prod index despite oom") in 2019.

    Their replacement fields ('next_to_use' and 'next_to_clean') are already
    being printed, so this patch does not add new debug statements for them.

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/aa7e0197f4e34cec0855124e45696e33dd9527e5.1587959245.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • Remove statement that tries to print the non-existent 'vlgrp' field
    in the 'ql_adapter' struct, which causes a compilation failure when
    QL_DEV_DUMP is set.

    vlgrp seems to have been removed from ql_adapter as a part of
    commit 18c49b91777c ("qlge: do vlan cleanup") in 2011.

    vlgrp might be replaced by the 'active_vlans' array introduced in the
    aforementioned commit. But I'm not sure if printing all 64 values of
    that array would help with debugging this driver, so I'm leaving it
    out of the debug code in this patch.

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/51bae37a54d414491779e4a3329508cc864ab900.1587959245.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     
  • Remove unnecessary parentheses around a struct field accessor that
    causes a build failure when QL_DEV_DUMP is set.

    Signed-off-by: Rylan Dmello
    Link: https://lore.kernel.org/r/4dea7a7fae6a56c51cc19228b82a3c230029f54b.1587959245.git.mail@rylan.coffee
    Signed-off-by: Greg Kroah-Hartman

    Rylan Dmello
     

25 Apr, 2020

1 commit


23 Apr, 2020

2 commits


01 Apr, 2020

1 commit

  • Pull networking updates from David Miller:
    "Highlights:

    1) Fix the iwlwifi regression, from Johannes Berg.

    2) Support BSS coloring and 802.11 encapsulation offloading in
    hardware, from John Crispin.

    3) Fix some potential Spectre issues in qtnfmac, from Sergey
    Matyukevich.

    4) Add TTL decrement action to openvswitch, from Matteo Croce.

    5) Allow paralleization through flow_action setup by not taking the
    RTNL mutex, from Vlad Buslov.

    6) A lot of zero-length array to flexible-array conversions, from
    Gustavo A. R. Silva.

    7) Align XDP statistics names across several drivers for consistency,
    from Lorenzo Bianconi.

    8) Add various pieces of infrastructure for offloading conntrack, and
    make use of it in mlx5 driver, from Paul Blakey.

    9) Allow using listening sockets in BPF sockmap, from Jakub Sitnicki.

    10) Lots of parallelization improvements during configuration changes
    in mlxsw driver, from Ido Schimmel.

    11) Add support to devlink for generic packet traps, which report
    packets dropped during ACL processing. And use them in mlxsw
    driver. From Jiri Pirko.

    12) Support bcmgenet on ACPI, from Jeremy Linton.

    13) Make BPF compatible with RT, from Thomas Gleixnet, Alexei
    Starovoitov, and your's truly.

    14) Support XDP meta-data in virtio_net, from Yuya Kusakabe.

    15) Fix sysfs permissions when network devices change namespaces, from
    Christian Brauner.

    16) Add a flags element to ethtool_ops so that drivers can more simply
    indicate which coalescing parameters they actually support, and
    therefore the generic layer can validate the user's ethtool
    request. Use this in all drivers, from Jakub Kicinski.

    17) Offload FIFO qdisc in mlxsw, from Petr Machata.

    18) Support UDP sockets in sockmap, from Lorenz Bauer.

    19) Fix stretch ACK bugs in several TCP congestion control modules,
    from Pengcheng Yang.

    20) Support virtual functiosn in octeontx2 driver, from Tomasz
    Duszynski.

    21) Add region operations for devlink and use it in ice driver to dump
    NVM contents, from Jacob Keller.

    22) Add support for hw offload of MACSEC, from Antoine Tenart.

    23) Add support for BPF programs that can be attached to LSM hooks,
    from KP Singh.

    24) Support for multiple paths, path managers, and counters in MPTCP.
    From Peter Krystad, Paolo Abeni, Florian Westphal, Davide Caratti,
    and others.

    25) More progress on adding the netlink interface to ethtool, from
    Michal Kubecek"

    * git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next: (2121 commits)
    net: ipv6: rpl_iptunnel: Fix potential memory leak in rpl_do_srh_inline
    cxgb4/chcr: nic-tls stats in ethtool
    net: dsa: fix oops while probing Marvell DSA switches
    net/bpfilter: remove superfluous testing message
    net: macb: Fix handling of fixed-link node
    net: dsa: ksz: Select KSZ protocol tag
    netdevsim: dev: Fix memory leak in nsim_dev_take_snapshot_write
    net: stmmac: add EHL 2.5Gbps PCI info and PCI ID
    net: stmmac: add EHL PSE0 & PSE1 1Gbps PCI info and PCI ID
    net: stmmac: create dwmac-intel.c to contain all Intel platform
    net: dsa: bcm_sf2: Support specifying VLAN tag egress rule
    net: dsa: bcm_sf2: Add support for matching VLAN TCI
    net: dsa: bcm_sf2: Move writing of CFP_DATA(5) into slicing functions
    net: dsa: bcm_sf2: Check earlier for FLOW_EXT and FLOW_MAC_EXT
    net: dsa: bcm_sf2: Disable learning for ASP port
    net: dsa: b53: Deny enslaving port 7 for 7278 into a bridge
    net: dsa: b53: Prevent tagged VLAN on port 7 for 7278
    net: dsa: b53: Restore VLAN entries upon (re)configuration
    net: dsa: bcm_sf2: Fix overflow checks
    hv_netvsc: Remove unnecessary round_up for recv_completion_cnt
    ...

    Linus Torvalds