Commit graph

1691 commits

Author SHA1 Message Date
Martin Schwidefsky
ac7df0d7c4 Remove GENERIC_HARDIRQ config option
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>
2014-02-07 13:49:47 -08:00
Laxminath Kasam
a0c1f4bf5c ASoC: msm: 8916 machine driver
Changes for 8916 machine driver with
basic DAI links and snd_soc controls.

Change-Id: I1caf87243984c12305901cca6d6addc770267839
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2014-02-05 09:34:16 -08:00
Linux Build Service Account
f8dc17d2b8 Merge "misc: isa1200: amend data type mismatch" 2014-02-01 18:02:01 -08:00
Linux Build Service Account
cf6579e4e3 Merge "USB: HSIC SMSC HUB: Add support for 3502 model" 2014-02-01 07:57:59 -08:00
Linux Build Service Account
25a03bb68b Merge "USB: HSIC SMSC HUB: Add support for standalone HSIC configuration" 2014-02-01 07:57:58 -08:00
Xiaocheng Li
5f441c883e msm: socinfo: Support multiplatform
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>
2014-01-30 19:08:34 -08:00
Chun Zhang
580b8a119b misc: isa1200: amend data type mismatch
Fix mismatched data type in driver to avoid possible porting issues.

Change-Id: Id5d98339b8f7b6ec1902e66df1e528922e9a4032
Signed-off-by: Chun Zhang <chunz@codeaurora.org>
2014-01-30 18:45:59 -08:00
Vikram Mulukutla
bd91122223 msm: Move PIL and SSR headers
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>
2014-01-27 19:08:06 -08:00
Linux Build Service Account
0496d0b461 Merge "USB: HSIC SMSC HUB: Fix device tree style problems" 2014-01-26 10:30:26 -08:00
Vikram Mulukutla
1e635c644a msm: scm: Move the scm driver to drivers/soc/qcom
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>
2014-01-24 11:49:11 -08:00
Pavankumar Kondeti
690a5a33c8 USB: HSIC SMSC HUB: Add support for 3502 model
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>
2014-01-24 19:53:45 +05:30
Pavankumar Kondeti
582217092e USB: HSIC SMSC HUB: Add support for standalone HSIC configuration
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>
2014-01-24 19:53:10 +05:30
Pavankumar Kondeti
c68403f66c USB: HSIC SMSC HUB: Fix device tree style problems
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>
2014-01-24 16:25:39 +05:30
Linux Build Service Account
b108a7d8f6 Merge "qseecom: change key management apis" 2014-01-23 03:24:32 -08:00
Zhen Kong
7b3cf4a0b6 qseecom: change key management apis
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>
2014-01-21 16:46:58 -08:00
Chun Zhang
fd91cfd3d3 misc: isa1200: correct overdrive enablement bit shift
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>
2014-01-17 10:47:52 -08:00
Pradnya Chaphekar
e3b56f3f26 mdm9630: Enable audio
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>
2014-01-15 17:15:21 -08:00
Zhen Kong
5fd5d69d81 qseecom: Add basic suspend resume functionality
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>
2014-01-07 12:42:53 -08:00
Zhen Kong
e7a2fc86d7 qseecom: Add checks for user space buffer pointers
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>
2014-01-02 13:55:27 -08:00
Kumar Gala
4c823dd7a7 misc: Rename drivers/misc/qti to drivers/misc/qcom
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>
2013-12-30 10:47:51 -06:00
Kumar Gala
a53a22f106 misc: qfpfuse: Rename "qti" device tree prefix back to "qcom"
Rename properties and compatible strings to return to the old
naming convention.

Change-Id: Ibf9302e8bcd769d5bdd929d40518e5d45412543a
Signed-off-by: Kumar Gala <galak@codeaurora.org>
2013-12-27 13:49:50 -06:00
Kumar Gala
af4f21755c msm: apq8084_dock: Rename "qti" device tree prefix back to "qcom"
Rename properties and compatible strings to return to the old
naming convention.

Change-Id: I2d2a7ca8702bb195285d0044067a20b423d8efbb
Signed-off-by: Kumar Gala <galak@codeaurora.org>
2013-12-27 13:49:43 -06:00
Kumar Gala
b786e946a9 usb: msm: Rename "qti" device tree prefix back to "qcom"
Rename properties and compatible strings to return to the old
naming convention.

