arm32 original logic:
1. allocated memory for page_ext(using memblock).
2. invoke the init callback of page_ext_ops like
page_owner(using buddy).
3. initialize buddy.
after this change:
1. allocated memory for page_ext(using memblock).
2. initialize buddy.
3. invoke the init callback of page_ext_ops like
page_owner(using buddy).
with the change, failure/dummy_handle can get its correct value.
Change-Id: I6598481299da115ff4be50bf0e5a61a012d5ac83
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
In case of SSR/PDR, when FW comes up, platform driver receives
FW_READY indication. As part of FW_READY, platform driver calls
shutdown and reinit ops of host driver.
Clear SHUTDOWN_DONE flag at right place so that if reinit is not
called SSR/PDR because of FW again went down between calling driver
shutdown and reinit then next time directly call reinit and avoid
calling shutdown.
Change-Id: I2a8bd77ab47d5008b705010f09084cbfebc4d06e
Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
enable support for VETH for bengal
Change-Id: I6f83e4add9a3cfdceb49a6e41cc33ee7a546c460
Signed-off-by: Sharath Chandra Vurukala <sharathv@codeaurora.org>
If TSENS controller reset pin is held asserted for long duration
and the same time if TSENS software detects TSENS reset and tries
to re-initialize TSENS controller, TSENS initialization may not
reflect in TSENS register due to reset pin is held asserted.
Invoke TSENS re-init routine only if software is able to write
TSENS register successfully. It makes sure that TSENS re-init
routine is able to re-initialize TSENS controller.
Add a check whether TSENS is re-enabled or not on post TSENS re-init.
If it is not re-enabled, re-try TSENS re-init routine.
Change-Id: Ia0d9b794b47854d269438ccfd9967cf7112aa5e5
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
Signed-off-by: Gopala Krishna Nuthaki <gnuthaki@codeaurora.org>
In case of legaacy data encryption mode, block crypto key allocated
for file encryption was not freed when inode is evicted or destroyed
as crypto data do not own the key. So free the blk crpto key
explicitly in case legacy data encryption mode is used.
Change-Id: Ia860edc7c67516bf8fa47b6e3241ce068a09492b
Signed-off-by: Neeraj Soni <neersoni@codeaurora.org>
This change add board config support to enable build
32 bit kernel for bengal iot.
Change-Id: I4a9c5ef9046309456e4f0df04bccabec18d57906
Signed-off-by: Vijay Navnath Kamble <vkamble@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: I4da8fd848f9cd43d510ac2ae63605f051e723775
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
This change is for general scheduler improvement.
Change-Id: If03bf5f104740adf09d854837ae9b141dc97cbc6
Signed-off-by: Tengfei Fan <tengfeif@codeaurora.org>
[pkondeti@codeaurora: Added tunable based on priority]
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Add checks to properly handle and fix possible NULL pointer
dereferences and avoid usage of uninitialized variables.
Change-Id: I8c8fe1aa648e3f9fd6d7adf0ba55dc78d86ae25f
Signed-off-by: Jagadeesh Kona <jkona@codeaurora.org>
IPA HW will treat aggeragtion byte limit value 1 consider as 1K.
Adding changes to configuring the aggeragtion byte value w.r.t
IPA HW requirement.
Change-Id: Ibe9353a39971296f7e4b04f30039457c07c63033
Signed-off-by: Ashok Vuyyuru <avuyyuru@codeaurora.org>
RDS enable is set during scanning and it causing the
incorrect register update for rtc6226 chip and this
leads to no audio issue.
Set the RDS enable bit to 0 before scanning and
set to 1 after scanning finishes.
CRs-Fixed: 2744378
Change-Id: I2c2fae1e01fb1fadccbc9133f472fca996bc2496
Signed-off-by: himta ram <hram@codeaurora.org>
Seek time out is set to 7 sec and when lower Channel Spacing
is configured. RTC6226 chip is taking more then 7 sec to scan
the whole band range.
Set the seek timeout to 15 sec so that scan can be performed
within the seek timeout value.
Set the Tune time out value to 3 sec.
CRs-Fixed: 2744390
Change-Id: Id79f21aaac049b78ec22b8f90c533deac4bc448b
Signed-off-by: himta ram <hram@codeaurora.org>
During a synchronous power-up, at times the device may not
transition to a desired bootup state and host has to wait for a
longer time to dump registers and figure out any problems that
may have occurred on the device. Allow for the controller to
receive a callback for timeouts seen while waiting for a READY
state or an SBL or AMSS execution environment entry so it can
evaluate any debug approach it wants.
Change-Id: I36f90e478806476bf9ef4335eccb5273df812268
Signed-off-by: Bhaumik Bhatt <bbhatt@codeaurora.org>
Currently, USB power supply type is set to POWER_SUPPLY_TYPE_USB
in power supply descriptor. power_supply_show_property() shows
POWER_SUPPLY_PROP_TYPE based on psy->desc->type. Userspace
process like healthd would read POWER_SUPPLY_PROP_TYPE to print
the adapter type in logs (e.g. "chg=u" for SDP, "chg=a" for DCP).
Hence update usb_psy_desc type runtime to show the USB power
supply type accordingly.
Add CURRENT_MAX and VOLTAGE_MAX properties to enable userspace to
identify slow/fast charging.
Change-Id: Ic5b918434c63f71c412f782564e7a7aa818da6ff
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
Added 64 bit mask support in slimbus driver for iommu mapping.
Change-Id: I7d4a6be851346c372e0745f6e1bcdb9d71111886
Signed-off-by: Subramanian Ananthanarayanan <skananth@codeaurora.org>
Sometime remote may try to send packet before receive callback is
assigned. Which can result in dropping of packets on apps.
Acknowledge intent request but queue the intent only when receive
callback assignment is complete.
Change-Id: Ie366c24e204db7f1609e2345ee3324cb00f56f3e
Signed-off-by: Deepak Kumar Singh <deesin@codeaurora.org>
This reverts commit c265a8fa01.
Assert will be handled by a different API.
Change-Id: I2e6cb641669539ec505993ac7fe69e2a652f2f6f
CRs-Fixed: 2741967
Signed-off-by: Mahesh Kumar Kalikot Veetil <mkalikot@codeaurora.org>
LPDDR3 provides multiple config options based on DDR density. The HBB
values are different for various config options. As A702 supports LPDDR3,
query for the appropriate HBB value from device tree for LPDDR3 parts.
Change-Id: I60b469363636985963ada007f43196aa25608267
Signed-off-by: Puranam V G Tejaswi <pvgtejas@codeaurora.org>
When reprogram_all_keys is called from keyslot manager, it is
done as part of the ufs resume context. This will cause a hang
when keyslot program tries to do a resume again. Avoid doing a
resume if keyslot program is called from resume context.
Change-Id: I336fd580885d8e26ec9bf3fafe13e30404ba3ac5
Signed-off-by: Gaurav Kashyap <gaurkash@codeaurora.org>
Signed-off-by: Phanindra Babu Pabba <pabba@codeaurora.org>