Commit Graph

14 Commits

Author SHA1 Message Date
Puneeth Prabhu
33daf14122 drivers: soc: qcom: Initialize blocking notifier as per lockdep
Initialize fsa4480 blocking notifier chain head as per the
lockdep annotation to fix the warnings with LOCKDEP enabled.

Change-Id: I771b0d9e1a9c1d28cd9b5bee2d7695ff95178db9
Signed-off-by: Puneeth Prabhu <quic_pprabh@quicinc.com>
2022-02-02 20:58:29 +05:30
qctecmdr
7510911563 Merge "fsa4480: Fix headset not detected during system suspend" 2020-03-19 20:29:26 -07:00
Vatsal Bucha
d560212d1a fsa4480: Fix headset not detected during system suspend
Headset is not detected after system goes into suspend
as sufficient delay is not given after pm_stay_awake
for system to wakeup. Implementing freezable workqeueue
after pm_stay_awake resolves the issue.

Change-Id: Ia104a1577004a4242470f3b4150be23698fc92b1
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-03-18 14:30:21 +05:30
Vatsal Bucha
7ba2b76ac8 drivers: fsa4480: Fix USB re-enumeration failure after PDR
USB re-enumeration failure is coming post PDR due to
switch settings being reset in fsa unreg notifier.
Reset switch settings only for audio adapter to
resolve issue.

Change-Id: I2462a2f1d3679adbd71dd1a7abd30726f7c68e6a
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-03-12 18:21:35 +05:30
Vatsal Bucha
fb6b43d66d drivers: fsa: Fix mute on USB digital hs after SSR
Mute is observed on USB digital headset after SSR due to
headset removal being called. Do not reset switch settings
during fsa unregister to resolve this.

Change-Id: Ia2e349b3913ebfefbf8c19316b2c70b6c314cb92
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2020-02-06 12:22:28 +05:30
Karthikeyan Mani
c3df2e273f drivers: soc: qcom: notify of only usb audio plugs
Notify to FSA driver clients only if it is a audio
accessory plug. Add other type of accessory plug that
FSA driver should notify of if any in the switch condition.

Change-Id: I094835f5bfb950c60c89163443a25849dd0b5b52
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-02-24 21:02:07 -08:00
Meng Wang
b1f812f4e1 drivers: soc: qcom: remove cancel_work from fsa driver
cancel_work is removed in kernel-4.19. Update to
cancel_work_sync.

Change-Id: I081ab94af94f1ec65f63a74a022398a5381a61a9
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2019-02-19 16:30:12 -08:00
qctecmdr Service
6b6d5aa19c Merge "drivers: soc: qcom: enable USB in DisplayPort mode on FSA4480" 2019-01-28 14:29:50 -08:00
Karthikeyan Mani
41e071e67f drivers: soc: qcom: notify drivers registering first time
Send usbc mode at register function so that all drivers
registering first time will get the notification of
current usb connection type, if any.

Change-Id: Ifac7af1ff546a17bc6f382246ae0aeec5194ca9f
Signed-off-by: Karthikeyan Mani <kmani@codeaurora.org>
2019-01-28 10:00:55 +08:00
Tatenda Chipeperekwa
5de036c81c drivers: soc: qcom: enable USB in DisplayPort mode on FSA4480
Program the FSA4480 to enable USB in DisplayPort mode in order
to allow concurrency use cases with USB devices.

CRs-Fixed: 2377072
Change-Id: Ied8d090296dafc91fca17200fc216b1cfc70cbfd
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2019-01-28 09:59:03 +08:00
Vatsal Bucha
55ea5fc9c5 soc: qcom: Cancel workqueue and call pm_relax during fsa4480_remove
During fsa4480_remove cancel scheduled work for usbc_analog_en
and call pm_relax.

Change-Id: I8e09ce56a5c38cf4c7f576edaae761d29ae8322e
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-27 17:39:33 -08:00
Vatsal Bucha
60535a9c0e soc: qcom: Add pm_stay_awake and pm_relax for FSA4480
Fsa driver schedules work to send usbc plug event notificaions
to mbhc but does not hold the system supend.
Add pm calls to hold system suspend
until mbhc notification is complete.

Change-Id: I31116844c592a8d2525605036cb7f0588aadf11f
Signed-off-by: Vatsal Bucha <vbucha@codeaurora.org>
2019-01-27 17:37:18 -08:00
Rishabh Bhatnagar
e9a05bb4d3 spdx: Modify spdx tag from GPL-2.0 to GPL-2.0-only
Modify spdx tag for all CAF authored files for Kona.

Change-Id: I9308c7189412b1e428a7f67ded0dc076b0e38254
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
2018-12-10 11:09:45 -08:00
Phani Kumar Uppalapati
6037f6c581 drivers: soc: qcom: Add snapshot of driver for FSA4480 I2C device
This is a snapshot of driver support for FSA4480 I2C device as of
msm-4.14 commit '96e8162852225049d0a6afcc57dd49c48b8bf170'(Add
driver for FSA4480 I2C device).

Change-Id: Iac392c82a72fe5de469fda094059ef7691772ca8
Signed-off-by: Phani Kumar Uppalapati <phaniu@codeaurora.org>
Signed-off-by: Meng Wang <mengw@codeaurora.org>
2018-10-10 16:59:44 +08:00