5 Commits

Author SHA1 Message Date
Jon Hunter
93e7024e0a usb: typec: Disable async suspend for fusb301
Upstream commit aa7a9275ab81 ("PM: sleep: Suspend async parents after
suspending children") triggers a suspend issue on Tegra234 Jetson
Orin Nano boards because it had reordered the suspend of devices with
async suspend enabled with respect to some other devices. This commit
is present in Linux v6.16 kernels.

The same issue was observed with the cypd4226 Type-C controller used on
other Jetson platforms and due to its dependencies on other devices it
is necessary to disable async suspend to fix the issue [0]. Fix suspend
for Tegra234 Jetson Nano platforms by disabling 'async' suspend for the
fusb301 device. Note that it is safe to disable this for all kernel
versions.

[0] https://lore.kernel.org/lkml/6180608.lOV4Wx5bFT@rjwysocki.net/

JIRA LINQPJ14-73

Change-Id: If08932406c43bca2736164a2fdd96a5a4b9fa81c
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3404885
(cherry picked from commit 21686177a6d395701cc8f19088090142657899a0)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3411825
GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
2025-07-24 10:20:36 +00:00
Laxman Dewangan
1eab65044c i2c: Use conftest to find return type of .remove of i2c_driver struct
Use conftest to determine the return type of .remove() of
struct i2c_driver is int or void type instead of kernel version.

The return type got changed with commmit ed5c2f5fd10d ("i2c:
Make remove callback return void")

Bug 4387902

Change-Id: Id64466613156e0efaf6cce7492d70cab1c1d1af7
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3036799
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
Reviewed-by: Bitan Biswas <bbiswas@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-12-18 22:09:58 -08:00
Laxman Dewangan
2884c4b380 i2c: Use conftest to find if i2c driver probe has i2c_device_i2d arg
Determine if probe of struct i2c_driver has i2c_device_id argument
or not.

This argument get removed from commit 03c835f498b5 ("i2c: Switch
.probe() to not take an id parameter") form Linux 6.3.

Bug 4346767

Change-Id: Ife73b29946246fce5bfcedcabe15992432d86348
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3030809
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
2023-12-08 18:37:09 -08:00
Jim Lin
5c6720246f usb: typec: Setting same toggle time is not error
Invoking fusb301_set_toggle_time() with input parameter same as
current register value to set toggle time shouldn't be treated as
error.

This patch is to change message level from dev_err() to dev_info()
when above situation is met.

Bug 4218496

Signed-off-by: Jim Lin <jilin@nvidia.com>
Change-Id: Ieab7cfe8ae8496ca4a5f3b514d9e278479f200d0
Reviewed-on: https://git-master.nvidia.com/r/c/linux-5.10/+/2946869
(cherry picked from commit 2a53cb0010a449ffd5ce6d6afe7f39dc5d020e65)
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2990991
Reviewed-by: svcacv <svcacv@nvidia.com>
Reviewed-by: Haotien Hsu <haotienh@nvidia.com>
Reviewed-by: WK Tsai <wtsai@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-10-06 20:12:11 -07:00
Wayne Chang
5fe0f39e06 usb: typec: Add fusb301 driver support
The change adds fusb301 driver support on k5.15.

Bug 4119758

Signed-off-by: Wayne Chang <waynec@nvidia.com>
Change-Id: I9af363b46e71853c1681c68396dff7f5e9036d6a
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2917816
Tested-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Brad Griffis <bgriffis@nvidia.com>
Reviewed-by: Bibek Basu <bbasu@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
2023-08-10 00:26:01 -07:00