Skip to content
Permalink
Phillip-Potter…
Switch branches/tags

Commits on Feb 16, 2022

  1. staging: r8188eu: correct long line warnings near prior DBG_88E calls

    Where it is possible (without out-of-patch-series-scope large scale
    refactoring), correct code to remove checkpatch warnings about lines
    that are too long, also correcting operator spacing where appropriate
    for these lines as well. These warnings occur mostly due to so many
    DBG_88E removals and parentheses tweaks etc. being adjacent to such
    long lines, which are therefore included in the resultant diff.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  2. staging: r8188eu: remove padapter param from aes_decipher function

    Remove padapter parameter from aes_decipher function in
    core/rtw_security.c, as I added it previously during debugging tweaks
    and it is no longer required.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  3. staging: r8188eu: remove rtw_sctx_chk_waring_status function

    Remove the rtw_sctx_chk_waring_status function from core/rtw_amit.c,
    as it has only one caller which is unnecessary.
    
    Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  4. staging: r8188eu: fix lines modified by DBG_88E cleanup

    A number of style problems were left behind by the DBG_88E cleanup:
    (1) Empty if/else blocks.
    (2) Parenthesised if/while statements containing only one line.
    (3) Entire blocks which server zero purpose after removal of DBG_88E.
    (4) Various warnings about whitespace, and constant comparison order.
    (5) Use of __constant_htons instead when htons should be used.
    
    Fix up these issues across the driver in any file touched by the
    previous cleanup. Long line warnings will be addresses in a later
    patch.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  5. staging: r8188eu: remove rtw_debug module parameter

    Remove rtw_debug module parameter, and also the internal GlobalDebugLevel
    flag and all places where it is referenced. As hal/odm_debug.c is now
    essentially empty, also remove this file and edit the Makefile to no
    longer reference it. The DBG_88E macro was the last user of these and
    has now been removed, making the parameter and flag redundant.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  6. staging: r8188eu: remove DBG_88E macro definition

    Remove DBG_88E macro definition as it has no remaining callers within
    the driver. This is part of the ongoing effort to cleanup the driver to
    use standard debug mechanisms where appropriate.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  7. staging: r8188eu: remove all aliased DBG_88E calls

    Remove all remaining calls to preprocessor aliases of DBG_88E, as well
    as these definitions themselves. This is a prerequisite for removing
    the DBG_88E macro itself.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  8. staging: r8188eu: remove remaining DBG_88E call from include/usb_ops.h

    Remove the one remaining DBG_88E call from include/usb_ops.h. After
    some thought, it makes more sense to just entirely strip all of these
    calls, so that debugging code in the driver can be more consistent and
    useful going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  9. staging: r8188eu: remove remaining DBG_88E calls from os_dep subdir

    Remove all remaining DBG_88E calls from the os_dep subdirectory. After
    some thought, it makes more sense to just entirely strip all of these
    calls, so that debugging code in the driver can be more consistent and
    useful going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  10. staging: r8188eu: remove DBG_88E calls from os_dep/ioctl_linux.c

    Remove all remaining DBG_88E calls from os_dep/ioctl_linux.c, patching
    separately from the rest of the os_dep subdirectory for ease of review
    due to the sheer number of calls. After some thought, it makes more
    sense to just entirely strip all of these calls, so that debugging
    code in the driver can be more consistent and useful going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  11. staging: r8188eu: remove DBG_88E calls from hal subdir

    Remove all remaining DBG_88E calls from the hal subdirectory. After some
    thought, it makes more sense to just entirely strip all of these calls,
    so that debugging code in the driver can be more consistent and useful
    going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  12. staging: r8188eu: remove DBG_88E calls from core subdir

    Remove all remaining DBG_88E calls from the core subdirectory. After some
    thought, it makes more sense to just entirely strip all of these calls,
    so that debugging code in the driver can be more consistent and useful
    going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  13. staging: r8188eu: remove converted DBG_88E calls from core/rtw_mlme_e…

    …xt.c
    
    Remove all the netdev_dbg/pr_debug calls that were previously converted
    from DBG_88E inside core/rtw_mlme_ext.c. Due to the sheer number of
    lines, this patch is separated out for ease of review. After some thought,
    it makes more sense to just entirely strip all of these calls, so that
    debugging code in the driver can be more consistent and useful going
    forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  14. staging: r8188eu: remove smaller sets of converted DBG_88E calls

    Remove all the smaller sets of dev_dbg/netdev_dbg/pr_debug calls that
    were previously converted from DBG_88E. After some thought, it makes
    more sense to just entirely strip all of these calls, so that debugging
    code in the driver can be more consistent and useful going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022
  15. staging: r8188eu: remove previously converted DBG_88E_LEVEL calls

    Remove all netdev_dbg and dev_dbg calls that were previously converted
    from DBG_88E_LEVEL. After some thought, it makes more sense to just
    entirely strip all of these calls, so that debugging code in the driver
    can be more consistent and useful going forwards.
    
    Signed-off-by: Phillip Potter <phil@philpotter.co.uk>
    PhilPotter authored and intel-lab-lkp committed Feb 16, 2022

