Change subprocess arguments in kernel_headers.py
script so that it can include dirname to resolve the
compilation issues in the new build system.
Change-Id: I89bbe53aa8a8b50e2c98a795fa20a976f2792a3b
Signed-off-by: Bharat Pawar <bpawar@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
Tools used within the sandbox are now copied into the
sandbox, see aosp/1531944. This caused the modified
headers_install.sh, which is no longer installed, to
point to a non-existent location.
This change adds a level of indirection. The
gen-headers_install.sh module no longer uses unifdef as
a tool, but still modifies the headers_install.sh
script, but not to point to a particular location, but
to find the unifdef tool via an environment variable,
LOC_UNIFDEF.
Next, we modify qti_generate_kernel_headers_arm and
qti_generate_kernel_headers_arm64 to need the unifdef
tool (which is copied into the sandbox for these tools).
We add a new --unifdef option to the kernel_headers.py
script so that it can find the tool in the sandbox. The
kernel_headers.py script sets the LOC_UNIFDEF
environment variable before invoking the altered
headers_install.sh script (also copied into the
sandbox).
Finally, we generate gen_headers_arm.bp and
gen_headers_arm64.bp with all of these changes.
Bug: 178500203
Change-Id: Ie3b8c36b7d60bd950c28bac566e04f43de78cf98
Signed-off-by: Mohammed Athar <athar@codeaurora.org>
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>
To avoid build failures in the newer Android build systems,
run the headers_install script explicitly under 'sh'.
Change-Id: If30d2bda653c6be443345a2594e9993d9780db21
Signed-off-by: Soumil Shah <soumshah@codeaurora.org>
Signed-off-by: Raghavendra Rao Ananta <rananta@codeaurora.org>
Add intermediate freq 980MHz and 1100MHz in GPU code
for gx_gfx3d_clk_src and update pll configurations
in GPUCC and GCC.
Change-Id: Ic1d46f639c8817bf0c32d2ea43dac4f4f703b3ea
Signed-off-by: Madhuri Medasani <mmedasan@codeaurora.org>
Add initial driver for AW2016 LED device
which can support up to 3 LED channels.
Signed-off-by: liweilei <liweilei@awinic.com>
Git-commit: ed6556f262cf7e2086d7728c2f752be4cf94b4d1
Git-repo: https://github.com/awinic-driver/aw2016.git
[huliu@codeaurora.org: move the driver to leds folder
and make corresponding changes in Kconfig and Makefile,
also remove the dtsi config file and modify the code
style.]
Signed-off-by: Hui Liu <huliu@codeaurora.org>
Change-Id: I252ca2710d393ff6dcbb691a2a530433ffbd21e3
Add novatek Chip id and firmware during boot up to
enable touch.
Change-Id: I382ae51c7bb4bf270c2e01b484281fcc24270062
Signed-off-by: Ravikanth Tuniki <rtunik@codeaurora.org>
Enable and populate wake_reg and wake_bit fields for the pin
groups for Khaje. This is needed to configure GPIOs as wake
up capable.
Change-Id: Ie5c4ffdb312a93cfd941e614bedbb141c73e963f
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
READ/WRITE_ONCE are for atomic data types, not for structures. Fix this
up by doing a memcpy to make it explicit just how messy this copy is...
This fixes a build error on 5.8-rc1, as things are more strict, odds are
it's also wrong in other kernel versions as well...
Cc: Daniel Mentz <danielmentz@google.com>
Cc: Paul Lawrence <paullawrence@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7ecd3d05bd94c936dd5e69c63028458786f37a78
Git-commit: 197d678a0e
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Sayali Lokhande <sayalil@codeaurora.org>
This change adds a format modifier to differentiate Field
Sequential Color (FSC) format from existing formats.
Change-Id: Ia5f0af28bc91448aadb8b626044b642308eea679
Signed-off-by: santosh <santoshkumar@codeaurora.org>
In the cases of HW accelerated channels, there
is a possibility that the db_mode has changed while
a queue is in progress. This can happen when
mhi_queue_dma is scheduled out and an OOB event
is parsed.
Fix this by determining whether to ring the
doorbell or not without releasing the lock to
ensure persistence of db_mode.
Change-Id: I586937057ff0b3329813c10d5f4337a2df887fd1
Signed-off-by: Sriharsha Allenki <sallenki@codeaurora.org>
Remove bad ioctl log as it can lead to flooding
in new ioctls scenarios which are not supported on
on kernel .
Change-Id: I548e606660c722f410c12a19cf71a4fc10ee6a22
Acked-by: Deepika Singh <dsi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
Add support for Khaje pin configuration and control
via pinctrl framework.
Change-Id: I32b3d3e26aa3628f359005a7966a08fb195c38ba
Signed-off-by: Shadab Naseem <snaseem@codeaurora.org>
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
Add binding support for flash type for khaje camera.
CRs-Fixed: 2938804
Change-Id: Ie4c7978d9baf34456300f39cd1d607c693420862
Signed-off-by: shiwgupt <shiwgupt@codeaurora.org>
Couple of code cleanup
- Check for upper boundary for resource_index
not to dependent on ipa_rm_dep_get_index function.
- Check actual argument for NULL and return.
Change-Id: I0ab244e68d96f7841ab2a10e61f2546314166165
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Only reset IPA stats can have tether_stat
data as NULL. Query of of tether stat without
allocating memory for structure
wan_ioctl_query_tether_stats should fail.
Change-Id: Iab0fa98ffdcb2b32d75f4e8cb88f250002d2a787
Acked-by: Pooja Kumari <kumarip@qti.qualcomm.com>
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Data pointer may be NULL, check for reset value
to be false in that case and return EINVAL for
invalid argument.
Change-Id: I05a4aa96724c123516a7965bd0e939bdf0c86553
Signed-off-by: Mohammed Javid <mjavid@codeaurora.org>
Consider a scenario when device is in OOM situation. Assume a process is
doing sysfs operation, grabs kernfs_mutex and wants to allocate memory.
LMKD tries to kill processes but kgsl processes will be blocked waiting
for kernfs_mutex in sysfs_remove_file.
kgsl_process_private_close > kgsl_process_uninit_sysfs > sysfs_remove_file
KGSL won't free up memory as it is done after sysfs removal leading to a
livelock. Fix it by releasing memory before removing sysfs entries.
Change-Id: I99640d7a653faffa671d5b035abb78e9473da12e
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
In kgsl_process_private_close, debugfs directory is removed after mutex
is unlocked. Considering this, a race can be created between
kgsl_process_private_close and kgsl_process_init_debugfs. Fix it by
moving debugfs directory removal inside lock.
Change-Id: Ida65ab8a3825d8c695c56556860495cce853117c
Signed-off-by: Kamal Agrawal <kamaagra@codeaurora.org>
Retain the latest user brightness request. This ensures
that when a max brightness limit is altered, the last
brightness request is taken into account, when restoring
the current brightness.
Change-Id: I6461e06f64abe336cabc27a3992d734f1fb745c6
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
Add store interface for max_brightness to allow users
to change the maximum brightness to be supported by
the hardware.
Change-Id: I8b65debdc52ded24227483c4db21aaec63e27927
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
As per design, internal CRC error flag will be cleared only after 3 MCLK
once clear command issued. Since the MCLK will be running at 400KHz during
initialization, it will take max of 7.5us (2.5us *3 = 7.5us) to clear
the status. If the CMD_CRC_CHECK_EN bit is enabled before the source is
cleared, CRC INTR bit will be set in the 17th bit of INTR status register.
Because the response of ACMD41 in sd and CMD1 in mmc are R3 response that
don't have CRC field, so it is expected to give next command after at least
3 MCLK periods.
Change-Id: I31b52a767f2212d33cab15251ab5b37a04b25618
Signed-off-by: Jun Li <liju@codeaurora.org>
Changed logic to find Lower Band Limit from Search Up from current
channel with Wrap enable to tuning to Lower Band Limit + chan space
and Search Down with Wrap disable.
Change-Id: I79a686238d96db5dd5df9436b346b465435ae4f5
Signed-off-by: Prateek Raj Singh <pratsing@codeaurora.org>
Adding check in msm_minidump_add_region() to handle scenarios for
out of bound access while adding region in minidump table in SMEM.
Change-Id: Ic20663dbd2fa8ae96899930a7f7ba79dc204ff5e
Signed-off-by: Komal Bajaj <kbajaj@codeaurora.org>
Signed-off-by: Srinivasarao P <spathi@codeaurora.org>