After the last architecture switched to generic hard irqs the config
options HAVE_GENERIC_HARDIRQS & GENERIC_HARDIRQS and the related code
for !CONFIG_GENERIC_HARDIRQS can be removed.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Git-commit: 0244ad004a54e39308d495fee0a2e637f8b5c317
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
[imaund@codeaurora.org: resolve merge conflicts]
Signed-off-by: Ian Maund <imaund@codeaurora.org>
Changes for 8916 machine driver with
basic DAI links and snd_soc controls.
Change-Id: I1caf87243984c12305901cca6d6addc770267839
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
Upstream prefers existing drivers be converted to support multiplatform
kernels. This requires drivers to be located in directories that
contain generic functionality instead of specific mach directories.
Move the socinfo driver into drivers/soc/qcom and update the initcall
levels to satisfy dependencies.
Change-Id: If195cd793d84867d371f25136a88f2a7ce239500
Signed-off-by: Xiaocheng Li <lix@codeaurora.org>
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>
Fix mismatched data type in driver to avoid possible porting issues.
Change-Id: Id5d98339b8f7b6ec1902e66df1e528922e9a4032
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Architectural changes in the ARM Linux kernel require moving
some MSM specific headers related to the peripheral image
loader and the subsystem restart drivers to include/soc/qcom.
subsystem_restart.h is used by external modules and thus
leave a proxy in include/soc/qcom for now. Once external modules
switch over to this new include path, the header in the
old location can be deleted.
Change-Id: I0680dc34481d09170ce2609259c5318a9e6dbf37
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
Architectural changes in the ARM Linux kernel tree mandate
the eventual removal of the mach-* directories. Move the
scm driver to drivers/soc/qcom and the scm header to
include/soc/qcom to support that removal.
Change-Id: Ie660d0566de35045c1ba73fcddeda99efacf057e
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
The SMSC 3502 HUB has only one USB UICC port. "VBAT only" single
supply configuration is used. A gpio is used to control the
external oscillator which supplies the ref clock to the HUB. USB
UICC card is connected to this HUB on MSM8926. Provide a sysfs
interface for userspace to enable/disable the HUB. This is
required to save the power when a non-supported card is inserted.
The HUB is disabled during boot. If the card is inserted and supports
UICC, HUB is enabled by the userspace.
Change-Id: Ic2b0c5bd2066a2ecae7f18aac2ab8d0bc2f075c0
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
When model-id is passed as 0, interpret it as standalone HSIC
configuration. Add HSIC platform device and don't look for HUB
resources. This is required to support both stand alone and HUB
configurations on different boards based on the same SoC.
Change-Id: Iec081799048dd93ece1472d95a7e1c27f91fb9b9
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Add the missing documentation for some device tree properties. Fix
the regulator supply naming convention. The hub-vbus supply is
optional. Don't call regualtor_get on this supply unconditionally.
This leads to unnecessary multiple probe deferrals.
Change-Id: I866bfb9d87ad274030b7997461e89c6bc42f6d98
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Remove 2 seconds sleep when create_key or update_key fails, and
this delay is now handled by TZ. change errno when maximum
attempt to input password is reached.
Change-Id: I14350219f43094d280ebc1e3717418285063448d
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Overdrive enablement bit sits at 6th bit of control register 0.
Current shifting overwrites overdrive high bit.
Change-Id: I4cdd435da86a234ccf0465462be7626162cc8a9d
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
Enable Audio on mdm9630. Audio configs enable features
required for sound card to be enumerated. This enables
audio playback, record and voice calls.
Change-Id: I63f5b44e6c89e527ade9bfa1708e048407308991
Signed-off-by: Pradnya Chaphekar <pradnyac@codeaurora.org>
If ce clock is not disabled in suspend state, memory may be corrupted and
device can not wake up. Thus,if clock is enabled, we disable it in qseecom
suspend function and re-enable it again in resume function.
Change-Id: I70349ad3070c340add1f3fbe392a4bec2b8af9bf
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Validate pointers send from user space and pointers
embedded within the mesasge sent from user space.
Change-Id: I1be54924ef3d301908af6e8d4e6506f2aa7f6428
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
We are using 'qcom' now for DT, file and directory names so rename
drivers/misc/qti to drivers/misc/qcom and fixup related files and path
issues.
Change-Id: Ieeeb7e5683bea0d285de64561a0a6261a8d8d5b7
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Rename properties and compatible strings to return to the old
naming convention.
Change-Id: Ibf9302e8bcd769d5bdd929d40518e5d45412543a
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Rename properties and compatible strings to return to the old
naming convention.
Change-Id: I2d2a7ca8702bb195285d0044067a20b423d8efbb
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Rename properties and compatible strings to return to the old
naming convention.
Change-Id: I825eac85abc5c6572fcce1f3635fb425c5a1e2bf
Signed-off-by: Kumar Gala <galak@codeaurora.org>
Set the physical address field of load_req data struct
correctly using the right ion_phys API. Without this,
secure domain is not able to address/dereference memory
where cmnlib image resides.
Change-Id: I9f75e78227e4eee89fff9ad8b19701ff08e5d90a
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
This is needed as the drivers are registering under misc driver
but exists under arch/arm/mach
Change-Id: I9cd75901184a4fdff6f796019152bc6e29eed6c3
Signed-off-by: Asish Bhattacharya <asishb@codeaurora.org>
Change warning message to debug message to reduce the excessive logging.
These changes are applicable only if any process is trying to interrupt
the blocking listener services.
Change-Id: Ie1c9af0daf16ef2c39e198f30b0151e2246d79e3
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
The mechanism to update how a user is tied to an existing key is
added. And the app_access_lock mutex is removed in key management
APIs, as there is no need to lock app access while processing a
key related request.
Change-Id: Ib017f55a7af48ed01001e69022fd9732cedef8cc
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
Allocate memory to common lib through kzalloc issues no page errors due to
higher order memory request. So allocate the memory from the heap specially
dedicated to QSEECOM.
Change-Id: Ice4a609d6791ce5adc84b9882231def31674f461
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
Read the blow timer value from device tree. The fuse blow timeout
is different for different hardware implementations.
Change-Id: I77151e04af4892c9569b07e87d6d7ce761c7e4ff
Acked-by: Kaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: Venkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
Add the support in the driver to change the device tree binding name prefix
from "qcom" to "qti".
Change-Id: Ica65dd7c187b1e66172d873371b8ac2644e40ab6
Acked-by: Kaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: Venkatesh Yadav Abbarapu <quicvenkat@codeaurora.org>
The vendor prefix "qcom" is being replaced with "qti" to
comply with new naming conventions. Update properties and
compatible strings in the dwc3-msm glue driver as well as
existing device tree bindings.
Change-Id: I9de734073d2eec963d4f0d881da76c412db6fe44
Signed-off-by: Jack Pham <jackp@codeaurora.org>
The docking station detect GPIO is also used by the audio
driver, however only one entity should call gpio_request,
as all subsequent calls will fail. Requesting it here will
cause audio driver to fail to probe. Fix it by not calling
gpio_request().
Change-Id: Iadb9786fcf772d433c4b30026f8afa0bf76e35c3
Signed-off-by: Jack Pham <jackp@codeaurora.org>
Fix below compilation warning:
smsc_hub.c:392: warning: 'hsic_host_auxdata' may be used
uninitialized in this function error, forbidden warning: smsc_hub.c:392
Change-Id: Ib3a4e1feaef40d065b9cd641f8bd7244cb15eb0b
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
This driver is used to coordinate the GPIOs used to power
up and reset the USB hub and ethernet ports on the QTI
APQ8084 Docking Station.
Change-Id: Ie1baf294396086aaaa342025349aa146bef8d0b5
Signed-off-by: Jack Pham <jackp@codeaurora.org>
This change removes source files from the kernel tree that
were not being used during make. The list of used files
was generated using an annotated make log and was then
compared with new files added since the public release of
kernel version 3.10.00. New files which were added but
not used have been removed from the tree.
A diff was also run to determine the list of files that had
been modified since the release of kernel version 3.10.00.
These files were then scrubbed based on the current kernel
configuration, removing invalid and unused conditionals.
Some files which support planned functionality or are
useful in debugging have been excluded from this reap.
Change-Id: Ia44a224d3cea7bc78dd45e8a8279860d35d4b008
Signed-off-by: Ian Maund <imaund@codeaurora.org>
IOCTL messages come with pointers to buffer, check these
buffer pointers prior to accessing it.
Change-Id: Ibd724a35682a6f8e4f6900c8404854a8b55c0c9a
Signed-off-by: Hariprasad Dhalinarasimha <hnamgund@codeaurora.org>
This patch fixes the error handling path in receive_req() function
called from userspace. Issue seen if user is calling the receive_req
function without calling the listener registration. qseecom_find_svc()
should return NULL if there are no services found.
Change-Id: Id51d8f48d7266b5acbc845f7b9ac0068d16b1ede
CRs-fixed: 496927
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
AUXDATA should be passed to update HSIC device name. This
is required for getting clock resources and userspace apps
that uses device name for proper functioning. In case of
HSIC connection using SMSC HUB, HSIC host is added as a
child node of SMSC HUB. Hence, pass auxdata for SMSC_HUB
which points to the child node's (HSIC_HOST) auxdata.
Change-Id: I8b763341a845fbfba9fc087bbc59bfc677bc3c04
Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Validate caller is the right type for the IOCTL being
issued and inputs are valid.
Change-Id: Iad71f0f5ed4d53c5d011bd55cdf74ec053d09af5
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>
Fix potential integer overflow for ioctl command to avoid incorrect
buffer allocation. Use the stack for data buffering to avoid the
small buffer allocation for improved performance. Increase the fuse
blow timeout in the driver to cover all QFPROM implementations.
CRs-Fixed: 550574,550575
Change-Id: Ie48cc2545a41ab422a9765124e2d6fa6e419858f
Acked-by: Kaushik Sikdar <ksikdar@qti.qualcomm.com>
Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Clean-up the qseecom_remove() function by removing the null pointer
dereference. Change the logic by removing the unnecessary code and
also modified the qseecom_exit() function with proper calls.
Change-Id: Ibcca1b3c2c37024661505de2550e202b507703aa
Signed-off-by: AnilKumar Chimata <anilc@codeaurora.org>