Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drivers for BeagleConnect/Greybus air-quality-demo #257

Open
wants to merge 135 commits into
base: 5.4
Choose a base branch
from

Commits on Dec 29, 2020

  1. Configuration menu
    Copy the full SHA
    8e463e3 View commit details
    Browse the repository at this point in the history
  2. CAN_ISOTP: wire up to kconfig/makefile

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ae4b2ed View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a9d28a2 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    7abae39 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    a6c392b View commit details
    Browse the repository at this point in the history
  6. backports: greybus: from: linux.git

    Reference: v5.8.18
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    1428f1c View commit details
    Browse the repository at this point in the history
  7. backports: exfat: from: linux.git

    Reference: v5.6.19
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    112a9ca View commit details
    Browse the repository at this point in the history
  8. backports: typec: from: linux.git

    Reference: v5.5.19
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4001f03 View commit details
    Browse the repository at this point in the history
  9. backports: brcm80211: from: linux.git

    Reference: v5.4.18
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    9ca81d1 View commit details
    Browse the repository at this point in the history
  10. brcmfmac: set F2 blocksize and watermark for 4373

    Set F2 blocksize to 256 bytes for 4373. It fixes DMA error while having
    UDP bi-directional traffic.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    172344a View commit details
    Browse the repository at this point in the history
  11. non-upstream: add sg parameters dts parsing

    broken_sg_support, sd_head_align, and sd_sgentry_align are used in
    brcmfmac code but not configurable in dts file. Add the parsing logic.
    Now they can be configured like below in dts:
    	brcm,broken_sg_support;
    	brcm,sd_head_align = /bits/ 16 <4>;
    	brcm,sd_sgentry_align = /bits/ 16 <4>;
    
    Signed-off-by: Chi-hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    d2f6e05 View commit details
    Browse the repository at this point in the history
  12. brcmfmac: set apsta to 0 when AP starts on primary interface

    APSTA can work on two band concurrently with using VSDB(Virtual
    Simultaneous Dual-Band) or RSDB(Real Simultaneous Dual-Band) features.
    In this case, we have to keep apsta is 1 in firmware side.
    If we start wpa_supplicant on wlan0 and then start hostapd on wlan1, the
    apsta will be set to 0, and data will be stall on wlan0(station).
    Because that, we only set apsta to 0 when AP start on primary interface.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b91e27a View commit details
    Browse the repository at this point in the history
  13. brcmfmac: support AP isolation

    Hostap daemon has a parameter "ap_isolate which is used to prevent
    low-level bridging of frames between associated stations in the BSS.
    For driver side, we add cfg80211 ops method change_bss to support
    setting AP isolation from user space.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    d353c85 View commit details
    Browse the repository at this point in the history
  14. brcmfmac: make firmware eap_restrict a module parameter

    When eap_restrict is enabled, firmware will toss non-802.1x frames from
    tx/rx data path if station not yet authorized.
    Internal firmware eap_restrict is disabled by default. This patch makes
    it possible to enable firmware eap_restrict by specifying
    eap_restrict=1 as module parameter.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b3965b3 View commit details
    Browse the repository at this point in the history
  15. non-upstream: support wake on ping packet

    Host driver needs to provide a dummy wowlan filter for kernel and
    provided the the well configured wowlan stack. So the system will
    keep driver in connected state in suspend mode and can be wake
    up by ping packet.
    
    Enable unicast packet filter before system suspend and disable it after
    resume.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    7e779a9 View commit details
    Browse the repository at this point in the history
  16. non-upstream: remove WOWL configuration in disconnect state

    Set wowl configuration in disconnect state is redundant.
    Remove it to fix no scan result issue after resume.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    8e2d8da View commit details
    Browse the repository at this point in the history
  17. brcmfmac: make setting SDIO workqueue WQ_HIGHPRI a module parameter

    With setting sdio_wq_highpri=1 in module parameters, tasks submitted to
    SDIO workqueue will put at the head of the queue and run immediately.
    This parameter is for getting higher TX/RX throughput with SDIO bus.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    76398f3 View commit details
    Browse the repository at this point in the history
  18. brcmfmac: remove "arp_hostip_clear" from "brcmf_netdev_stop"

    The firmware does not respond ARP request and causes ping failed with
    following steps.
    
    1. Bring up interface
       ifconfig wlan0 up or start wpa_supplicant
    2. Set the IP address
       ifconfig wlan0 192.168.100.10
    3. Bring down interface or
       ifconfig wlan0 down or kill wpa_supplicant
    4. Bring up interface again and set the same IP address
    5. Connect to AP(192.168.100.1) and ping to AP will be failed.
    
    FMAC clears arp_hostip when bringing down the interface, but not set it
    back if setting the same IP address. We are able to see the IP address
    in interface info(inconfig wlan0) but the ping still cannot work because
    the firmware ARP offload does not respond the ARP request.
    Because of that, we remove "arp_hostip_clear" from function
    "brcmf_netdev_stop"
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5acdf64 View commit details
    Browse the repository at this point in the history
  19. brcmfmac: P2P CERT 6.1.9-Support GOUT handling P2P Presence Request

    Send P2P Presence Response from the p2p interface address instead
    of the p2p device address.
    
    Signed-off-by: Madhan Mohan R <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Madhan Mohan R authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c5fae3c View commit details
    Browse the repository at this point in the history
  20. brcmfmac: only generate random p2p address when needed

    P2p spec mentioned that the p2p device address should be the globally
    administered address with locally administered bit set. Therefore,
    follow this guideline by default.
    
    When the primary interface is set to a locally administered address, the
    locally administered bit cannot be set again. Generate a random locally
    administered address for this case.
    
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    80206b8 View commit details
    Browse the repository at this point in the history
  21. brcmfmac: increase max hanger slots from 1K to 3K in fws layer

    commit 	2bc50d8 upstream.
    
    Will enable FMAC to push more packets to bus tx queue and help
    improve throughput when fws queuing is enabled. This change is
    required to tune the throughput for passing WMM CERT tests.
    
    Signed-off-by: Madhan Mohan R <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Madhan Mohan R authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    13d4bc3 View commit details
    Browse the repository at this point in the history
  22. brcmfmac: map 802.1d priority to precedence level based on AP WMM params

    In WLAN, priority among various access categories of traffic is
    always set by the AP using WMM parameters and this may not always
    follow the standard 802.1d priority.
    In this change, priority is adjusted based on the AP WMM params
    received as part of the Assoc Response and the same is later used
    to map the priority of all incoming traffic.
    
    This change should fix the following 802.11n certification tests:
    * 5.2.31 ACM Bit Conformance test
    * 5.2.32 AC Parameter Modification test
    
    Signed-off-by: Saravanan Shanmugham <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    saro78 authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c5a8b80 View commit details
    Browse the repository at this point in the history
  23. brcmfmac: set state of hanger slot to FREE when flushing PSQ

    When USB or SDIO device got abnormal bus disconnection, host driver
    tried to clean up the SKBs in PSQ and TXQ. The SKBs pointer in hanger
    linked to PSQ and TSQ, so we should set the state of skb hanger slot
    to BRCMF_FWS_HANGER_ITEM_STATE_FREE before freeing skb. In
    brcmf_fws_bus_txq_cleanup it already set BRCMF_FWS_HANGER_ITEM_STATE_FREE
    before freeing SKB, therefore we add this in brcmf_fws_psq_flush to
    avoid following warning message.
    
       [ 1580.012880] ------------   [ cut here ]------------
       [ 1580.017550] WARNING: CPU: 3 PID: 3065 at
    drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c:49
    brcmu_pkt_buf_free_skb+0x21/0x30 [brcmutil]
       [ 1580.184017] Call Trace:
       [ 1580.186514]  brcmf_fws_cleanup+0x14e/0x190 [brcmfmac]
       [ 1580.191594]  brcmf_fws_del_interface+0x70/0x90 [brcmfmac]
       [ 1580.197029]  brcmf_proto_bcdc_del_if+0xe/0x10 [brcmfmac]
       [ 1580.202418]  brcmf_remove_interface+0x69/0x190 [brcmfmac]
       [ 1580.207888]  brcmf_detach+0x90/0xe0 [brcmfmac]
       [ 1580.212385]  brcmf_usb_disconnect+0x76/0xb0 [brcmfmac]
       [ 1580.217557]  usb_unbind_interface+0x72/0x260
       [ 1580.221857]  device_release_driver_internal+0x141/0x200
       [ 1580.227152]  device_release_driver+0x12/0x20
       [ 1580.231460]  bus_remove_device+0xfd/0x170
       [ 1580.235504]  device_del+0x1d9/0x300
       [ 1580.239041]  usb_disable_device+0x9e/0x270
       [ 1580.243160]  usb_disconnect+0x94/0x270
       [ 1580.246980]  hub_event+0x76d/0x13b0
       [ 1580.250499]  process_one_work+0x144/0x360
       [ 1580.254564]  worker_thread+0x4d/0x3c0
       [ 1580.258247]  kthread+0x109/0x140
       [ 1580.261515]  ? rescuer_thread+0x340/0x340
       [ 1580.265543]  ? kthread_park+0x60/0x60
       [ 1580.269237]  ? SyS_exit_group+0x14/0x20
       [ 1580.273118]  ret_from_fork+0x25/0x30
       [ 1580.300446] ------------   [ cut here ]------------
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    2e8eb67 View commit details
    Browse the repository at this point in the history
  24. brcmfmac: add RSDB condition when setting interface combinations

    commit 	837482e upstream.
    
    With firmware RSDB feature
    1. The maximum support interface is four.
    2. The maximum difference channel is two.
    3. The maximum interfaces of {station/p2p client/AP} are two.
    4. The maximum interface of p2p device is one.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Soeren Moch <[email protected]>
    Reviewed-by: Chi-Hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    21e0ebb View commit details
    Browse the repository at this point in the history
  25. brcmfmac: not set mbss in vif if firmware does not support MBSS

    commit 2635853 upstream.
    
    With RSDB mode, FMAC and firmware are able to create 2 or more AP,
    so we should not set mbss in vif structure if firmware does not
    support MBSS feature.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Soeren Moch <[email protected]>
    Reviewed-by: Chi-Hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    25d6a4e View commit details
    Browse the repository at this point in the history
  26. brcmfmac: support the second p2p connection

    With RSDB feature, firmware is able to support two P2P-AGO or two
    P2P-GC at the same time. So we add the second p2p connection type
    to maps to driver's second P2P connection bsscfg.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    a019130 View commit details
    Browse the repository at this point in the history
  27. brcmfmac: add support for BCM4359 SDIO chipset

    commit 6581154be4a2b0f77ff789b09fade7c14ec3078c upstream.
    
    BCM4359 is a 2x2 802.11 abgn+ac Dual-Band HT80 combo chip and it
    supports Real Simultaneous Dual Band feature.
    
    Based on a similar patch by: Wright Feng <[email protected]>
    
    Signed-off-by: Soeren Moch <[email protected]>
    Acked-by: Chi-Hsien Lin <[email protected]>
    Acked-by: Ulf Hansson <[email protected]>
    s-moch authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c243372 View commit details
    Browse the repository at this point in the history
  28. brcmfmac: send port authorized event for FT-802.1X

    commit be898fe upstream.
    
    With FT-802.1X, driver should send a port authorized event right after
    sending a roamed event. It is used to indicate that a new AP is already
    authorized so 802.1X is not required.
    
    Acked-by: Arend van Spriel <[email protected]>
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    0ecd78e View commit details
    Browse the repository at this point in the history
  29. brcmfmac: add vendor ie for association responses

    Miracast Certification clause 6.1.2 may fail if there is no WFD IE
    in P2P assoc response. This change allows WFD IE to be added to P2P assoc
    response.
    
    Related WFA certification.
    6.1.2 P-SnUT operating as a Group Owner accepts a WFD Session
    with a Reference Source
    
    Signed-off-by: Ryohei Kondo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Ryohei Kondo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    54947fc View commit details
    Browse the repository at this point in the history
  30. brcmfmac: fix 4339 CRC error under SDIO 3.0 SDR104 mode

    This patch fixes 4339 CRC error while running Tput test with
    suspend/resume test script.
    
    The continuous failure messages before system crash:
    brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84
    brcmfmac: brcmf_sdio_rxglom: glom read of 25600 bytes failed: -5
    brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
    brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84
    brcmfmac: brcmf_sdio_rxglom: glom read of 24576 bytes failed: -5
    brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c26ea4e View commit details
    Browse the repository at this point in the history
  31. brcmfmac: fix the incorrect return value in brcmf_inform_single_bss().

    commit bd99449 upstream.
    
    The function brcmf_inform_single_bss returns the value as success,
    even when the length exceeds the maximum value.
    The fix is to send appropriate code on this error.
    This issue is observed when SVT reported random fmac crashes
    when running their tests and the path was identified from the
    crash logs. With this fix the random failure issue in SVT was
    resolved.
    
    Reviewed-by: Arend van Spriel <[email protected]>
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    3cd37da View commit details
    Browse the repository at this point in the history
  32. brcmfmac: Fix double freeing in the fmac usb data path

    commit78179869dc3f5c0059bbf5d931a2717f1ad97ecd upstream.
    
    When the brcmf_fws_process_skb() fails to get hanger slot for
    queuing the skb, it tries to free the skb.
    But the caller brcmf_netdev_start_xmit() of that funciton frees
    the packet on error return value.
    This causes the double freeing and which caused the kernel crash.
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    97d79ab View commit details
    Browse the repository at this point in the history
  33. brcmfmac: Fix driver crash on USB control transfer timeout

    commit	93a5bfb upstream.
    
    When the control transfer gets timed out, the error status
    was returned without killing that urb, this leads to using
    the same urb. This issue causes the kernel crash as the same
    urb is sumbitted multiple times. The fix is to kill the
    urb for timeout transfer before returning error
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    86e6ee5 View commit details
    Browse the repository at this point in the history
  34. brcmfmac: avoid network disconnection during suspend with linux-3.8 a…

    …nd above kernel
    
    From linux-3.8 kernel, wowlan packet filter is mandated to avoid
    the disconnection of connected network before suspend in commit
    8125696 ("cfg80211/mac80211: disconnect on suspend").
    So as a dummy wowlan filter is configured for kernels linux-3.8
    and above. Later all private command implementation of packet
    filters can be moved to wowlan based filters.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ce6d014 View commit details
    Browse the repository at this point in the history
  35. brcmfmac: allow credit borrowing for all access categories

    Current credit borrowing allows only the access category BE to
    borrow the credits. This change is to fix the credit borrowing
    logic, to make borrowing available for all access categories
    and also to borrow only from the lower categories.
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Jia-Shyr Chuang <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    541b37c View commit details
    Browse the repository at this point in the history
  36. non-upstream: Changes to improve USB Tx throughput.

    The inbound buffer been duplicated and returned to
    the upper layer to increase the througput.
    
    Below the improvement observed in different traffic
    UDP Rx	UDP Tx	TCP Rx	TCP Tx
    237	138	161	71	Without Tx improvement
    238	155	162	137	With Tx improvement
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ff5c2b4 View commit details
    Browse the repository at this point in the history
  37. brcmfmac: reset two D11 cores if chip has two D11 cores

    commit 1b8d2e0 upstream.
    
    There are two D11 cores in RSDB chips like 4359. We have to reset two
    D11 cores simutaneously before firmware download, or the firmware may
    not be initialized correctly and cause "fw initialized failed" error.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Soeren Moch <[email protected]>
    Reviewed-by: Chi-Hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    235d5bd View commit details
    Browse the repository at this point in the history
  38. brcmfmac: introduce module parameter to configure default PM mode

    Add module parameter max_pm to allow using PM_MAX as default power
    management mode. Default PM mode is set to PM_MAX when max_pm=1, and is
    set to PM_FAST when max_pm=0 or max_pm is not set.
    
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    3b1e286 View commit details
    Browse the repository at this point in the history
  39. brcmfmac: configure wowl parameters in suspend function only if firmw…

    …are support wowl
    
    This patch removes the redundant wowl configuration for none wowl
    FW.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ce28f6e View commit details
    Browse the repository at this point in the history
  40. brcmfmac: keep SDIO watchdog running when console_interval is non-zero

    brcmfmac host driver makes SDIO bus sleep and stops SDIO watchdog if no
    pending event or data. As a result, host driver does not poll firmware
    console buffer before buffer overflow, which leads to missing firmware
    logs. We should not stop SDIO watchdog if console_interval is non-zero
    in debug build.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5976803 View commit details
    Browse the repository at this point in the history
  41. brcmfmac: To fix kernel crash on out of boundary access

    To trunkcate the addtional bytes, if extra bytes been received.
    Current code only have a warning and proceed without handling it.
    But in one of the crash reported by DVT, these causes the
    crash intermittently. So the processing is limit to the skb->len.
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    17dc218 View commit details
    Browse the repository at this point in the history
  42. brcmfmac: reduce maximum station interface from 2 to 1 in RSDB mode

    The firmware state machines are not fully suitable for concurrent
    station interface support, it may hit unexpected error if we have 2
    different SSIDs and the roaming scenarios concurrently.
    To avoid the bad user-experience if this is not fully validated, we
    dis-allow user to create two concurrent station interfaces.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    d75f940 View commit details
    Browse the repository at this point in the history
  43. brcmfmac: validate ifp pointer in brcmf_txfinalize

    We got ifp null pointer kernel panic in brcmf_txfinalize after removing
    Wi-Fi USB dongle when data was transmitting, The root cause is that
    interface was removed before calling brcmf_txfinalize in
    brcmf_fws_dequeue_worker and finally caused kernel panic.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    72b56f6 View commit details
    Browse the repository at this point in the history
  44. brcmfmac: clean up iface mac descriptor before de-initializing it

    We saw following warning message after removing USB Wi-Fi dongle with
    data connection. The root cause is that some skb were queued in iface
    mac descriptor psq and occupied the hanger slots, and we didn't de-queue
    the skb before de-initializing iface mac descriptor. So it triggered
    WARN_ON when cleaning up hanger slot eventually.
    
    backports/drivers/net/wireless/broadcom/brcm80211/brcmutil/utils.c:49
    brcmu_pkt_buf_free_skb+0x21/0x30 [brcmutil]
    [  977.523200] Modules linked in: brcmfmac(OE) brcmutil(OE) cfg80211(OE)
    compat(OE) sdhci_pci(OE) sdhci(OE) mmc_core(OE) rfkill ip6table_filter
    ip6_tables ebtable_nat ebtables dns_resolver fscache e1000e mei_me mei
    tpm_tis tpm_tis_core tpm iTCO_wdt ppdev iTCO_vendor_support pcspkr
    lpc_ich i2c_i801 mfd_core ptp pps_core parport_pc parport wmi uinput
    tcp_bic i915 iosf_mbi i2c_algo_bit drm_kms_helper drm i2c_core video
    [last unloaded: brcmfmac]
    [  977.523219] CPU: 1 PID: 1306 Comm: kworker/1:1 Tainted: G
    OE   4.12.0 beagleboard#1
    [  977.523220] Hardware name:                  /DH77EB, BIOS
    EBH7710H.86A.0100.2013.0312.1351 03/12/2013
    [  977.523223] Workqueue: usb_hub_wq hub_event
    [  977.523224] task: ffff880118703600 task.stack: ffffc90000be4000
    [  977.523226] RIP: 0010:brcmu_pkt_buf_free_skb+0x21/0x30 [brcmutil]
    [  977.523227] RSP: 0018:ffffc90000be7a98 EFLAGS: 00010086
    [  977.523228] RAX: 0000000000000045 RBX: ffffffffa03fa850 RCX:
    0000000000000006
    [  977.523228] RDX: 0000000000000000 RSI: 0000000000000092 RDI:
    ffff8801106a3ce8
    [  977.523229] RBP: ffffc90000be7a98 R08: 0000000000000000 R09:
    000000000000045b
    [  977.523229] R10: 0000000000000001 R11: 0000000000aaaaaa R12:
    0000000000000988
    [  977.523230] R13: ffff880110569938 R14: 0000000000000002 R15:
    ffff8801106a3ce8
    [  977.523231] FS:  0000000000000000(0000) GS:ffff88011f280000(0000)
    knlGS:0000000000000000
    [  977.523232] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
    [  977.523232] CR2: 00007f7873490000 CR3: 0000000001c09000 CR4:
    00000000001406e0
    [  977.523233] Call Trace:
    [  977.523244]  brcmf_fws_cleanup+0x1f2/0x230 [brcmfmac]
    [  977.523251]  brcmf_fws_del_interface+0x70/0x90 [brcmfmac]
    [  977.523257]  brcmf_proto_bcdc_del_if+0xe/0x10 [brcmfmac]
    [  977.523262]  brcmf_remove_interface+0x69/0x190 [brcmfmac]
    [  977.523267]  brcmf_detach+0x90/0xe0 [brcmfmac]
    [  977.523273]  brcmf_usb_disconnect+0x76/0xb0 [brcmfmac]
    [  977.523275]  usb_unbind_interface+0x72/0x260
    [  977.523279]  device_release_driver_internal+0x141/0x200
    [  977.523280]  device_release_driver+0x12/0x20
    [  977.523282]  bus_remove_device+0xfd/0x170
    [  977.523283]  device_del+0x1d9/0x300
    [  977.523284]  usb_disable_device+0x9e/0x270
    [  977.523286]  usb_disconnect+0x94/0x270
    [  977.523287]  usb_disconnect+0x1f1/0x270
    [  977.523288]  hub_event+0x76d/0x13b0
    [  977.523291]  process_one_work+0x144/0x360
    [  977.523293]  worker_thread+0x4d/0x3c0
    [  977.523294]  kthread+0x112/0x150
    [  977.523295]  ? rescuer_thread+0x340/0x340
    [  977.523296]  ? kthread_park+0x60/0x60
    [  977.523298]  ? SyS_exit_group+0x14/0x20
    [  977.523300]  ret_from_fork+0x25/0x30
    [  977.523301] Code: 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 85
    ff 74 15 48 83 3f 00 55 48 89 e5 75 0d be 01 00 00 00 e8 82 5a 3e e1 5d
    f3 c3 <0f> ff eb ef 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 55
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    9c38ff6 View commit details
    Browse the repository at this point in the history
  45. brcmfmac: To fix Bss Info flag definition Bug

    Bss info flag definition need to be fixed from 0x2 to 0x4
    This flag is for rssi info received on channel.
    All Firmware branches defined as 0x4 and this is bug in brcmfmac.
    
    Signed-off-by: Prasanna Kerekoppa <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Prasanna Kerekoppa authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    0f70803 View commit details
    Browse the repository at this point in the history
  46. brcmfmac: disable command decode in sdio_aos for 4356

    AOS is a part of the SDIOD core that becomes active when the rest of
    SDIOD is sleeping to keep SDIO bus alive responding to reduced set of
    commands.
    
    Transaction between AOS and SDIOD is not protected, and if cmd 52 is
    received in AOS and in the middle of response state changed from AOS to
    SDIOD, response is corrupted and it causes to SDIO Host controller to
    hang.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4da49b8 View commit details
    Browse the repository at this point in the history
  47. brcmfmac: increase default max WOWL patterns to 16

    4373 has support of 16 WOWL patterns thus increasing the default value
    
    Signed-off-by: Ryohei Kondo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Ryohei Kondo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    7466704 View commit details
    Browse the repository at this point in the history
  48. non-upstream: Enable, Process, and forward PHY_TEMP event.

    New code enables PHY_TEMP event in firmware, receives it, processes
    into cfg80211 vendor specific event, and forwards to waiting host.
    
    -1- Enable rx PHY_TEMP event from underlying hardware
    -2- Process PHY_TEMP event into vendor specific event
    -3- Forward vendor specific event to host layer
    
    Signed-off-by: Robert Trask <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Robert Trask authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    d5d4eeb View commit details
    Browse the repository at this point in the history
  49. brcmfmac: Use FW priority definition to initialize WMM AC priority array

    It was observed that TCP Tx/Rx and UDP Tx showed very low throughput
    when fcmode=2. This is caused by incorrect default FIFO priority.
    BK FIFO queue was used for default 802.1D BE priority traffic.
    Hostapd relies on the correct priority setting to deliver good
    throughput.
    
    Signed-off-by: Justin Li <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Justin Li authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    77bb17a View commit details
    Browse the repository at this point in the history
  50. brcmfmac: Fix P2P Group Formation failure via Go-neg method

    P2P group formation fails since either peer is not able to send go-neg
    confirm or dut is not able to send go-neg response. To fix this, retry
    limit should be increased and dwell time check should be added.
    
    Signed-off-by: Jia-Shyr Chuang <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Jia-Shyr Chuang authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4a62d58 View commit details
    Browse the repository at this point in the history
  51. brcmfmac: Add P2P Action Frame retry delay to fix GAS Comeback Respon…

    …se failure issue
    
    It was observed that P2P Cert. 5.1.19: DEVUT responds to Service
    Discovery request failed due to DUT did not send GAS Comeback Response
    after receiving request from test bed P2P peer. To fix this issue,
    we need to add P2P Action Frame retry delay to enhance P2P connection
    under VSDB and noisy environment, since the peer can be in other
    channels under VSDB.
    
    Signed-off-by: Justin Li <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Justin Li authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    cc34bb6 View commit details
    Browse the repository at this point in the history
  52. brcmfmac: Use default FW priority when EDCA params same for all ACs

    In brcmfmac driver, all ACs were assgined a FW priority based on the
    EDCA parameters from AP. In a specific scenario where EDCA parameters
    are configured to be same for all ACs, we propose to use the default
    FW priority definition to avoid queuing packets of all ACs to the
    same priority queue.
    Also in case of fcmode=2, throughput of any AC would have depended on
    available credits of a single AC, without this fix.
    
    Fixes 11AC CERT 5.2.33 TXOP Limit test
    
    Signed-off-by: Madhan Mohan R <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Madhan Mohan R authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    14640db View commit details
    Browse the repository at this point in the history
  53. brcmfmac: fix continuous 802.1x tx pending timeout error

    The race condition in brcmf_msgbuf_txflow and brcmf_msgbuf_delete_flowring
    makes tx_msghdr writing after brcmf_msgbuf_remove_flowring. Host
    driver should delete flowring after txflow complete and all txstatus back,
    or pend_8021x_cnt will never be zero and cause every connection 950
    milliseconds(MAX_WAIT_FOR_8021X_TX) delay.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c7532d6 View commit details
    Browse the repository at this point in the history
  54. brcmfmac: add sleep in bus suspend and cfg80211 resume functions

    With asynchronous suspend/resume feature, suspend and resume callbacks to
    be executed in parallel with each other. It makes bus changes the state to
    BRCMF_BUS_DOWN before all brcmf_cfg80211_suspend IOVAR executions.
    The same situation also happens in resume procedure and causes PM mode
    keeps in PM_MAX after resume. In order to fix the race condition, We add
    one second sleep in bus suspend and cfg80211 resume function.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5222fc2 View commit details
    Browse the repository at this point in the history
  55. brcmfmac: fix 43455 CRC error under SDIO 3.0 SDR104 mode

    This patch fixes 43455 CRC error while running throughput test with
    suspend/resume stress test.
    
    The continuous failure messages before system crash:
    brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84
    brcmfmac: brcmf_sdio_rxglom: glom read of 25600 bytes failed: -5
    brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
    brcmfmac: brcmf_sdiod_sglist_rw: CMD53 sg block read failed -84
    brcmfmac: brcmf_sdio_rxglom: glom read of 24576 bytes failed: -5
    brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ef3542f View commit details
    Browse the repository at this point in the history
  56. brcmfmac: set F2 blocksize and watermark for 4359

    commit e0029595fa0f7afe284b51dcf6d43704c2f9f88b upstream.
    
    Set F2 blocksize to 256 bytes and watermark to 0x40 for 4359. Also
    enable and configure F1 MesBusyCtrl. It fixes DMA error while having
    UDP bi-directional traffic.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    [slightly adapted for rebase on mainline linux]
    Signed-off-by: Soeren Moch <[email protected]>
    [use switch-case to replace if-else for F2 blksz setting]
    Reviewed-by: Chi-Hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    21651b8 View commit details
    Browse the repository at this point in the history
  57. brcmfmac: reserve 2 credits for host tx control path

    It is observed that sometimes when sdiod is low in tx credits in low
    rssi scenarios, the data path consumes all sdiod rx all credits and
    there is no sdiod rx credit available for control path causing host
    and card to go out of sync resulting in link loss between host and
    card. So in order to prevent it some credits are reserved for control
    path.
    
    Note that TXCTL_CREDITS can't be larger than the firmware default
    credit update threshold 2; otherwise there will be a deadlock for both
    side waiting for each other.
    
    Signed-off-by: Amar Shankar <[email protected]>
    Signed-off-by: Jia-Shyr Chuang <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Amar Shankar authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    f21168a View commit details
    Browse the repository at this point in the history
  58. brcmfmac: update tx status flags to sync with firmware

    There is a mismatch of tx status flag values between host and firmware.
    It makes the host mistake the flags and have incorrect behavior of credit
    returns. So update the flags to sync with the firmware ones.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    f0ba829 View commit details
    Browse the repository at this point in the history
  59. brcmfmac: fix credit reserve for each access category

    Commit 7f52880c5ecd ("brcmfmac: Allow credit borrowing for all access
    categories") added a ratio to reserve the credits for each access
    category. However, calculating the number of reserved credits with the
    runtime one let an access category lend all its credits. Fix this by
    using the number of initial credits to determine the reserved one.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    2afcc6b View commit details
    Browse the repository at this point in the history
  60. brcmfmac: fix throughput zero stalls on PM 1 mode due to credit map

    This patch move the credit map setting to right place to avoid
    brcmf_fws_return_credits() return without setting the credit map.
    It fix the thoughput zero stalls issue in softAP mode when STA
    using PM 1 mode.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    9e1778d View commit details
    Browse the repository at this point in the history
  61. brcmfmac: 43012 Update MES Watermark

    Set MES watermark size to 0x50 for 43012. It fixes SDIO bus hang issue
    when running at high throughput.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    bed0a2e View commit details
    Browse the repository at this point in the history
  62. brcmfmac: add support for CYW89359 SDIO chipset

    Add support for CYW89359 SDIO chipset. CYW89359 is a 2x2 dual-band 11ac chipset
    with 20/40/80Mhz channel support.
    
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    144f7cf View commit details
    Browse the repository at this point in the history
  63. brcmfmac: add CYW43570 PCIE device

    CYW43570 is a 3-antenna, 2x2 MIMO,802.11a/b/g/n/ac, PCIe 3.0 for WLAN.
    It is BT/WIFI combo.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Soontak Lee authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4b24b39 View commit details
    Browse the repository at this point in the history
  64. brcmfmac: Use seq/seq_len and set iv_initialize when plumbing of rxiv…

    … in (GTK) keys
    
    When plumbing rxiv for (GTK) keys, current code does not use seq/seq_len
    when present nor set iv_initialized for iovar wsec_key. This could
    result in missing broadcast traffic after GTK rekey. The fix is setting
    iv_initialized and using seq/seq_len for iovar wsec_key.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Soontak Lee authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    eeb0ede View commit details
    Browse the repository at this point in the history
  65. brcmfmac: use actframe_abort to cancel ongoing action frame

    The driver sends an action frame down and waits for dwell time to be
    completed or aborted before sending out the next action frame.
    Driver issues "scan abort" to cancel the current time slot, but this
    doesn't have any effect because, we are not using scan engine for
    sending action frame.
    Fix is to use "actframe_abort" to cancels the current action frame.
    
    Signed-off-by: Ryohei Kondo <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Ryohei Kondo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5aee53d View commit details
    Browse the repository at this point in the history
  66. brcmfmac: fix scheduling while atomic issue when deleting flowring

    We should not sleep while holding the spin lock. It makes
    'scheduling while atomic' in brcmf_msgbuf_delete_flowring.
    And to avoid race condition between deleting flowring and txflow,
    we only hold spin lock when seting flowring status to RING_CLOSING.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c11140c View commit details
    Browse the repository at this point in the history
  67. brcmfmac: increase message buffer size for control packets

    In wifi firmware, max length of IOCTL/IOVAR buffer size is 8192.
    Increase the message buffer max size same as wifi firmware for control
    packets so return buffers can come back.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Jia-Shyr Chuang <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    chuangjiashyr authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    0673a01 View commit details
    Browse the repository at this point in the history
  68. brcmfmac: Support 89459 pcie

    Adds support of 89459 chip pcie device and save restore support.
    
    Signed-off-by: [email protected] <[email protected]>
    Signed-off-by: Joseph chuang <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    alep1983 authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    dfba28e View commit details
    Browse the repository at this point in the history
  69. brcmfmac: Fix for unable to return to visible SSID

    Unable to change back to visiable SSID because there is
    no disable hidden ssid routine.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Soontak Lee authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4922148 View commit details
    Browse the repository at this point in the history
  70. brcmfmac: Fix for wrong disconnection event source information.

    Add event source argument on link down handler.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Soontak Lee authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    8547859 View commit details
    Browse the repository at this point in the history
  71. brcmfmac: add support for SAE authentication offload

    commit 3b1e0a7 upstream.
    
    The firmware may have SAE authentication code built-in. This is
    detected by the driver and indicated in the wiphy features flags.
    User-space can use this flag to determine whether or not to provide
    the password material for SAE authentication in the nl80211 CONNECT
    command.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    97c34ff View commit details
    Browse the repository at this point in the history
  72. brcmfmac: Support multiple AP interfaces and fix STA disconnection issue

    Support multiple AP interfaces for STA + AP + AP usecase.
    And fix STA disconnection when deactivating AP interface.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Soontak Lee authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    fe050f8 View commit details
    Browse the repository at this point in the history
  73. brcmfmac: Support custom PCIE BAR window size.

    Certain host processors cannot support 4MB PCIE BAR window size.
    For example, AMLogic A113D can support 2MB size only.
    This patch is for host processor which support lower than 4MB
    PCIE BAR window size.
    
    Signed-off-by: Soontak Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Soontak Lee authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    7ab6625 View commit details
    Browse the repository at this point in the history
  74. brcmfmac: set F2 blocksize and watermark for 4354

    Set F2 blocksize to 256 bytes and watermark to 0x40 for 4354.
    Also enable and configure F1 MesBusyCtrl. It would resolve random
    driver crash issue.
    
    Signed-off-by: Frank Kao <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Frank Kao authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b7fc807 View commit details
    Browse the repository at this point in the history
  75. brcmfmac: support for virtual interface creation from firmware

    Allow interface creation via IF_ADD event from firmware.
    
    Signed-off-by: Lo(Double)Hsiang Lo <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    SWLINUX-1291
    Lo(Double)Hsiang Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b620685 View commit details
    Browse the repository at this point in the history
  76. brcmfmac: set security after reiniting interface

    Host driver parses and sets security params into FW passed by
    supplicant. This has to be done after reiniting interface in the
    firmware.
    
    Signed-off-by: Jia-Shyr Chuang <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    chuangjiashyr authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    8fa2741 View commit details
    Browse the repository at this point in the history
  77. brcmfmac: increase dcmd maximum buffer size

    Increase dcmd maximum buffer size to match firmware
    configuration for new chips.
    
    Signed-off-by: Lo(Double)Hsiang Lo <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    SWLINUX-1273
    Lo(Double)Hsiang Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    9ee88be View commit details
    Browse the repository at this point in the history
  78. brcmfmac: set F2 blocksize and watermark for 4356 SDIO

    Set F2 blocksize to 256 bytes and watermark to 0x40 for 4356 SDIO.
    Also enable and configure F1 MesBusyCtrl. It would resolve random
    driver crash issue.
    
    Signed-off-by: Frank Kao <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Frank Kao authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    0e8bb40 View commit details
    Browse the repository at this point in the history
  79. brcmfmac: set net carrier on via test tool for AP mode

    Host parses ioctl cmd via test tool, then set itself iftype to ap
    mode and report netif_carrier_on to upper layer
    
    Signed-off-by: Kurt Lee <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    SWLINUX-1322
    Kurt Lee/TAIPEI authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    53c5ff0 View commit details
    Browse the repository at this point in the history
  80. nl80211: add authorized flag back to ROAM event

    Commit 503c1fb ("cfg80211/nl80211: add a port authorized event")
    added the NL80211_CMD_PORT_AUTHORIZED event to indicate that a
    connection is authorized. It replaced the PORT_AUTHORIZED attribute and
    the authorized flag added in commit f45cbe6
    ("nl80211: add authorized flag to ROAM event").
    
    However, for offload FT, using PORT_AUTHORIZED event mechanism induces
    wpa_supplicant to start a full EAP exchange after a successful roaming.
    This patch adds the flag mechanism back to the ROAM event for drivers
    to fix the offload FT roaming issue.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    dbfdba9 View commit details
    Browse the repository at this point in the history
  81. brcmfmac: set authorized flag in ROAM event for offload FT roaming

    When using PORT_AUTHORIZED event mechanism for offload FT,
    wpa_supplicant started a full EAP exchange after a successful roaming.
    It was caused by setting portEnabled to FALSE to get EAP state machine
    out of the SUCCESS state and eapSuccess cleared when handling ROAM
    event in wap_supplicant.
    
    With this patch, the authorized flag in the ROAM event is used to
    indicate the connection is authorized. Wpa_supplicant sets portEnabled
    according to the flag and no full EAP exchange is performed after the
    roaming.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ef387eb View commit details
    Browse the repository at this point in the history
  82. brcmfmac: set authorized flag in ROAM event for PMK caching

    With 4-way handshake offload for 802.1X authentication, the authorized
    flag in ROAM event should be set for a successful roaming with PMK
    caching. The roaming is identified by checking the existence of PMKID
    within the (Re)Association Request frame with this patch.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c72a828 View commit details
    Browse the repository at this point in the history
  83. nl80211: add authorized flag to CONNECT event

    Add authorized flag to CONNECT event. It is used for 802.1X 4-way
    handshake offload with PMK caching.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    9ed16b3 View commit details
    Browse the repository at this point in the history
  84. brcmfmac: set authorized flag in CONNECT event for PMK caching

    With 4-way handshake offload for 802.1X authentication, the authorized
    flag in CONNECT event should be set for a successful connection with
    PMK caching. The connection is identified by checking the existence of
    PMKID within the Association Request frame with this patch.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    3e4727b View commit details
    Browse the repository at this point in the history
  85. brcmfmac: add support for Opportunistic Key Caching

    The firmware may have OKC management. This is detected by the driver and
    supported via providing the PMK. The authorized flag in ROAM event
    should be set for a successful roaming with OKC.
    
    Signed-off-by: Darren Li <[email protected]>
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    53b7900 View commit details
    Browse the repository at this point in the history
  86. nl80211: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode

    Let drivers advertise support for AP-mode WPA/WPA2-PSK 4-way handshake
    offloading with a new NL80211_EXT_FEATURE_4WAY_HANDSHAKE_AP_PSK flag.
    
    Extend use of NL80211_ATTR_PMK attribute indicating it might be passed
    as part of NL80211_CMD_START_AP command, and contain the PSK (which is
    the PMK, hence the name).
    
    The driver is assumed to handle the 4-way handshake by itself in this
    case, instead of relying on user space.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    96fa9cf View commit details
    Browse the repository at this point in the history
  87. brcmfmac: support 4-way handshake offloading for WPA/WPA2-PSK in AP mode

    Firmware may have authenticator code built-in. This is detected by the
    driver and indicated in the wiphy features flags. User space can use
    this flag to determine whether or not to provide the pre-shared key
    material in the nl80211 start AP command to offload the 4-way handshake
    in AP mode.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    f097adf View commit details
    Browse the repository at this point in the history
  88. nl80211: support SAE authentication offload in AP mode

    Add support for SAE authentication offload in AP mode.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    d1ef613 View commit details
    Browse the repository at this point in the history
  89. brcmfmac: support SAE authentication offload in AP mode

    Firmware may have SAE authenticator code built-in. This is detected by
    the driver and indicated in the wiphy features flags. User space can use
    this flag to determine whether or not to provide the password material
    in the nl80211 start AP command to offload the SAE authentication in AP
    mode.
    
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    d81977f View commit details
    Browse the repository at this point in the history
  90. brcmfmac: add USB autosuspend feature support

    commit 7f1d423 upstream.
    
    We add enable dynamic suspend (autosuspend) support in host driver, and
    it can let platform cut down idle power consumption.
    To support autosuspend feature in host driver, kernel need to be built
    with CONFIG_USB_SUSPEND and autosuspend need to be turn on.
    And we also replace wowl feature with adding "needs_remote_wakeup", so
    that host still can be waken by wireless device.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    Signed-off-by: Kalle Valo <[email protected]>
    Link: https://lore.kernel.org/r/[email protected]
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5248286 View commit details
    Browse the repository at this point in the history
  91. brcmfmac: To support printing USB console messages

    This change is to add support for printing the firmware
    console messges of a USB interface chip to the host.
    To enable this feature, build option '-msgtrace' should be
    enabled in the firmware. And in the host, debug=0x100000
    should be provided as a module parameter.
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Raveendran Somu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    adfef23 View commit details
    Browse the repository at this point in the history
  92. brcmfmac: reset SDIO bus on a firmware crash

    commit 4684997 ("brcmfmac: reset PCIe bus on a firmware crash")
    adds a reset function to recover firmware trap for PCIe bus. This commit
    adds an implementation for SDIO bus.
    
    Upon SDIO firmware trap, do below:
     - Remove the device
     - Reset hardware
     - Probe the device again
    
    Signed-off-by: Chi-Hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    0099240 View commit details
    Browse the repository at this point in the history
  93. brcmfmac: fix for WPA/WPA2-PSK 4-way handshake and SAE offload failures

    An incorrect value of use_fwsup is set for 4-way handshake offload for
    WPA//WPA2-PSK, caused by commit 3b1e0a7 ("brcmfmac: add support for
    SAE authentication offload"). It results in missing bit
    BRCMF_VIF_STATUS_EAP_SUCCESS set in brcmf_is_linkup() and causes the
    failure. This patch correct the value for the case.
    
    Also setting bit BRCMF_VIF_STATUS_EAP_SUCCESS for SAE offload case in
    brcmf_is_linkup() to fix SAE offload failure.
    
    Fixes: 3b1e0a7 ("brcmfmac: add support for SAE authentication
    offload")
    Signed-off-by: Chung-Hsien Hsu <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Chung-Hsien Hsu authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b3d51c7 View commit details
    Browse the repository at this point in the history
  94. non-upstream: Fix no P2P IE in probe requests issue

    This reverts commit bd99a30.
    
    The original parameter "vif" is updated in brcmf_p2p_scan_prep()
    but the new code does not get the same vif.
    
    Fixes: bd99a30 ("brcmfmac: move configuration of probe request IEs")
    Signed-off-by: Ting-Ying Li <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Ting-Ying Li authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    6a2246e View commit details
    Browse the repository at this point in the history
  95. brcmfmac: add 54591 PCIE device

    Support 54591 PCIE device.
    
    Signed-off-by: Double Lo <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Double Lo authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    1a88919 View commit details
    Browse the repository at this point in the history
  96. brcmfmac: support DS1 exit firmware re-download

    In deep sleep mode (DS1) ARM is off and once exit trigger comes than
    mailbox Interrupt comes to host and whole reinitiation should be done
    in the ARM to start TX/RX.
    
    Also fix below issus for DS1 exit:
    1. Sent Tx Control frame only after firmware redownload complete (check
    F2 Ready before sending Tx Control frame to Firmware)
    2. intermittent High DS1 TX Exit latency time (almost 3sec) ==> This is
    fixed by skipping host Mailbox interrupt Multiple times (ulp state
    mechanism)
    3. RX GlOM save/restore in Firmware
    4. Add ULP event enable & event_msgs_ext iovar configuration in FMAC
    5. Add ULP_EVENT_RECV state machine for sbwad support
    6. Support 2 Byte Shared memory read for DS1 Exit HUDI implementation
    
    Signed-off-by: Praveen Babu C <[email protected]>
    Signed-off-by: Naveen Gupta <[email protected]>
    [Merge from 4.14.77 to 5.4.18; set BRCMF_SDIO_MAX_ACCESS_ERRORS to 20]
    Signed-off-by: Chi-hsien Lin <[email protected]>
    praveenCY authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c9ed6dd View commit details
    Browse the repository at this point in the history
  97. brcmfmac: fix 43012 insmod-after-rmmod in DS1 failure.

    After entering ULP, issuing rmmod does not put chip in
    sane state because of which next insmod fails.
    Fix includes writing into few LHL, PMU registers.
    
    Signed-off-by: Nitin Bhaskar <[email protected]>
    [Merge from 4.14.77 to 5.4.18]
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Nitin Bhaskar authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    659d520 View commit details
    Browse the repository at this point in the history
  98. brcmfmac: fix 43012 driver reload failure after DS1 exit

    Device is left in non-responding state when unloading driver in non-DS1
    state if it ever enters DS1 at least once. It leaves that state only
    after a hard reset or power cycle 43012.
    
    Signed-off-by: David Weng <[email protected]>
    [Merge from 4.14.77 to 5.4.18]
    Signed-off-by: Chi-hsien Lin <[email protected]>
    SWWLAN-137253
    David Weng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    bc06d7d View commit details
    Browse the repository at this point in the history
  99. brcmfmac: reset PMU, backplane & all cores in CYW4373 during rmmod

    To do a clean reset of the chip during rmmod brcmfmac, program
    the PmuWatchdogCounter register. When a watchdog reset occurs,
    the PMU, backplane and all of the cores in the chip are reset.
    
    Signed-off-by: Madhan Mohan R <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Madhan Mohan R authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    140ee7e View commit details
    Browse the repository at this point in the history
  100. brcmfmac: do not disconnect for disassoc frame from unconnected AP

    Ignore FW event if the event's BSSID is different form the BSSID of the
    currently connected AP. Check interface state is connected or not, if
    state is not connected that can ignore link down event.
    
    Signed-off-by: Able Liao <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Able Liao authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    dd8f661 View commit details
    Browse the repository at this point in the history
  101. brcmfmac: Set pacing shift before transmitting skb to bus

    Linux 3.6 introduces TSQ which has a per socket threshold for TCP Tx
    packet to reduce latency. In flow control mode , host driver enqueues skb
    in hanger and TCP doesn't push new skb frees until host frees the skb when
    receiving fwstatus event. So set pacing shift 8 to send them as a single
    large aggregate frame to the bus layer.
    
    43455 TX TCP throughput in FC mode 2 on Linux 5.4.18
    sk_pacing_shift : Throughput
    10: 190 Mbps
     9: 216 Mbps
     8: 233 Mbps (Max throughput)
     7: 233 Mpbs
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ee68f32 View commit details
    Browse the repository at this point in the history
  102. brcmfmac: fix 802.1d priority to ac mapping for pcie dongles

    802.1d defines 0,3 for BE and 1,2 for BK. In pcie dongles, 0 & 3 are
    mapped to 0 and 1,2 are mapped to 1. This change corrects this mapping,
    so that BE & BK are given access precedence accordingly by pcie dongles.
    
    Signed-off-by: Pramod Prakash <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Pramod Prakash authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    a6c3f15 View commit details
    Browse the repository at this point in the history
  103. non-upstream: calling skb_orphan before sending skb to SDIO bus

    Linux 3.6 introduces TSQ which has a per socket threshold for TCP Tx
    packet to reduce latency. In fcmode 1/2, host driver enqueues skb in
    hanger and TCP doesn't push new skb frees until host frees the skb when
    receiving fwstatus event. So using skb_orphan before sending skb to bus
    will make the skb removing the ownership of socket. With this patch, we
    got better throughput in fcmode 1/2.
    
    We only call skb_orphan when Linux version is less than 4.16.0.
    
    Tested 43455 TCP throughput in 20 MHz bandwidth with/without this patch.
    fcmode 0: 59.5 / 59.6 (Mbps)
    fcmode 1: 59.3 / 23.4 (Mbps)
    fcmode 2: 59.6 / 21.5 (Mbps)
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    WenChieh-Feng authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    14156a8 View commit details
    Browse the repository at this point in the history
  104. non-upstream: workaround for 4373 USB WMM 5.2.27 test failure

    With the addition of skb_orphan in the datapath, though the throughput
    increases in TX path, it introduces an issue by removing the flowcontrol
    from upper layer and allowing more data to flow for different access
    category.
    
    This workaround is to disable using skb_orphan when running multi-stream
    data. This change will not be required in linux 4.15 and later versions.
    
    We only use this feature when Linux version is less than 4.16.0.
    
    Signed-off-by: Raveendran Somu <[email protected]>
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Madhan Mohan R authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    b86bd27 View commit details
    Browse the repository at this point in the history
  105. brcmfmac: disable command decode in sdio_aos for 4373

    AOS is a part of the SDIOD core that becomes active when the rest of
    SDIOD is sleeping to keep SDIO bus alive responding to reduced set of
    commands.
    
    Transaction between AOS and SDIOD is not protected, and if cmd 52 is
    received in AOS and in the middle of response state changed from AOS to
    SDIOD, response is corrupted and it causes to SDIO Host controller to
    hang.
    
    Signed-off-by: Chi-hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    e8eb9fa View commit details
    Browse the repository at this point in the history
  106. brcmfmac: disable command decode in sdio_aos for 4339

    AOS is a part of the SDIOD core that becomes active when the rest of
    SDIOD is sleeping to keep SDIO bus alive responding to reduced set of
    commands.
    
    Transaction between AOS and SDIOD is not protected, and if cmd 52 is
    received in AOS and in the middle of response state changed from AOS to
    SDIOD, response is corrupted and it causes to SDIO Host controller to
    hang.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    6777477 View commit details
    Browse the repository at this point in the history
  107. brcmfmac: disable command decode in sdio_aos for 43455

    AOS is a part of the SDIOD core that becomes active when the rest of
    SDIOD is sleeping to keep SDIO bus alive responding to reduced set of
    commands.
    
    Transaction between AOS and SDIOD is not protected, and if cmd 52 is
    received in AOS and in the middle of response state changed from AOS to
    SDIOD, response is corrupted and it causes to SDIO Host controller to
    hang.
    
    Signed-off-by: Wright Feng <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    cy-chihsien authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    228dbf1 View commit details
    Browse the repository at this point in the history
  108. brcmfmac: support the forwarding packet

    - Support packet forwarding mechanism on fmac driver
      for some special usages on PCIE. Please ref to JIRA.
    - Fixed BE/VI priority issue when pumping iperf
    - Fix for linux coding style
    
    Signed-off-by: Jia-Shyr Chuang <[email protected]>
    Signed-off-by: Ting-Ying Li <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    chuangjiashyr authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    e1b2145 View commit details
    Browse the repository at this point in the history
  109. brcmfmac: add a variable for packet forwarding condition

    Some firmware does not support disabling "ap_isolate"
    via iovar. Therefore, get iovar "ap_isolate" value after
    setting to determine whether fmac driver should turn on
    host-based packet forwarding.
    
    Signed-off-by: Ting-Ying Li <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Ting-Ying Li authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    8c5352d View commit details
    Browse the repository at this point in the history
  110. non-upstream: don't change arp/nd offload in multicast_work

    Commit 6c219b0 ("brcmfmac: disable packet filtering in promiscuous
    mode") adds brcmf_configure_arp_nd_offload() configuration according to
    promiscuous mode in _brcmf_set_multicast_list(). It will always enable
    arp/nd offload when the device is not in promiscuous mode without
    considering the interface role. Enabling ARP offload for STA/SAP
    concurent mode has caused the AP interface to send ARP responses with
    incorrect mac address.
    
    Remove the arp/nd offload setting line as a workaround for now.
    
    Signed-off-by: Ting-Ying Li <[email protected]>
    Signed-off-by: Chi-hsien Lin <[email protected]>
    Ting-Ying Li authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    149b1c8 View commit details
    Browse the repository at this point in the history
  111. cleanup brcmfmac patchset

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5968325 View commit details
    Browse the repository at this point in the history
  112. ar1021_i2c.c: introduce invert/swap/offsets options

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    035edbb View commit details
    Browse the repository at this point in the history
  113. Fix remoteproc to work with the PRU GNU Binutils port

    PRU IRAM addresses need to be masked before being handled to
    remoteproc. This is due to PRU Binutils' lack of separate address
    spaces for IRAM and DRAM.
    
    Signed-off-by: Dimitar Dimitrov <[email protected]>
    dinuxbg authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    bbd8b48 View commit details
    Browse the repository at this point in the history
  114. sound: give us SND_SOC_PCM5102A

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c0f4dc0 View commit details
    Browse the repository at this point in the history
  115. NFM: spi: spidev: allow use of spidev in DT

    This reverts commit 956b200.
    
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4e63b4e View commit details
    Browse the repository at this point in the history
  116. HACK: tps65217_pwr_but

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    fa26612 View commit details
    Browse the repository at this point in the history
  117. Configuration menu
    Copy the full SHA
    102c90c View commit details
    Browse the repository at this point in the history
  118. cpsw: search for phy

    I have encountered the same issue(s) on A6A boards.
    
    I couldn't find a patch,  so I wrote this patch to update the device tree
    in the davinci_mdio driver in the 3.15.1 tree, it seems to correct it. I
    would welcome any input on a different approach.
    
    https://groups.google.com/d/msg/beagleboard/9mctrG26Mc8/SRlnumt0LoMJ
    
    v4.1-rcX: added hack around CONFIG_OF_OVERLAY
    v4.2-rc3+: added if (of_machine_is_compatible("ti,am335x-bone")) so we do
    not break dual ethernet am335x devices
    
    Signed-off-by: Robert Nelson <[email protected]>
    Jay at Control Module Industries authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    683733f View commit details
    Browse the repository at this point in the history
  119. quiet: 8250_omap.c use pr_info over pr_err

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    957f592 View commit details
    Browse the repository at this point in the history
  120. ti_am335x_tsc.c driver

    ------=_Part_422_1349561576.1515022447432
    Content-Type: text/plain; charset="UTF-8"
    
    Hello all,
    
    The TI touch screen driver does not work _right_ with the libts-bin package
    in the jessie image.
    
    $ cat /etc/dogtag
    BeagleBoard.org Debian Image 2018-01-01
    
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 8.10 (jessie)
    Release:        8.10
    Codename:       jessie
    
    $ dpkg -l | grep  libts-bin
    ii  libts-bin                             1.14-1rcnee0~jessie+20171122
                          armhf        touch screen library utilities
    
    $ sudo ts_calibrate
    ts_setup: No such file or directory
    
    It is possible to make it work by setting the TSLIB_TSDEVICE environment
    variable:
    
    $ sudo su
    # export TSLIB_TSDEVICE=/dev/input/event2
    # ts_calibrate
    
    But, that's a bit of a pain since the environment variable always needs to
    be set in order to use the touchscreen.
    
    It appears that this version of the utilities uses the INPUT_PROP_DIRECT
    propbit to automatically detect which /dev/input/event device is the
    touchscreen.
    
    It looks like the following is the only change needed to make it work.
    
    Unfortunately, I don't have currently have a way to build a custom kernel
    for the BeagleBone in order to test it. If there is anyone that could I
    would
    appreciate it.
    
    Regards,
    Hartley
    [email protected] authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    998b50a View commit details
    Browse the repository at this point in the history
  121. ti_am335x_tsc: correct formula code to calculate pressure; fix touchs…

    …creen jitter problem
    fagle authored and RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    4f69a41 View commit details
    Browse the repository at this point in the history
  122. BeagleBone pinmux helper

    Authors:
    Pantelis Antoniou <[email protected]>
    Charles Steinkuehler <[email protected]>
    Jason Kridner <[email protected]>
    Robert Nelson <[email protected]>
    Tobias Müller <[email protected]>
    Matthijs van Duin <[email protected]>
    
    This patch was derived from 19 commits:
    https://github.com/RobertCNelson/linux-dev/tree/35e301ae8436e9f56f65bf1a7440021eda42f948/patches/drivers/ti/gpio
    
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    18b0fba View commit details
    Browse the repository at this point in the history
  123. hack: gpiolib: yes we have drivers stomping on each other, we need to…

    … find a better way to share gpio...
    
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    ef8a288 View commit details
    Browse the repository at this point in the history
  124. Overlays: Port RPi Overlay building

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    5b9f34f View commit details
    Browse the repository at this point in the history
  125. bootup hacks: move mmc early

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    58c19fb View commit details
    Browse the repository at this point in the history
  126. bootup-hacks: xor select neon or arm4regs

    already default on BBB/X15, just calcuated everybootup
    
    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    8df3586 View commit details
    Browse the repository at this point in the history
  127. builddeb: Install our dtbs under /boot/dtbs/$version

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    07d679b View commit details
    Browse the repository at this point in the history
  128. enable: Jenkins: http://gfnd.rcn-ee.org:8080

    Signed-off-by: Robert Nelson <[email protected]>
    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    c1748d4 View commit details
    Browse the repository at this point in the history
  129. 5.4.70-ti-r20 patchset

    RobertCNelson committed Dec 29, 2020
    Configuration menu
    Copy the full SHA
    01cc45c View commit details
    Browse the repository at this point in the history
  130. Configuration menu
    Copy the full SHA
    8297e66 View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2021

  1. RFC : mikroBUS driver for add-on boards

    change log:
    - v2:   remove debug interfaces for adding and deleting mikrobus
      ports, add mikrobus ports via device-tree, handle pinmux, consider
      extended usage of mikrobus pins from normal configuration
    
    Signed-off-by: Vaishnav M A <[email protected]>
    
    Rebased-by: Jason Kridner <[email protected]>
    vaishnavachath authored and jadonk committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    c87f1b1 View commit details
    Browse the repository at this point in the history
  2. mikroBUS build fixes

    Jason Kridner authored and jadonk committed Jan 3, 2021
    Configuration menu
    Copy the full SHA
    ccae755 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e0707fe View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    f3a8e2f View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2021

  1. Add scd30 driver

    jadonk committed Jan 12, 2021
    Configuration menu
    Copy the full SHA
    8b1c65f View commit details
    Browse the repository at this point in the history