When USB is connected and moisture detected we disable USB_ICL
with LPD_VOTER. This voter is not removed until usb is removed.
Fix this by removing LPD_VOTER vote from ICL when LPD bit is not
set with usb connected.
Change-Id: I188f5d94bc3ec3527ddccf116a6a68a4b9ddea6d
Signed-off-by: Ashish Chavan <quic_ashichav@quicinc.com>
Commit e96fc1eeb8 ("usb: gadget: f_serial: Add support for DUN")
introduced several members in gserial structure but they
are not really used since u_serial does not support TIOCMSET/TIOCMGET
tty ioctls. Drop the dead code so that our generic serial implementation
in f_serial compliant to GKI.
Change-Id: I53fcc77c737f9c0ce021713ec024d36a73c143b8
Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
Fix slot indexing in driver for mmc and sdcard per
new indexing in dt.
Change-Id: Ie960cd9c1a616c1a9d98aa862a3944515d184628
Signed-off-by: Ram Prakash Gupta <quic_rampraka@quicinc.com>
Signed-off-by: Sarthak Garg <quic_sartgarg@quicinc.com>
Add a check to ensure that overflow does not happen in multiplication
operation.
Change-Id: I28ea55c760257775c1bec3fdfb373fe075190cab
Signed-off-by: Naman Jain <quic_namajain@quicinc.com>
Signed-off-by: Kishor Krishna Bhat <quic_kishkris@quicinc.com>
Dump the always on counter when write on fenced register gets
timed out. This will help to sync and analyze GMU traces with dmesg.
Change-Id: Ie69c22f0cb81d52989112a9d0e4aa4cfbfa12030
Signed-off-by: Pankaj Gupta <quic_gpankaj@quicinc.com>
Currently, HAPTICS_EN bit is toggled whenever a FIFO pattern is played
followed by setting Vmax. However, this would issue a SWR_VMAX handshake
and then follow a SPMI_VMAX handshake in HW if haptics effect is played
over SWR bus in the background. This back to back Vmax handshake would
potentially cause the HW not responding and no vibration being played.
To address this, set the Vmax before toggling HAPTICS_EN bit to avoid
back to back Vmax handshakes when SWR and FIFO are played concurrently.
Change-Id: I0b8924ab7f369db446458fe2510a0da01519a978
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
As per the hardware recommendation, MOD_STATUS_XT need to be programmed
before programming MOD_STATUS_SEL to get the correct status data in all
cases. Update it.
Change-Id: Ie66b12cdc702f32ebfad78a72396ad3ac4d14adf
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Currently, when waiting for hBoost ready times out, error code -EBUSY is
returned. In addition to that, reset the FIFO play logic so that the
following FIFO requests can still be served.
Meanwhile, add 100us before updating HAPTICS_EN for hBoost to have
enough time to handle its power transition as per the hardware
recommendation.
Change-Id: Iebfc98b589bda747e4c2b6fdf6ff78d2f46ece5d
Signed-off-by: Fenglin Wu <quic_fenglinw@quicinc.com>
Use lock to protect maps amongst multiple
threads to avoid race condition.
Change-Id: Ib0c83dd38ea8e5acb54a1478d10b02385c27ba31
Signed-off-by: Swathi K <quic_c_kataka@quicinc.com>
This patch allows to reference a net_device from a MACsec context. This
is needed to allow implementing MACsec operations in net device drivers.
Change-Id: I5f6ea8ef00889987bde03ceca88512ead27d936b
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 8fa9137180b2fd8482b671f7e0bd8cf7538cbf59
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Signed-off-by: Akshaya Damodaran <quic_adamodar@quicinc.com>
This patch adds a reference to MACsec ops to the net_device structure,
allowing net device drivers to implement offloading operations for
MACsec.
Change-Id: Iedaffed5dbf005a89a5b79030d1165f1019dd33f
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 30e9bb8472f4454d0544020574bb03d96ffa0e52
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_adamodar@quicinc.com: Fix trivial merge conflicts]
Signed-off-by: Akshaya Damodaran <quic_adamodar@quicinc.com>
This patch introduce a new netdev feature, which will be used by drivers
to state they can perform MACsec transformations in hardware.
The patchset was gathered by Mark, macsec functinality itself
was implemented by Dmitry, Mark and Pavel Belous.
Change-Id: I84cc0abf852a5adb25d3f6d3fd100b1921b66165
Signed-off-by: Antoine Tenart <antoine.tenart@bootlin.com>
Signed-off-by: Mark Starovoytov <mstarovoitov@marvell.com>
Signed-off-by: Igor Russkikh <irusskikh@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Git-commit: 5908220b2b3d6918f88cd645a39e1dcb84d1c5d9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[quic_adamodar@quicinc.com: Moved upstream change in
net/ethtool/common.c to net/core/ethtool.c]
Signed-off-by: Akshaya Damodaran <quic_adamodar@quicinc.com>
Below mentioned is the sequence of operations done during a pr swap.
During the issue scenario, the sleep time of 26 ms is almost coinciding
between src_send_capabilities and snk_select_capabilities. Due to this
sink side is not able to receive accept from the source for the message
request sent. Hence, it does a hard reset.
State changes during working scenario.
Source Sink
SRC_Startup SNK_Startup
SRC_Send_Capabilities
sleeps for 26ms then entertains req
from snk
SNK_Evaluate_Capability
SNK_Select_Capability
send message request to src
expects accept in 26ms or else
does hard reset
Message request received from snk
SRC_Negotiate_Capability
Send message accept
SNK_Transition_Sink
SRC_Ready
SNK_READY
Below is the issue scenario
Source Sink
SRC_Startup SNK_Startup
SRC_Send_Capabilities
sleeps for 26ms then entertains req
from snk
SNK_Evaluate_Capability
SNK_Select_Capability
send message request to src
expects accept in 26ms or else
does hard reset
Message request received from snk
during this 26ms sleep, hence it
could not send accept
Perform hard reset as accept
not received within 26ms
Fix this by processing the request message immediately after it is
received. This makes sure that request message sent from another end
is processed quickly, so that it doesn't cause other end to send
a hard reset.
Change-Id: I7ffc0772df9300f6e56bbb4e4ad9aa3f15b10b8a
Signed-off-by: Rohith Kollalsi <quic_rkollals@quicinc.com>
When the msm_serial driver defer probed, if
msm_uart_next_id increased at the beginning
of probe, should decreased when probe failed.
Change-Id: I8a2594afca17c4ab5fef78da822ffdf39377d0bb
Signed-off-by: Yue Liu <quic_yueliu@quicinc.com>
In case, if mapping of data_buffer or desc_buffer fails in
usb_bam_alloc_buffer, iova of it could be corrupt and there
is no error handling present for that failure. So qdss driver
thinks that qdss_set_data_connection is successful and proceeds
for ep_queue which can lead to usb controller accessing corrupt
iova address outside the dma pool of usb. Fix this by adding
proper error handling in case of data_buffer or desc_buffer
mapping failure.
Change-Id: Id15ab1f90be052ca0fac209dc619b2e740e1531a
Signed-off-by: Rohith Kollalsi <quic_rkollals@quicinc.com>
* refs/heads/tmp-f2bbf1b:
UPSTREAM: drivers core: Use sysfs_emit and sysfs_emit_at for show(device *...) functions
UPSTREAM: x86/pci: Fix the function type for check_reserved_t
Change-Id: Ief8eeb24700579c0817848d4715b49e7a3c5b62d
Signed-off-by: Srinivasarao Pathipati <quic_spathi@quicinc.com>
Changes to port Hy-Fi bridging hooks and to export
br_fdb_find_rcu symbol.
Change-Id: Ife2a9ac76e02fff56b8c4acaa97794df7e98863d
Signed-off-by: Muthuchamy Kumar <quic_muthucha@quicinc.com>
Signed-off-by: Pooventhiran G <quic_pooventh@quicinc.com>
Consider a scenario where user allocates anonymous memory but does not
write to it. Here the physical pages are not yet allocated. Now when this
memory is requested to be imported, a list of newly allocated zero pages
is obtained using get_user_pages(). Currently cache flush is not done for
these pages and hence GPU sees stale data. Fix this by performing cache
flush on these pages.
Change-Id: Id1e8aa20e8a9de112761732ed92f30c01088840b
Signed-off-by: Puranam V G Tejaswi <quic_pvgtejas@quicinc.com>
- Fixed header file and warning complain
- Atl-fwd: Fix name string for mac_phy stats in ethtool-dump
- Atl-fwd: Minor additions to ethtool dump implementation
- Atl-fwd: Add ethtool-dump parser
- ATLDRV-1776: Fix for link flip during IPA ring reconfig
- Atl-fwd: Update crash-dump structure to fixed size structure
- Atl-fwd: Correct driver README file and export couple of APIs
- Atl-fwd: Populate Action resolve table and Ring data in the ethtool-dump
- ATLDRV-1766: Fix to update HWTS ring tail value to HW
- Fix error in populating the extended stats
- AQC113 register dump support
- stats+crashdump implementation draft
- Statistics and crash dump API proposal
- factor out fwd stuff to drop headers dependencies
- ATLDRV-1744] - Add FW version check in Atl-fwd driver
- Move check for PTP UDP packets to separate function, Enable TX pad insert and Handle all FFs in ptp tx TS
- ATLDRV-1582] - Link not Up after FLR reset
- ATLDRV-1653] - Packet with vlan id 1 doesn't get received when rx vlan filter is disabled
- ATLDRV-1659] - Failed to compile with CONFIG_ATLFWD_FWD=y flag on RHEL 8.3 kernel.
Change-Id: Ie1c4a42f9938b0b4dfb26418a755010baadad011
Signed-off-by: Sameer Saurabh <ssaurabh@marvell.com>
Git-commit: d86086216c6d511576d63dd216ab2cc1a8d46309
Git-repo: https://github.com/aquantia/linux-4.14-atlantic-forwarding
Signed-off-by: Raihan Haider <quic_rhaider@quicinc.com>
This change enables UAC1 and UAC2 protocol for USB peripheral
audio on sdxnightjar.
Change-Id: Icb804ab221a79ed2c581cebd7107a3a3055f40fd
Signed-off-by: Rohith Kollalsi <quic_rkollals@quicinc.com>
Add support to check RDDM cookie in ERRDBG1,ERRDBG2 and ERRDBG3
registers to debug the the bootup failure when device
failed to enter MISSION mode.
Change-Id: Idaf00c082ffda97805e958ae083a331d9f0909e9
Signed-off-by: Vivek Pernamitta <vpernami@codeaurora.org>
Signed-off-by: Ramya SR <rsr@codeaurora.org>
e820__mapped_all() is passed as a callback to is_mmconf_reserved(),
which expects a function of type:
typedef bool (*check_reserved_t)(u64 start, u64 end, unsigned type);
However, e820__mapped_all() accepts enum e820_type as the last argument
and this type mismatch trips indirect call checking with Clang's
Control-Flow Integrity (CFI).
As is_mmconf_reserved() only passes enum e820_type values for the
type argument, change the typedef and the unused type argument in
is_acpi_reserved() to enum e820_type to fix the type mismatch.
Bug: 210705746
(cherry picked from commit 83321c335dccba262a57378361d63da96b8166d6)
Reported-by: Sedat Dilek <sedat.dilek@gmail.com>
Suggested-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20201130193900.456726-1-samitolvanen@google.com
Change-Id: I92f78710ac55d5f567ad73053fc9f8c7cef68f71
(cherry picked from commit 7d1d5848183bd1d9086d0572f9af431d3ded407f)
Currently EDL mode works over USB, if PCIe is early
enumerated on the device add support for EDL over PCIe.
Change-Id: I051ef2a5fa4f63890a1044838dd870fa0195b0b7
Signed-off-by: Yogesh Lal <ylal@codeaurora.org>