This patch adds support for the DualSense when operating in Bluetooth mode.
The device has the same behavior as the DualShock 4 in that by default it
sends a limited input report (0x1), but after requesting calibration data,
it switches to an extended input report (report 49), which adds data for
touchpad, motion sensors, battery and more.
Bug: 167947264
CRs-fixed: 2971837
Change-Id: I6ba3eb018f9938b71bb63cb70b26e4acdcfb788a
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Reviewed-by: Barnabás Pőcze <pobrn@protonmail.com>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Farid Chahla <farid.chahla@sony.com>
Signed-off-by: Siarhei Vishniakou <svv@google.com>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
Git-commit: 799b2b533a299ba5b64ddd22639836c2a5eaee31
Signed-off-by: Kishor Krishna Bhat <kishkris@codeaurora.org>
Added support for new comanche 1.3 soc ID
CRs-Fixed: 2942015
Change-Id: I2f1be9127db74614b9d5c2f797468da85559c60e
Signed-off-by: Prateek Raj Singh <pratsing@codeaurora.org>
Add ARCH_KHAJE support in the Kconfig platform.
Change-Id: I78a4efd9a3534fb5dc68d5523a2bb96551b39d44
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
Add socinfo support for khaje SoC, providing SOC ID info
and dt binding info.
Change-Id: Iec428bf3f48642a26026c33788d0a964c5cd165c
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
Enable config CONFIG_DEBUG_FS to support /sys/kernel/debug for msm8937_64.
Change-Id: I451b9b8f4b92b4009d04004dd2a1c367b0a46835
Signed-off-by: Vishnu Satheesh <vsathees@codeaurora.org>
The Lucid PLL could require the FSM legacy mode bit to be set for the
PLL to be operational, thus add support and set the same when the flag
is set.
While at it also update the Zonda disable function to remove the
additional offset usage.
Change-Id: I3ed4b6c38a1769c5021f17e0115215eab615ab62
Signed-off-by: Taniya Das <tdas@codeaurora.org>
Changes done to copy num of rules from user space to
kernel side as earlier only payload was being copied.
And it is needed to check if user space payload is
not modified in between.
Change-Id: I14e15fe0c6746226cc44d224d33c00e809cd69ca
Signed-off-by: Armaan Siddiqui <asiddiqu@codeaurora.org>
deleting entries of CONFIG_SECURITY_PERF_EVENTS_RESTRICT from
all defconfig files as this feature is removed.
Change-Id: Ifd46126617ce5455e2010e8bde061854cbd3b82c
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Sometimes IB1_BASE from register does not match with IB1 of the
ring buffer, this may happen while doing save restore of IB
during preemption. In such case, to dump IB1 in snapshot, check
for overlap between IB1_BASE and IB1 from the ring buffer and
dump IB1 in snapshot as per ring buffer's IB1 base and size.
Change-Id: Ic3af8678a11f20f447fcbcbd3ec209283619b96a
Signed-off-by: Pankaj Gupta <gpankaj@codeaurora.org>
In haptics pattern/brake debugfs file write operation functions,
strsep() is used iteratively to split the user-passed string into
tokens for setting parameters. However, strsep() modifies the pointer
passed and hence the same pointer cannot be used in kfree(). Fix this
by copying the pointer originally allocated by kmalloc() and use it
in kfree() as well. While at it, change kmalloc() to kzalloc().
Change-Id: I5a4c08db32683dfe5e4fefbce146fee1ac6cb88b
Signed-off-by: Fenglin Wu <fenglinw@codeaurora.org>
For invalid ioctl inputs from user, kgsl already returns -ENOIOCTLCMD error
code. Avoid flooding kernel log with such errors.
Change-Id: Iaf9c8eb0c51b221738482e2b4b02289913a2878e
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Add support to check channel remote state while doing
a send. Added a wake_up_interruptible call to
unblock send api and release the mutex lock so that
channel close and reopen can happen gracefully.
Change-Id: Ifcf0dad1d9f9f4d4404d62920f1b9d2f1d45ba16
Signed-off-by: Vivek Golani <vgolani@codeaurora.org>
Modify the logic to iterate the frequency array &
fetch the proper data rate.
Change-Id: Ia4eaf66d0446cc39bb5b7c75c111390d3472c0eb
Signed-off-by: Vandana Jain <vandja@codeaurora.org>
Read MHI state from MSA and export API to get MHI state.
Add SMP2P handshakes according to below sequence to manage
PCI EP low power state.
1. Host driver calls prevent_l1.
2. ICNSS sends SMP2P to FW with PCI_EP_POWER_SAVE_EXIT.
3. FW bring EP out of power save and update in memory
location.
4. Once Host reads updated value it access registers.
4. Host driver calls allow_l1.
5. ICNSS send SMP2P to FW with PCI_EP_POWER_SAVE_ENTER.
Change-Id: Ia93a270cbe86d1fb7c8402c69eb9b64b1400abb6
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
Enabling the irqs from other subsystems before they power up. This
ensures that the irqs are not missed by hlos.
Change-Id: I501cf28c3ea7244358f26b0a2d95572022315871
Signed-off-by: Anuj Garg <anujgarg@codeaurora.org>
Add new ipc context to log smp2p related logs and put
aggressive logs to appropriate ipc log context to avoid
losing of critical logs.
Change-Id: Ia2a9fb8a9c724e2adc514e618abf9f032ce1ea0a
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
With the configfs filesystem it’s possible to manipulate kernel
object by creating/deleting folders into /config path. Here port
object is created by a mkdir and leads to allocate this object,
while the rmdir system call leads to free this object.
If one thread does these two operations of creation and deletion
of the folder and one tries to open it, it can lead to a
race condition where port object can be freed by the time
it is used in f_cdev_open leading to use after free error.
Fix this by using embedded struct device and the refcounting
mechanism built-in which increases and decreases refcount upon
creation and deletion of port and port will be freed when
reference count is zero ensuring that "port" object survives
until the last user releases it.
Change-Id: I88701ef161c9f3215631da81c3a8d4c980d12b25
Signed-off-by: Rohith Kollalsi <rkollals@codeaurora.org>