Change-Id: I825eac85abc5c6572fcce1f3635fb425c5a1e2bf
Signed-off-by: Kumar Gala <galak@codeaurora.org>
2013-12-27 13:49:41 -06:00
Zhen Kong
58f1165a67 qseecom: Fix failure to load cmnlib image
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>
2013-12-26 12:07:14 -08:00
Asish Bhattacharya
de06bb1c13 msm: qdsp6v2: reorganize kernel driver under misc drivers.
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>
2013-12-24 11:11:10 +05:30
AnilKumar Chimata
fcbe74fd2c qseecom: Change pr_warning message to pr_debug
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>
2013-12-18 22:13:39 -08:00
Linux Build Service Account
31fe74ce5a Merge "qseecom: Fix issues on key management scheme" 2013-12-17 21:50:39 -08:00
Linux Build Service Account
d9656d2bf7 Merge "qseecom: Replace kzalloc with ion_alloc" 2013-12-16 15:03:35 -08:00
Zhen Kong
c16241af48 qseecom: Fix issues on key management scheme
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>
2013-12-16 14:03:53 -08:00
AnilKumar Chimata
e97d06ccfc qseecom: Replace kzalloc with ion_alloc
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>
2013-12-14 02:49:57 +05:30
Venkatesh Yadav Abbarapu
8d8741c001 misc: qfpfuse: Add dt support to read blow timeout
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>
2013-12-13 10:45:25 +05:30
Venkatesh Yadav Abbarapu
446ea2a070 misc: qfpfuse: change device tree binding prefix
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>
2013-12-13 10:45:19 +05:30
Jack Pham
69d1d75970 usb: dwc3-msm: Rename "qcom" vendor prefix to "qti"
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>
2013-12-09 10:34:38 -08:00
Linux Build Service Account
68a0a85fda Merge "misc: apq8084_dock: Fix GPIO contention with audio" 2013-12-06 07:00:25 -08:00
Jack Pham
024ba0ad06 misc: apq8084_dock: Fix GPIO contention with audio
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>
2013-12-05 17:25:23 -08:00
Manu Gautam
a9aa7753d1 USB: HSIC SMSC HUB: Fix compilation warning for uninitialized variable
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>
2013-12-03 10:40:14 +05:30
Linux Build Service Account
b6296469c2 Merge "misc: Add APQ8084 Docking Station driver" 2013-11-29 02:25:12 -08:00
Linux Build Service Account
0f8fb3e504 Merge "qseecom: Check input buffer from IOCTL" 2013-11-26 13:29:15 -08:00
Jack Pham
b74f7d477a misc: Add APQ8084 Docking Station driver
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>
2013-11-26 10:50:42 -08:00
Linux Build Service Account
cb9f2b978e Merge "qseecom: Fix error handling path in receive_req()" 2013-11-23 21:28:52 -08:00
Ian Maund
f06163e6d0 msm: reap unused kernel files
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>
2013-11-21 17:45:28 -08:00
Hariprasad Dhalinarasimha
41afa1a966 qseecom: Check input buffer from IOCTL
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>
2013-11-21 10:39:34 -08:00
AnilKumar Chimata
541c39fea2 qseecom: Fix error handling path in receive_req()
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>
2013-11-21 13:45:58 +05:30
Manu Gautam
9f3c88c205 USB: HSIC SMSC HUB: Pass AUXDATA while adding HSIC_HOST
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>
2013-11-19 16:08:42 +05:30
Linux Build Service Account
df7d797522 Merge "qseecom: Add checks for API called in IOCTL" 2013-10-25 05:29:30 -07:00
Mona Hossain
eb8377a745 qseecom: Add checks for API called in IOCTL
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>
2013-10-24 23:17:15 -07:00
Linux Build Service Account
33cfa8c706 Merge "qseecom: Check for case where listener service is not found" 2013-10-24 21:38:52 -07:00
Linux Build Service Account
e9d632f1a7 Merge "misc: qfpfuse: Fix overflow condition" 2013-10-24 21:38:28 -07:00
Rohit Vaswani
6f090cae74 misc: qfpfuse: Fix overflow condition
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>
2013-10-23 16:51:23 -07:00
AnilKumar Chimata
d078cf5337 qseecom: Fix issues with qssecom_remove/exit APIs
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>
2013-10-22 15:47:09 +05:30