Commits on Feb 15, 2022

  1. staging: r8188eu: remove unconditional if statement

    Remove if condition that is always true. It is useless and
    makes the code less readable.
    
    Signed-off-by: Marcelo Aloisio da Silva <marcelo.as@aol.com>
    Link: https://lore.kernel.org/r/20220215023926.GA52339@snoopy
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Marcelo Aloisio da Silva authored and gregkh committed Feb 15, 2022
  2. staging: r8188eu: remove unused macros in sta_info.h

    Some of the sta_* and STA_* macros are not used.
    Remove those unused macros.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/c2453078b2d46119d167f2d0e4690cc87fc4b77e.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  3. staging: r8188eu: remove unused argument in chk_ap_is_alive

    The function argument padapter is not used in chk_ap_is_alive.
    Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/17af206986d64f34e85acdf67b138edb4ccc0312.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  4. staging: r8188eu: remove unused argument in on_action_public_default

    The function argument action is not used in on_action_public_default.
    Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/01c8fd82c21ae96773c9099a2cee3c3fd29c1054.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  5. staging: r8188eu: remove unused argument in __nat25_has_expired

    The argument priv is not used in function __nat25_has_expired. Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/eceb38329e108c1e440eb973492a5a1c17bd7927.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  6. staging: r8188eu: remove empty function __nat25_db_print

    The definition of function __nat25_db_print is empty. Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/98d201e029dba9acf707ed020b5a5604029ca710.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  7. staging: r8188eu: remove empty function _InitOperationMode

    The definition of function _InitOperationMode is empty. Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/07083cbb8b09957d2fcf9e5b70e0fd832ce53f35.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  8. staging: r8188eu: remove empty function rtw_mfree_mlme_priv_lock

    The definition of function rtw_mfree_mlme_priv_lock is empty. Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/8b6d750b049f875370996258aedaf89cf0f198d4.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  9. staging: r8188eu: remove empty function rtw_get_encrypt_decrypt_from_…

    …registrypriv
    
    The definition of function rtw_get_encrypt_decrypt_from_registrypriv is
    empty. Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/3d84df54e73b49464d2a0732b44acdb71687b3b1.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  10. staging: r8188eu: remove unused struct zero_bulkout_context

    struct zero_bulkout_context is not used. Remove it.
    
    Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
    Link: https://lore.kernel.org/r/05b72a7b045a829de6f706295d17c9f0d5fa5e2f.1644422181.git.abdun.nihaal@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    nifey authored and gregkh committed Feb 15, 2022
  11. staging: r8188eu: mark _rtw_free_sta_priv as void

    _rtw_free_sta_priv() always returns _SUCCESS and it's return value
    isn't checked either.
    So it makes sense to mark it as void instead of u32.
    
    Signed-off-by: Vihas Makwana <makvihas@gmail.com>
    Link: https://lore.kernel.org/r/20220213173424.39935-1-makvihas@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    MakwanaVihas authored and gregkh committed Feb 15, 2022
  12. staging: mt7621-dts: do not use rgmii2_pins for ethernet on GB-PC1

    GB-PC1 uses some of the rgmii2 pins (22 - 33) as GPIO. Therefore, the
    rgmii2 bus cannot be used on this device.
    Overwrite pinctrl-0 property under the ethernet node without rgmii2_pins on
    the GB-PC1 devicetree.
    
    Tested-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
    Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
    Link: https://lore.kernel.org/r/20220215081725.3463-2-arinc.unal@arinc9.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    arinc9 authored and gregkh committed Feb 15, 2022
  13. staging: mt7621-dts: fix pinctrl-0 items to be size-1 items on ethernet

    Fix pinctrl-0 items under the ethernet node to be size-1 items.
    Current notation would be used on specifications with non-zero cells.
    
    Fixes: 0a93c0d ("staging: mt7621-dts: fix pinctrl properties for ethernet")
    Reported-by: Sander Vanheule <sander@svanheule.net>
    Signed-off-by: Arınç ÜNAL <arinc.unal@arinc9.com>
    Link: https://lore.kernel.org/r/20220215081725.3463-1-arinc.unal@arinc9.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    arinc9 authored and gregkh committed Feb 15, 2022
  14. staging: r8188eu: we only need one struct bb_reg_def for path a

    The r8188eu driver does no longer access rf path b registers via
    PHYRegDef.
    
    Change the PHYRegDef array in struct hal_data_8188e to a single
    variable that holds the register addresses for rf path a. Remove
    the initialisation of path b register addresses.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-11-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
  15. staging: r8188eu: remove path parameter from phy_RFSerialRead

    All callers of phy_RFSerialRead set the eRFPath parameter to
    RF_PATH_A. Remove the parameter and use RF_PATH_A directly.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-10-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
  16. staging: r8188eu: remove path parameter from rtl8188e_PHY_QueryRFReg

    All callers of rtl8188e_PHY_QueryRFReg set the eRFPath parameter
    to RF_PATH_A. Remove the parameter and use RF_PATH_A directly.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-9-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
  17. staging: r8188eu: limit rtw_dbg_port to path a

    Rf registers can be read by rtw_wx_read_rf or via the private ioctl 0x0B.
    The latter calls rtw_dbg_port. Limit rf register reads to path a in
    rtw_debug_port.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-8-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
  18. staging: r8188eu: limit rtw_wx_read_rf to path a

    Commit 3b011b0 ("staging: r8188eu: limit rf register writes to
    path a") limits rf register writes by private ioctls to RF_PATH_A.
    Apart from private ioctls, the rest of the driver uses only path a.
    
    This patch limits rf register reads by the private ioctl 0x0D, which
    calls rtw_wx_read_rf, to path a.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-7-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
  19. staging: r8188eu: clarify that bb_reg_dump uses only path a

    The path variable is always 0 in bb_reg_dump. Remove the path variable
    and replace the constant 0 with RF_PATH_A to make it clearer that path
    a is used.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-6-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
  20. staging: r8188eu: remove path parameter from phy_RFSerialWrite

    The only caller of phy_RFSerialWrite sets the eRFPath parameter
    to RF_PATH_A. Remove the parameter and use RF_PATH_A directly.
    
    Signed-off-by: Martin Kaiser <martin@kaiser.cx>
    Link: https://lore.kernel.org/r/20220212161737.381841-5-martin@kaiser.cx
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    martin-kaiser authored and gregkh committed Feb 15, 2022
Older