Synopsys USB3 Controller (DWC3) has a restriction where size
of OUT requests (TRB) queued to the controller must be aligned
with the endpoint's max packet size. Generally, MTP userspace
module submits RX requests aligned to 512 bytes which works
fine in High speed mode. But, fails in Super-speed mode where
max packet size can be 1024 bytes.
To overcome this just change the size of RX request buffer
while submitting to DCD as the buffers are already allocated
with the size of 16KB.
Change-Id: I68c32ef3d08b2cf943b52a7269785d0a00146953
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
In case of non-type-c usb cable extcon cable state for
EXTCON_USB_CC returns error and driver bails out. This
causes usb enumeration failure. Hence set the typec_orientation
to ORIENTATION_NONE and continue with usb enumeration.
In case of super speed mode with type-c usb cable even if extcon
cable state return error for EXTCON_USB_CC then also usb device
will get enumerated falling back to high speed mode.
Change-Id: Ibc0b0506b2090f4c090d649f6e3ae7d42b102c93
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Regulatory updates for countries Egypt, Russia, Namibia
Indonesia, Guam and Pakistan.
Change-Id: I96345f025e0da99d595e60b37f34bf581927c153
CRs-Fixed: 1023830
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
Increase the Tx Power for ETSI1 regulatory domain countries. ETSI1
controls the Tx Power for 5 GHz channels. Due to presence of TPC,
the Tx power can be increased by 3 dBm.
Change-Id: I3c450ceae589ec8758eb0f0323140faab0cbc43b
CRs-Fixed: 1023830
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
Add the ability to configure the device led to be used for notifying
the AP activity (60G device supports leds 0-2).
The host can also configure the blinking frequency of the led in
three states.
Change-Id: I3b7770b0cbaec634ca566a82ccc648b6835d75a0
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
git-commit: 10d599ad84a1b98450c8867ce548ea4bf0f6df1a
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
In idle times 60G device can enter deep sleep and turn off
its XTAL clock.
Host access triggers the device power-up flow which will hold
the AHB during XTAL stabilization until device switches from
slow-clock to XTAL clock.
This behavior can stall the PCIe bus for some arbitrary period
of time.
In order to prevent this stall, host can vote for High Latency
Access Policy (HALP) before reading from PCIe bus.
This vote will wakeup the device from deep sleep and prevent
deep sleep until unvote is done.
Change-Id: Ic6bbe8b2aee53d019013159cd21597c2fa0f298f
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
git-commit: 349214c1e7d718684e19dc3559dffe4e62f55296
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
RX_HTRSH interrupt sometimes triggered during device reset
procedure.
To prevent handling this interrupt when not required, unmask
this interrupt only if we are connected and mask it when
disconnected.
Change-Id: I9fa0e28d91d0962fc7f05b2cf92c99c2431a2295
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 54eaa8c69e72dca4c824cd390b616cb48b2c4e30
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
Network stack can try to transmit data while AP / STA is
disconnected.
Change this print-out to debug level as this should not be
handled as error.
This patch also adds wil_dbg_ratelimited, used to limit the
above print-out.
Change-Id: I41eecc91730c60a1851969f8fecf7c201b8b2050
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: d8ed043accdee611bce8be7c4224b4e26bdc2ab5
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
[merez@codeaurora.org: fixed merge conflicts]
When using interrupt moderation RX_HTRSH interrupt can occur
frequently during high throughput and should not be considered
as error.
Such print-outs can degrade the performance hence should be printed
in debug print level.
Change-Id: I570b66886edf949c3d77027d0dc8baf820c5cf0f
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: b523d35b5bffda70bf149cb6ae87c7eb1013dcdd
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
P2P search can only run on the social channel (channel 2).
When issuing a scan request on the P2P_DEVICE interface,
driver ignored the channels argument and always performed a P2P
search.
Fix this by checking the channels argument, if it is
not specified (meaning full scan) or if a non-social channel
was specified, perform a regular scan and not a P2P search.
Change-Id: If1cdfdb2086ff7e3dbf02e9a5920ef3ed0a31280
Signed-off-by: Lior David <qca_liord@qca.qualcomm.com>
Signed-off-by: Maya Erez <qca_merez@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Git-commit: 321a000bfadd5535089a198b42d714a8bf8469b7
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
CRs-Fixed: 1015627
Signed-off-by: Maya Erez <merez@codeaurora.org>
Update the error parsing function name to reflect Kryo2xx silver
and gold processors.
CRs-Fixed: 1024276
Change-Id: Iffdefa9536352dcaf411622b1d99b01b40100ce0
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
Enable the VMEM clock dependencies for msmcobalt.
While at it, cleanup the clock names specified before.
Change-Id: I8a7556626035139e67ec3d722b60b6cf60232f6b
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
Export APIs to WLAN driver to power on/off WLAN hardware.
CRs-Fixed: 1017496
Change-Id: I4b09b7e9ee97129f952d737a530fc04205259f24
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
Driver configures the default country code during bootup.
When STA disconnects, cfg80211 restore the regulatory setting
to world domain.cfg80211 should remain in the default country
code and not restore to world reg domain.
Change-Id: I01ccdc4d2831cf252a4b35f9f856f3256d9b7429
CRs-Fixed: 1023778
Signed-off-by: Sachin Ahuja <sahuja@codeaurora.org>
[joshc: fixed hunk in disconnect_work() - moved
cfg80211_is_all_countryie_ignore() check into new location, collapsed
conditional and use upstream REGULATORY_COUNTRY_IE_IGNORE regulatory
flag]
Signed-off-by: Josh Cartwright <joshc@codeaurora.org>
Fix 4.4 merge issues in zero page support, and add the
missing label.
Change-Id: I4bed7add011e0c9b0e148d1b44132ba1873cf607
Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This flag is a no-op now. Remove usage of the flag.
Change-Id: I8b44c2b2b5928f3bc9ecd9f67dc014fb3bfb13df
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Some qcom SoCs' can have hierarchical power domains. Let the gdsc structs
specify the parents (if any) and the driver add genpd subdomains for them.
Change-Id: Id7faa0b6531ec787484ab17204a524858e6375dd
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
We were not checking the return from devm_add_action() which can fail.
Start using the helper and devm_add_action_or_reset() and return
directly as we know that the cleanup has been done by this helper.
Change-Id: Ie0bb9fed36484bc65b09905bda6b248a17ae2964
(cherry picked from commit 66f5ce2538e06dd6d628e37bbd38c79631274c9f)
Git-commit: 66f5ce2538e06dd6d628e37bbd38c79631274c9f
Git-repo: https://git.linaro.org/landing-teams/working/qualcomm/kernel.git
Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Currently the charger driver sets the charge current based on device tree
property. Allow setting fast charge current (fcc) via power supply (psy)
property. Moreover the current voter for fcc is a min voter, change
that to max voter so that values above what device tree has set can
be used.
Similarly, introduce a max voter for battery float voltage (vfloat) and
set it to defaults via device tree.
CRs-Fixed: 1018090
Change-Id: I691984543f8beb3c52d3d578c7cc311c285a1fcc
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Add information about the interrupt generated by the LMH DCVSh block for
msmcobalt.
This interrupt will be generated whenever the hardware makes a new
decision about the mitigation frequency.
Change-Id: I408fb7e62ef13b21dfea68bb6b878cdbeee411cd
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
LMH DCVSh hardware can send interrupts whenever the hardware mitigation
blocks make a new frequency mitigation vote. scheduler is not aware of
any of the hardware mitigation.
Add support to listen for this interrupt, read the aggregated mitigation
frequency from all LMH DCVSh block and notify scheduler. After receiving
interrupt, poll the hardware periodically for the mitigation frequency
till the mitigation is cleared by hardware. Once the mitigation is
cleared, interrupt is re-enabled.
Change-Id: I38bc0c80710038f135289420d6b20c1ff0ab06eb
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
The system stats driver provides the statistics about system low power
modes and the respective masters' votes into system modes. This is a merge
of rpm-stats and rpm-master-stats modules. The rpm-stats and
rpm-master-stats driver would be eventually deprecated in preference to the
system stats driver.
Change-Id: I8a8842250fe459cb523b607ca379f9a036b4c09b
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
RPM stats and RPM master stats provide the similar information via
different interfaces. Combine them into a single driver to provide a
unified information.
Change-Id: If5a5ef6e080ab6d75139472c5204eb6d5e9c6614
Signed-off-by: Mahesh Sivasubramanian <msivasub@codeaurora.org>
If mdss version is not part of get driver ops function currently we set
the driver ops to NULL. When driver ops is NULL post processing driver
will treat that msm is legacy target and program the post processing
registers. For newer target if get driver ops function is not updated pp
driver will assume it as legacy msm target and programme the registers
incorrectly. Changing the default behaviour to stub function pointers
will ensure that above use-case is gracefully handled.
Change-Id: I03fdf88c741135f83d1939952e76b7460229a284
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Ping Li <pingli@codeaurora.org>
IGC module is updated for mdss V3 version, which needs to be exposed
to user-space. Change adds interface support to expose the IGC module to
user-space clients.
Change-Id: I159bca8278a1638286cc2392bb5b059e067dbb1b
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Ping Li <pingli@codeaurora.org>
Picture adjustment block on msmcobalt mdss supports dithering module.
Module can be programmed by driver clients for a logical display.
Change adds support for enabling the PA dither block.
Change-Id: I8ae05d0f98a33a8608a4caef93d50e4dabad05a1
Signed-off-by: Gopikrishnaiah Anandan <agopik@codeaurora.org>
Signed-off-by: Ping Li <pingli@codeaurora.org>
This change enables the MMC/SD driver support for msmcobalt.
Change-Id: I895e70163e54e5f28c97f592cb203c6576215877
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
Enable support for app specific setting on MSM8996. This
is required for providing an interface so that app specific
settings can be applied / cleared.
CRs-Fixed: 981519
Change-Id: Ice69a77b40dbd98bfff0c8095d78a25424527a2f
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Add support to provide an interface that can be used from
userspace to decide whether app specific settings need to
be applied / cleared when particular processes are running.
CRs-Fixed: 981519 997757
Change-Id: Id81f8b70de64f291a8586150f4d2c7c8f8b4420f
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[satyap@codeaurora.org: trivial merge conflict resolution and pull
fixes for CR: 997757]
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
Check for error codes returned while opening the glink channel
and unregister for notifications only after the channel has
been closed.
Change-Id: Icb92ab9a430d7c49d4aac2d7c53fc6179407d082
Acked-by: Viswanatham Paduchuri <vpaduchu@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
Fix the issue of wrong meq128 word order.
Change-Id: Ifb45db29d5475ede42a11613b99c4504fbe10b54
CRs-Fixed: 1018146
Acked-by: Shihuan Liu <shihuanl@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
We want to put the XO board clocks into the dt files, but we also
need to be backwards compatible with an older dtb. Add an API to
the common code to do this. This also makes a place for us to
handle the case when the RPM clock driver is enabled and we don't
want to register the fixed factor clock.
Change-Id: Ie06e1bb4e6add624787faf0372bafdf0b1126d1c
Cc: Georgi Djakov <georgi.djakov@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Add all data for the GDSCs which are part of msm8996 GCC block
Change-Id: I12323575c44b1a3ba4cb2764a498480b3e62dcaa
Signed-off-by: Rajendra Nayak <rnayak@codeaurora.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Add v4l2 control extensions to allow the video
driver client to enable/disable blur feature in
the firmware.
CRs-Fixed: 975505
Change-Id: I1b340d13bfef3b71d049d53c9bb79e4effafc79a
Signed-off-by: Arun Menon <avmenon@codeaurora.org>
If the driver is loaded when cfg80211_regdom is intersected then
user hint will fail for the first time since cfg80211 does not
have a check to see if cfg80211_regdom is intersected. Add
a check to see if cf80211_regdom is intersected and allow the
user hint to be processed.
Change-Id: Iba9cdd32470e29d35d3bb35012eb404b7c78d601
CRs-Fixed: 639538
Signed-off-by: Mihir Shete <smihir@codeaurora.org>
Export arch_setup_dma_ops symbol.
Some test modules need to call "arch_setup_dma_ops" to setup
the proper dma operations.
CRs-Fixed: 1021445
Change-Id: Ieb8aca4dab96ee8bad7c5ad0a47f83e4316bf990
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
KTM frequency mitigation thread initializes during late init call.
Prior to this, client can request frequency mitigation. But request
will not be processed, since frequency mitigation thread won't be
initialized. Notify frequency mitigation thread to aggregate clients
current request immediately after thread initialization.
Change-Id: Id2425041b14554d58f944794e1b5db273f5ded26
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
This reverts commit 8f90803a45 ("sched: warn/panic upon excessive
scheduling latency") as this feature is no longer used.
Change-Id: I200d0e9e8dad5047522cd02a68de25d4a70a91a4
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
This reverts commit b40bf941f6 ("sched: add scheduling latency
tracking procfs node") as this feature is no longer used.
Change-Id: I5de789b6349e6ea78ae3725af2a3ffa72b7b7f11
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
This has always been unused feature given its limitation of adding
phantom load to the system. Since there are no immediate plans of
using this and the fact that it adds unnecessary complications to
the new load fixup mechanism, remove this feature for now. It can
be revisited later in light of the new mechanism.
Change-Id: Ie9501a898d0f423338293a8dde6bc56f493f1e75
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
Kill unused scheduler knob sched_migration_fixup. With this change
scheduler always adjusts CPU's busy time during migration.
Change-Id: I5d59e89d5cc0f2c705c40036cd7b47f5d3f89e58
Signed-off-by: Joonwoo Park <joonwoop@codeaurora.org>
For multi-rect pipes, driver tries to release the
pipe only when both pipes for both rectangles
are in the destroy list. Current code always
detects that there are two pipes with the same
number in the list, since the first iteration to
look for the pipe in the list always correspond to
the same pipe used as the initial index.
This causes that driver unnecesary halt the dma pipe
when still in use for the second rect that is still not
freed. Fix this issue by making sure the same pipe
objects are not used to check if there are two pipes
with the same index in the release list.
Change-Id: I19268009e76b8535fa4a7aa742a1cfc957f8aece
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
Update the DP PLL node with the correct base address
for PHY and PLL registers.
CRs-Fixed: 1009740
Change-Id: I7194e72a191f2f52dd708c84d5a8ab55f03729fe
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>