| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Get the device UFS spec and populate the descriptor offsets as per
the respective specs.
Bug 200765373
Change-Id: Id9a0d90d1aaf465cc6e581f7155b98cc5bcf0182
Signed-off-by: Mallikarjun Kasoju <mkasoju@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2645541
Tested-by: Prakhar Gupta <prakharg@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: Vikram Kanigiri <vkanigiri@nvidia.com>
Reviewed-by: Rohit Upadhyay <rupadhyay@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
GVS: Gerrit_Virtual_Submit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add lanes, pwr, in ufs sysfs
configuration node.
Bug 200537746
Change-Id: Ib0113c141bc17b66b3e67e0706e92785c21afdf5
Signed-off-by: Achal Verma <achalv@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2252690
GVS: Gerrit_Virtual_Submit
Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com>
Reviewed-by: Hemant Pedanekar <hpedanekar@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If there is any ufs-interrupt triggeres, before scheduling
new work, cancel work which are not yet scheduled.
Bug 200529709
Change-Id: I3d878d30c6ee702fa617980337058b14cc51d218
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/2160067
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 200462174
Change-Id: Id85f39c58ce06415fb48965ed7102702a292260d
Signed-off-by: Dmitry Pervushin <dpervushin@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1994790
(cherry picked from commit 6951ab076f8a66ead2378eb938d6831346d3acc9)
Reviewed-on: https://git-master.nvidia.com/r/2011876
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harsh Sinha <hsinha@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Driver modules need to have GPL license to access functions exported with
EXPORT_SYMBOL_GPL(). Adding license so that it could be used as a module.
bug 200462174
Change-Id: Ic7784c20346e65a4a6d3f96394812d7f008d6314
Signed-off-by: Smriti Sharma <smritis@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1943894
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Chinmay VS <cvs@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Dmitry Pervushin <dpervushin@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Harsh Sinha <hsinha@nvidia.com>
Reviewed-by: Aakriti Gupta <aakritig@nvidia.com>
(cherry picked from commit 33aee4f9b30835721b63ccf4755be6eff23e704a)
Reviewed-on: https://git-master.nvidia.com/r/1969142
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 2172829
Change-Id: I36f4ee4b196e4d561a8f319f81cdde7bbdc110e6
Signed-off-by: Prakhar Gupta <prakharg@nvidia.com>
Change-Id: Ib1bef3e35ed08323842b9abef3ebea7ae2fff862
Reviewed-on: https://git-master.nvidia.com/r/1971020
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Show "UFS card detected" when dme-link startup is
successful
Bug 200466646
Change-Id: Ic4d05951903f5a162b35796c4ef03561207ba2dc
Signed-off-by: Karan Mantri <kmantri@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1966734
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sri Sai Ram Tangirala <stangirala@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Due to mechanical design of superimposed SD and UFS slot,
there are instances of spurious interrupt when
an SD card is inserted or removed. Add support to
ignore such interrupt by rechecking the
card status.
Bug 200440091
Change-Id: I273f10a9a16ca91c9f75b1dbfb02dd1ee781f9c7
(cherry picked from commit 9a5ec466d7b9c8912cba52967bda817ac2ad11bd)
Signed-off-by: Bibek Basu <bbasu@nvidia.com>
Signed-off-by: Sri Sai Ram Tangirala <stangirala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1804321
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support to enable ufs scrambling feature using device
tree property and device should also support it.
Bug 200385100
Change-Id: I616e7f98f7f0e427ebe71d38473d1b7ef6033811
Signed-off-by: Sri Sai Ram Tangirala <stangirala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1728082
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Interrupt number is allocated with gpio_to_irq number and saved in
cd_irq which is used during suspend/resume for enabling/disabling irq.
Do not override cd_irq with the error value.
Also, disabled suspend-resume for the condition when the card is not
present.
Bug 200433759
Bug 200377955
Change-Id: Icff234c82b2b4b83a21734b91b13e433ff3b262a
Signed-off-by: Sri Sai Ram Tangirala <stangirala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1784670
(cherry picked from commit 17b2e2fbf12b26a18a8c46e734ae6e40b4a763df)
Reviewed-on: https://git-master.nvidia.com/r/1803534
GVS: Gerrit_Virtual_Submit
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Interrupt number is allocated with gpio_to_irq number and saved in
cd_irq which is used during suspend/resume for enabling/disabling irq.
Do not override cd_irq with the error value.
Bug 200433759
Bug 200377955
Change-Id: I62e24598ccf55a2602658e06037a5d54b723af43
Signed-off-by: Sri Sai Ram Tangirala <stangirala@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1785221
Reviewed-by: Darren Sun <darrens@nvidia.com>
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Tested-by: Darren Sun <darrens@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Daniel Fu <danifu@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Header padctrl.h is deprecated and no longer need it
in ufs build
bug 200385931
Change-Id: Iacbfe3a02532bdfeb7d4bcc27ec1f262ee4cb2fb
Signed-off-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1787975
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Sri Sai Ram Tangirala <stangirala@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
shutdown needs to be completed in 500 msec
Change-Id: Ib88b6d6f30e381703971583e3332fe6a1326c74b
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1766448
Reviewed-on: https://git-master.nvidia.com/r/1770462
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Rahul Jain (SW-TEGRA) <rahuljain@nvidia.com>
Reviewed-by: Sang-Hun Lee <sanlee@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added code to return error code from program_refclk_debugfs_write
if read or write operation fails
Jira VFF-713
Change-Id: I26ba66866735dd5b0ed1b1725d165405c60d64fe
Signed-off-by: Andy Sobczyk <asobczyk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1711995
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arul Sekar <aruls@nvidia.com>
Reviewed-by: Leo Chiu <lchiu@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Add ufs hot-plug support using gpio in ufs tegra driver
- Add device wakeup support when ufs card inserted in device
suspend state.
- Add callback to enable/disable ufs and mphy clocks
Bug 200370828
Change-Id: Ib3e2fca4cc96510829ad1f893538564ac5c9dd06
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1691813
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Added UFS provisioning support.
Option -U in flash command will access the functions add in this commit.
Accessed UFS Descriptors and Attributes are
1. Attribute: bBootLunEn, bRefClkFreq
2. Configuration Desc. Header field: bBootEnable, bDescrAccessEn
3. Unit Descriptors
Jira VFF-607
Change-Id: Ia546542425f177bc71e0a78839382a73c35ec0da
Signed-off-by: Andy Sobczyk <asobczyk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1692492
Reviewed-by: Suresh Enamuri <senamuri@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support to check if ufs card is present in the slot
or not using gpio assigned to ufs for card detect feature.
Bug 200370828
Bug 200402654
Bug 200389837
Change-Id: Iecaaa2b5b65aa518dcd7610770784c9a9d01018f
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1689186
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Remove check for pm_runtime_get_sync as in the driver code
Bug 2043060
Bug 200385001
Change-Id: I9c85ad0ffe8c42dd08c59affa7557e0578773c15
Signed-off-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1667727
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use pin control framework for ufs pad settings in
ufs tegra driver since pad control framework no longer
be used.
Bug 200389837
Bug 200395455
Change-Id: Ideda3538bc7d309f7084ee57bcb3ede62c691066
Signed-off-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1671208
Reviewed-by: Venkat Reddy Talla <vreddytalla@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 2045567
Change-Id: Ieec7c79ac9f269ef4af3818b24218910d0b6044e
Signed-off-by: dmitry pervushin <dpervushin@nvidia.com>
(cherry picked from commit 808ee4a0fc5a43b5dc21d06aac8cb8868a191af3)
Reviewed-on: https://git-master.nvidia.com/r/1639385
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update the code to avoid invalid pm_runtime_put_sync invocation
Remove check for pm_runtime_put_sync as in the driver code
This returns error in driver code as well and is not checked in driver
Bug 2043060
JIRA ESLC-1378
Change-Id: I0b48a192e4e112aa715777be291cadec67fefe00
Signed-off-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1642404
(cherry picked from commit ee40b7841df7013f33cf0b6f259c17fdd647d9e0)
Reviewed-on: https://git-master.nvidia.com/r/1646240
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Sandeep Trasi <strasi@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Change-Id: I07af974e6d84af21f67356d04b2bc85e4e1b5998
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1649230
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Enable quirk to add RPMB and UFS Device WLUs
WLUs will be added if nvidia,enable-wlu-scsi-device-add is defined in dt
Bug 1964133
Change-Id: I398c2a4b125aa5fb6b3d3a68373592cf7ee9702a
Signed-off-by: Suresh Venkatachalam <skathirampat@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1617073
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- HCLKDIV is used to generate 1usec tick signal used by Unipro
- UFSHC clock is set to 204 MHz, hence the value of HCLKDIV should
be 204, i.e, 204.
Bug 200365372
Change-Id: Ia10da4c243be07d525940732e234bbb2bf053554
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1608181
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 200368330
JIRA EM-5334
Change-Id: Icdb16f4017906386275c74b667abf4cad8aa54b7
Signed-off-by: Vincent Zhang <xunz@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1606116
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Abhinav Site <asite@nvidia.com>
Reviewed-by: Vipin Kumar <vipink@nvidia.com>
Reviewed-by: Sumeet Gupta <sumeetg@nvidia.com>
Reviewed-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 200353534
Change-Id: I78a2b2f273efa1903db7c528f7fc9728e3eed021
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1598453
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-uphy_pll3 operating frequency is different for ufs_ratea
and ufs_rateb series.
-Based on the required ufs series uphy_pll3 should be configured.
Bug 200311795
Change-Id: I4dca057e3da16f699ceca1f9963d3790f86f3cb6
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1593339
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Set ufshc clock to 204 Mhz.
-Set ufsdev ref clock 19.2 MHz.
Bug 200353534
Change-Id: Iad2127350f38e311b0999200156bdfce8898ee92
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1586074
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Update all Kconfig files and Makefiles to rely on the kernel overlay
feature. In particular, don't include any Kconfig files or Makefiles
from other overlays. -I directives in CFLAGS are not yet cleaned up.
Bug 1978395
Change-Id: I425d37d55f8ea61fb3a082a1504f994ff30cec03
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1561187
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Tegra ufs driver is moved to nvidia repo and this would be common
across the kernel versions. Required makefile and kconfig
changes are made to build the tegra ahci driver from new path
Bug 200325777
Change-Id: I6b42341acb576619f3b04e97516b8ea998bd5606
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-un-gate CG_SysClk to make clock running before
disabling HCE.
-Gate CG_SysClk after enabling HCE.
-Define hce_disable notify call back to un_gate CG_SysClk.
Bug 200337158
Change-Id: I76bd9b539a6d49da0c43720cb25fa4cfaaa75bbd
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1557597
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Disable ufs clock before enabling.
-Enable ufs device reset before disabling.
-If ufs is already initialised in bootloader, clock and reset
are to be configured from default reset state.
Bug 200345906
Change-Id: Ie0b8db7631fe76ee55c16751e75bf003071d56e7
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1556783
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use the soc/tegra/pmc.h for PMC header instead of
linux/tegra-pmc.h as this will get removed part of
single PMC driver for all SOCs.
Bug 200260700
Change-Id: Ifec45d773f2bf17deb7675b3a18d1bc11c6773d5
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/1279557
(cherry picked from commit e0b27d20a2e806bb6a2421637e54f70616140583)
Reviewed-on: https://git-master.nvidia.com/r/1540132
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change include missing module.h file to avoid
kernel build error seen for UFS driver.
Also fix break when DEBUG_FS is turned off
Bug 1924210
Change-Id: I06fb8c6d1d36788d32712c019181fce7e2607abb
Signed-off-by: Abhinav Site <asite@nvidia.com>
Reviewed-on: https://git-master/r/1505134
(cherry picked from commit fb43206a9f99f229227d18ab17b56868916bc105)
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1551808
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
UFS Device can be in suspended state when no logical units are
present on the device. In such case, query commands sent to
provision the ufs device fails.
This change adds pm_runtime_get_sync callback before sending query
commands to device, and pm_runtime_put_sync when device provisioning
is completed. These callback ensures that device usage counter is
updated accordingly and device is in active state before provisioning.
Bug 200315040
Change-Id: Ibe63f40073fe495cb94f1c957e8af0368660d724
Signed-off-by: Abhinav Site <asite@nvidia.com>
Reviewed-on: http://git-master/r/1496505
(cherry picked from commit 750c1879ca7c8a2ba584890ac2017083e051f7e1)
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1551807
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Comparison of an unsigned variable against < 0 doesn't serve any purpose.
Remove unnecessary comparisons.
Coverity ID 2567934
Coverity ID 2567932
Change-Id: If9ad0f96f5e6fe28719d64415e2af1ee16a6dbdd
Signed-off-by: Aniruddha TVS Rao <anrao@nvidia.com>
Reviewed-on: http://git-master/r/1491799
(cherry picked from commit 989474f5c534b37f6e16cf4a3e9843eb216637c3)
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1551806
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change add new DT property "nvidia,enable-ufs-provisioning" for
UFS device tree node. This property when defined in UFS DT
node triggers the creation of debugfs entries to support ufs
provisioning.
Bug 1891216
Bug 200288394
Change-Id: I5d3b192ef6e47addab203fe36c2cdb0aaa7272f0
Signed-off-by: Abhinav Site <asite@nvidia.com>
Reviewed-on: http://git-master/r/1480218
(cherry picked from commit 99c772cabe50b8ca2b269098e96f52fb8bd6eaa0)
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1551805
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change:
1.Expose Debugfs entries to program bRefClkFreq
Following entries are created in UFS debugfs node:
- ufs_refclk: Parent folder for refclk programming
- refclkfreq_value: Holds input refclkfreq value
- program_refclkfreq: Trigger refclk programming
2.Expose Debugfs entries to program UFS LUNs
Following entries are created in UFS debugfs node:
- ufs_luns: Parent folder for LUN programming
- lun* : LUN unit descriptor parameters
- program_lun: Trigger LUN programming
3.The debugfs entries exposed do NOT support reading
the existing attribute/descriptor values from the
UFS device. For example the initial values of the
debugfs files do NOT reflect the current state of
the UFS device.
Based on commit:
e8165af ufs: Support for LUN and Refclkfreq Programming
Bug 1891216
Bug 200288394
Change-Id: Ia1a30233c65422c04eace0f2021a4e36a56e7940
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1551804
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-After link start configuration request from Host controller,
burst closure delay needs to be configured to previous default
value.
Bug 200291450
Change-Id: I36a9670946918803acadce5951f3402dbc6a4f1f
Reviewed-on: http://git-master/r/1475172
(cherry picked from commit c1b9c1776bbde6716ebc56a5ef64afc414591522)
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1544688
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Tested-by: R Raj Kumar <rrajk@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
It fixes warnings as error in scsi/ufs drivers.
Bug 200320173
Change-Id: Ifd497d60d062744a84b7455056f409039cbfc6b0
Signed-off-by: Puneet Saxena <puneets@nvidia.com>
Reviewed-on: http://git-master/r/1505400
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The soc tegra headers are unified and moved all the content of
linux/tegra-soc.h to the soc/tegra/chip-id.h to have the
single soc header for Tegra.
Change-Id: I8119717635823a642a08ba3e5eeed4e599f8d0df
Signed-off-by: Shardar Shariff Md <smohammed@nvidia.com>
Reviewed-on: http://git-master/r/1288269
(cherry picked from commit 7c1c5eecae76aad99c6d28c1a812722c8471e448)
Reviewed-on: http://git-master/r/1489076
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Init mphy_force_ls_mode clock handle before using it.
Bug 200278112
Reviewed-on: http://git-master/r/1495908
(cherry picked from commit e9f2e648a2482424b90c7d83214b95ce4530f0ef)
Change-Id: I20c1565f7365285539ed7799a2e40102ace09d56
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1500263
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Enable and Disable mphy_force_ls_mode to keep clocks
in default state.
Bug 200278112
Reviewed-on: http://git-master/r/#/c/1478096/
(cherry picked from commit ce48f7f6df99551aecd2f1d64d800a758fd07a07)
Reviewed-on: http://git-master/r/1477396
(cherry picked from commit f64705b9ee955fb5f2179c83908404daec93ccb3)
Change-Id: Icc7a61d39976f48873694a5d61eec62a14271ee2
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1500262
Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
->Parse nvidia,enable-hibern8-war property to enable
hibernate WAR.
Bug 200317245
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Change-Id: Ie095468407875154706c5619f09c8c15ad2e1352
Reviewed-on: http://git-master/r/1499201
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 200302518
Change-Id: I464ce4a42d4f5febe0fd1842647bd11de3dd929d
Signed-off-by: David Pu <dpu@nvidia.com>
Reviewed-on: http://git-master/r/1472325
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pritesh Raithatha <praithatha@nvidia.com>
Tested-by: Pritesh Raithatha <praithatha@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Before link start configuration request from Host controller,
burst closure delay needs to be configured to 0.
-This setting is recommended by ASIC team.
Bug 200277026
Change-Id: I7f5b1ab4fa98dcc208329e0d89849c2c663a6349
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1302085
(cherry picked from commit 4d36e17224bb912386a24e936fc230fadd578233)
Reviewed-on: http://git-master/r/1460449
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-ufs device supports different ref_clk values, UFS HS modes
will fail if ref_clk value is not set to 19.2 MHz.
-Value 0 indicates that ufs device ref clk is 19.2 MHz.
Bug 1859607
Change-Id: I590dcc3e39e69f87df26f9cc5e28ff61e25023cc
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1297161
(cherry picked from commit 9f951eb98172d48e26d5f227700ebd1e0a2a4b55)
Reviewed-on: http://git-master/r/1460448
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Bug 200244924
Change-Id: Icc5cc489ab2080d925a650b62415bea4e223c021
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1288062
(cherry picked from commit 7ef32aec72048d6ae9c67a21ed95dba17d240d13)
Reviewed-on: http://git-master/r/1460445
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-This patch is needed for fatal error recovery sequence.
-Enable hce_enable_notify call back.
-Keep MPHY clocks in PWM mode before enabling hce.
-Apply reset to ufs device before enabling hce.
-Remove reset after enabling hce.
Bug 200258199
Change-Id: I8058d44defbc2fe994076760d5fc4f32382127b3
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/1273256
(cherry picked from commit d5f8f1433a82246b84f034f5c4be39c4467c26e0)
Reviewed-on: http://git-master/r/1460444
GVS: Gerrit_Virtual_Submit
Reviewed-by: Pavan Kunapuli <pkunapuli@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
-Enable UFS RTPM to keep ufs link in hibernate state
to save power.
-Enable UFS RTPM suspend/resume call backs.
-Set ufs rpm level to UFS_PM_LVL_1.
-UFS_PM_LVL_1: UFS_ACTIVE_PWR_MODE, UIC_LINK_HIBERN8_STATE.
Bug 200222004
Reviewed-on: http://git-master/r/1273812
Change-Id: Ib843f467c77ac558a25e5367f4956d59eb6547cf
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
|