summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-14fsl_qbman: remove the portal migration functionsHaiying Wang
Because we only need to change the portal irq affinity and/or sdest for hotplug, we don't really migrate the portal. Also because the irq and sdest are updated via qm_portal_config object, as such, we move the code from *_high.c to *_driver.c. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I937e6b6195e6e701d03a8cf738e6fa8e6afa260c Reviewed-on: http://git.am.freescale.net:8181/6040 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Geoff Thorpe <Geoff.Thorpe@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2013-11-11powerpc/p4080ds: Switch GPIO pin order from LSB to MSBShruti Kanetkar
Commit ID 03f8008a6a6e45015 lists GPIO pins in LSB order. However, GPIO pins in P4080DS are in MSB order. Due to this an error "no PHY on bus #2" is seen while booting. Signed-off-by: Shruti Kanetkar <Shruti@Freescale.com> Change-Id: Iaa130f262a63ed7dc5190c1ce45cabc039e0a248 Reviewed-on: http://git.am.freescale.net:8181/5873 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2013-11-01powerpc/e500v2: Include Power ISA propertiesLijun Pan
bsc9131 device tree does not have these properties. Signed-off-by: Lijun Pan <Lijun.Pan@freescale.com> Signed-off-by: Scott Wood <scottwood@freescale.com> Change-Id: I825b7d58c9493d82149a552c14bbbf38cdc99b23 Reviewed-on: http://git.am.freescale.net:8181/6206 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2013-11-01crypto: caam - map src buffer before accessYashpal Dutta
KMap the buffers before copying trailing bytes during hmac into a session temporary buffer. This is required if pinned buffer from user-space is send during hmac and is safe even if hmac request is generated from within kernel. Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Change-Id: I4e5d490b30bdf3009372f3d225e423264dbc8db1 Reviewed-on: http://git.am.freescale.net:8181/6203 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Emilian Medve <Emilian.Medve@freescale.com> Reviewed-by: Jose Rivera <German.Rivera@freescale.com>
2013-10-31powerpc/mpic: Disable preemption when calling mpic_processor_id()Scott Wood
Otherwise, we get a debug traceback due to the use of smp_processor_id() (or get_paca()) inside hard_smp_processor_id(). mpic_host_map() is just looking for a default CPU, so it doesn't matter if we migrate after getting the CPU ID. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2013-10-30dpaa_eth: Update Netpoll to the new NAPI logicCristian Sovaiala
Use the new NAPI logic inside the Netpoll controller callback. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I395db60bc93083030c8d20f0038cb0d1dd8cf23a Reviewed-on: http://git.am.freescale.net:8181/5630 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-30dpaa_eth: Add pool channel in each affined portal's SDQCRCristian Sovaiala
There might be CPUs which are not enabled at boottime, therefore the pool channel is not currently set to the SDQCR of the affined portals of those CPUs. This means that the portals affined to the offline CPUs and which are migrated to the boot CPU, will not issue interrupts to the boot CPU in first instance and to the affined CPU (when this comes online) in the second instance. Therefore we set the pool channel to the SDQCR of each affined portal. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I63f5649e0c2169617dff991f08dd872a435578a8 Reviewed-on: http://git.am.freescale.net:8181/5629 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-30dpaa_eth: Use one NAPI structure per portalCristian Sovaiala
We currently use one NAPI instance per CPU which is enough when having a single portal affined to each CPU. In CPU Hotplug scenario, when CPUs become offline, portals affined to them are migrated to the boot CPU therefore CPU0 will receive interrupts not only from its affined portal but also from the portal(s) that have migrated to it. In this case, a single NAPI structure is not sufficient, therefore we introduce a list of NAPI structures per CPU per portal such that when an interrupt is received from a specific portal, we retrieve and schedule the NAPI corresponding to that CPU and that portal. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I837e007a4256aba31bb1df9f893a20a1b0160a32 Reviewed-on: http://git.am.freescale.net:8181/5628 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-30dpaa_eth: Pass the portal info to the QMan APIs for NAPI scheduling.Haiying Wang
Pass the portal info via callbacks in order to call the new qman apis for napi schedule and napi poll, thus follow the portal to disable its DQRI or enable DQRI for NAPI, regardless the portal is migrated to other cpu (in hotplug case) or not. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Ie79a5ba106726032837299c4c5dd3291e8a10789 Reviewed-on: http://git.am.freescale.net:8181/5454 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-29Revert "dpaa_eth: Add pool channel in each affined portal's SDQCR"J. German Rivera
This reverts commit 5121e5a4941577a18aaee5d4769f97aec6f16030.
2013-10-29dpaa_eth: Add pool channel in each affined portal's SDQCRCristian Sovaiala
There might be CPUs which are not enabled at boottime, therefore the pool channel is not currently set to the SDQCR of the affined portals of those CPUs. This means that the portals affined to the offline CPUs and which are migrated to the boot CPU, will not issue interrupts to the boot CPU in first instance and to the affined CPU (when this comes online) in the second instance. Therefore we set the pool channel to the SDQCR of each affined portal. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I63f5649e0c2169617dff991f08dd872a435578a8 Reviewed-on: http://git.am.freescale.net:8181/5629 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-29Revert "dpaa_eth: Add pool channel in each affined portal's SDQCR"Cristian Sovaiala
This reverts commit 26d7e96258429d498f6fc7e3d2bb32b8f4c01097 which was cherry-picked out of order.
2013-10-28fmd: add fman-mac registers representation inside the sysfsMandy Lavi
Added the following new sysfs files: /sys/devices/fsl,dpaa.*/ethernet.*/net/fm*-gb*/mac_regs Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: If77c82b42d925529ae7eb81b75d51debfa8253e0 Reviewed-on: http://git.am.freescale.net:8181/5844 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Thomas Trefny <Tom.Trefny@freescale.com>
2013-10-28Patch to enable ASF by default using delta defconfig.Rajan Gupta
This patch enables ASF using delta defconfig and removes default setting from Kconfig. Signed-off-by: Nikhil Agarwal <nikhil.agarwal@freescale.com> Change-Id: I73199e7fe53ce3b04c14354187777113f0ec5510 Reviewed-on: http://git.am.freescale.net:8181/5970 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Gupta Rajan-B15745 <rajan.gupta@freescale.com> Reviewed-by: Thomas Trefny <Tom.Trefny@freescale.com>
2013-10-28fmd: add fman registers representation inside the sysfsMandy Lavi
Added the following new sysfs files: *.fman/*.port/fm_port_regs *.fman/*.port/fm_port_bmi_regs *.fman/*.port/fm_port_qmi_regs *.fman/fm_regs *.fman/fm_ctrl_code_ver *.fman/fm_muram_free_size *.fman/fm_plcr_regs *.fman/fm_kg_pe_regs *.fman/fm_kg_regs *.fman/cls_plans/cls_plan_* *.fman/schemes/scheme_* *.fman/profiles/profile_* *.fman/fm_prs_regs *.fman/fm_fpm_regs *.fman/tnums_dbg/tnum_dbg_* Signed-off-by: Mandy Lavi <mandy.lavi@freescale.com> Change-Id: If625ef3550bf66da5fb6fb282975a70df78438b1 Reviewed-on: http://git.am.freescale.net:8181/5843 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Madalin-Cristian Bucur <madalin.bucur@freescale.com> Reviewed-by: Thomas Trefny <Tom.Trefny@freescale.com>
2013-10-24Prevent kernel panic if USDPAA mem cannot be allocatedRoy Pledge
USDPAA DMA memory is allocated very early in the boot process using the memblock_alloc functions. The old function would call panic() in cases that the allocation would fail, but no indication would be given on the console since the drivers were not loaded yet. This patch changes the function called so that the panic will not occur and debug info can be seen in the boot log Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: I8ebe9eb826973ea8ef6d16ba6fc73512b779ab77 Reviewed-on: http://git.am.freescale.net:8181/5953 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-24iommu/fsl: Allocate a default DMA window for a device once it's detachedVarun Sethi
from a domain. This allows the device to be assigned back to the host, once a guest VM exits. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: I211b4452d2f7fce572ed8828a1fc5457d7f3b0e5 Reviewed-on: http://git.am.freescale.net:8181/5869 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bhushan Bharat-R65777 <Bharat.Bhushan@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-24iommu/fsl: Store the domain information for PCI device in itsVarun Sethi
corresponding device structure. Earlier we were using the PCI controller structure to store the domain information. Move this information to the PCI device. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> Change-Id: If8663c37babfab800676ffa79c5bad9c2ba70033 Reviewed-on: http://git.am.freescale.net:8181/5868 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bhushan Bharat-R65777 <Bharat.Bhushan@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-24fsl_qman: set and update stashing in pamu when pamu is availableHaiying Wang
For the SoC without PAMU, we need to restrict the iommu domain apis under the condition of CONFIG_FSL_PAMU, then avoid to update the pamu stash setting for migrating portal when iommu_domain is not available. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Iaa826e8f3a0173ba7d5c8781964a0aa7d0cc3657 Reviewed-on: http://git.am.freescale.net:8181/5954 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-22dpaa_eth: Offline port queues initializationBogdan Purcareata
Add an optional .dts parameter to the Offline Port node, that would specify a set of TX queues. The Offline Port probe routine will take care of creating those queues. This makes the Offline Port an independent structure with respect to its TX queues creation. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Change-Id: I8f1c045285b373360355b9462c502ce0e745fce9 Reviewed-on: http://git.am.freescale.net:8181/5204 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-22mmc:core: Avoid useless detecting task when card is busyHaijun Zhang
When card is in cpu polling mode to detect card present. Card detecting task will be scheduled about once every second. When card is busy in large file transfer, detecting task will be hang and call trace will be prompt. When handling the request, CMD13 is always followed by every command when it was complete. So assume that card is present to avoid this duplicate detecting. Only polling card when card is free to reduce conflict with data transfer. <7>mmc0: req done (CMD13): 0: 00000e00 00000000 00000000 00000000 INFO: task kworker/u:1:12 blocked for more than 120 seconds. "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/u:1 D 00000000 0 12 2 0x00000000 Call Trace: [ee06dd50] [44042028] 0x44042028 (unreliable) [ee06de10] [c0007a0c] __switch_to+0xa0/0xf0 [ee06de30] [c04dd50c] __schedule+0x1f8/0x4a4 [ee06dea0] [c04dd898] schedule+0x30/0xbc [ee06deb0] [c03816a4] __mmc_claim_host+0x98/0x19c [ee06df00] [c0385f88] mmc_sd_detect+0x38/0xc0 [ee06df10] [c0382b0c] mmc_rescan+0x294/0x2e0 [ee06df40] [c00661cc] process_one_work+0x140/0x3e0 [ee06df70] [c0066bf8] worker_thread+0x18c/0x36c [ee06dfb0] [c006bf10] kthread+0x7c/0x80 [ee06dff0] [c000de58] kernel_thread+0x4c/0x68 <7>sdhci [sdhci_irq()]: *** mmc0 got interrupt: 0x00000001 Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com> Change-Id: I267ac6597a647dad58fea76d695a6ee92e520c78 Reviewed-on: http://git.am.freescale.net:8181/4356 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xie Xiaobo-R63061 <X.Xie@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-22Powerpc/eSDCH: Specify voltage for T4240QDSHaijun Zhang
Freescale T4240QDS reference board has extra voltage shifters added to allow 3.3V operation, so add 3.3v voltage support for T4240QDS. 1.8v and 3.3v is recommand for eMMC and SDHC card. Signed-off-by: Haijun Zhang <haijun.zhang@freescale.com> Change-Id: I3cd97a087535406ac4db4e30dc6169ab024d20bf Reviewed-on: http://git.am.freescale.net:8181/4824 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Xie Xiaobo-R63061 <X.Xie@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-22fsl_qman: add APIs to set CQ CR/ER eligibility within the channelHaiying Wang
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I1ba0d8eb5f0a5c4b1b7156e2556253b916d351e9 Reviewed-on: http://git.am.freescale.net:8181/5871 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-21dpaa_eth: TX csum computation refactoringBogdan Purcareata
Automatically set DTC bit in fd.cmd for all traffic originating from macless interfaces. Update dpa_shared_tx code to bypass calling dpa_enable_tx_csum when priv->mac_dev == NULL. Signed-off-by: Bogdan Purcareata <bogdan.purcareata@freescale.com> Change-Id: I66c6662559c3c560cba1b55ab082f8390a30988d Reviewed-on: http://git.am.freescale.net:8181/5205 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-21fsl_qbman: Fix warnings when !HOTPLUG_CPUEmil Medve
drivers/staging/fsl_qbman/bman_driver.c:304:13: warning: ‘bman_online_cpu’ defined but not used [-Wunused-function] static void bman_online_cpu(unsigned int cpu) ^ drivers/staging/fsl_qbman/qman_driver.c:645:13: warning: ‘qman_online_cpu’ defined but not used [-Wunused-function] static void qman_online_cpu(unsigned int cpu) ^ Signed-off-by: Emil Medve <Emilian.Medve@Freescale.com> Change-Id: I8b9bb2cc21d46b38d605470e091ddf55ca86c534 Reviewed-on: http://git.am.freescale.net:8181/5840 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Haiying Wang <Haiying.Wang@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-18mpc85xx: Add Freescale data collection module driverTang Yuantian
Add the Data Collection Module(DCM) support which is used to monitor power consumption of the board. Usage: 1. start data colloection: echo 0 > /sys/devices/platform/fsl-dcm.0/control 2. stop data collection: echo 1 > /sys/devices/platform/fsl-dcm.0/control 3. display the result: cat /sys/devices/platform/fsl-dcm.0/result Signed-off-by: Timur Tabi <timur@freescale.com> Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> Change-Id: Iff738d7ad55e3467e0b470da8b464467fa58645a Reviewed-on: http://git.am.freescale.net:8181/4784 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Hongtao Jia <hongtao.jia@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17dpaa_eth: Add pool channel in each affined portal's SDQCRCristian Sovaiala
There might be CPUs which are not enabled at boottime, therefore the pool channel is not currently set to the SDQCR of the affined portals of those CPUs. This means that the portals affined to the offline CPUs and which are migrated to the boot CPU, will not issue interrupts to the boot CPU in first instance and to the affined CPU (when this comes online) in the second instance. Therefore we set the pool channel to the SDQCR of each affined portal. Signed-off-by: Cristian Sovaiala <cristian.sovaiala@freescale.com> Change-Id: I63f5649e0c2169617dff991f08dd872a435578a8 Reviewed-on: http://git.am.freescale.net:8181/5629 Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ruxandra Ioana Radulescu <ruxandra.radulescu@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17fsl_qman: confirm num_ceetms in qman_initHaiying Wang
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Ieff662d29203e37813ba9553e750e2777fc25591 Reviewed-on: http://git.am.freescale.net:8181/5631 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17fsl_qman: fix the wrong type in ceetm statistic query structureHaiying Wang
Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Ic1a3f647060821357f633e74a78d501dcafca284 Reviewed-on: http://git.am.freescale.net:8181/5121 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17fsl_qbman: use pointer type for affine_portalsHaiying Wang
Those pointers don't need to be converted to a "numerical" form Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Ic6ee5d3e20ae6134bbb571a832938996b3a023e7 Reviewed-on: http://git.am.freescale.net:8181/5633 Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17fsl_qman: fix two compilation warningsHaiying Wang
drivers/staging/fsl_qbman/qman_high.c: In function 'qman_shutdown_fq': drivers/staging/fsl_qbman/qman_high.c:4834:1: warning: control reaches end of non-void function [-Wreturn-type] drivers/staging/fsl_qbman/fsl_usdpaa.c: In function 'dump_frags': drivers/staging/fsl_qbman/fsl_usdpaa.c:230:3: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 4 has type 'long unsigned int' [-Wformat] Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Ia61d1b303f033b777658131e517f5f10b16bf6b0 Reviewed-on: http://git.am.freescale.net:8181/5632 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17hwmon: (ina2xx) Add device tree support to pass the shunt resistorTang Yuantian
Adding another way that is device tree to pass the shunt resistor value to driver except for platform data. Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> [Guenter Roeck: Added missing of.h include] Signed-off-by: Guenter Roeck <linux@roeck-us.net> Change-Id: I6596e57de7e9021a19d16e6060c3c78f83cc81c3 Reviewed-on: http://git.am.freescale.net:8181/4786 Reviewed-by: Hongtao Jia <hongtao.jia@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-17Support for Public Key Cryptography in CryptoAPIYashpal Dutta
Public Key Cryptography added in Linux CryptoAPI. CryptoAPI till now only supports symmetric ciphers and Digests. With support for asymmetric ciphers, any cryptographic accelerator driver will be able to registers its asymmetric cipher primitive functions Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com> Change-Id: Ice8409607c068f5d7d30e778bacdd18d6b43c138 Reviewed-on: http://git.am.freescale.net:8181/5639 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Geanta Neag Horia Ioan-B05471 <horia.geanta@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-16powerpc/mpc85xx: Add ina220 node supportTang Yuantian
Add power sensor chip ina220 node in dts to support power monitoring Signed-off-by: Tang Yuantian <Yuantian.Tang@freescale.com> Change-Id: Ie1367ccdb06e625a1d62f5b8f230e9b8b9d8fc0f Reviewed-on: http://git.am.freescale.net:8181/4787 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Hongtao Jia <hongtao.jia@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-12fsl_qman: add cpu hotplug supportHaiying Wang
- Initialize all the portals at the boot time based cpu_possible_mask. Migrate the portals on offline cpus to bootcpu when there is less cpu online at boot time. - Register cpu hotplug notifier to migrate the portals to boot cpu when cpus are offlined, and migrate the portal back to original cpu when cpu is onlined. - Re-direct irq and sdest of the portal in the migrate function. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: Ica4d1b2b0fd3c3ae5e043663febd9f4cb7c762cf Reviewed-on: http://git.am.freescale.net:8181/5452 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-12fsl_qman: extend some QMan APIs with portal parameterHaiying Wang
Some APIs might be called in a migration situation(e.g. cpu hotplug), and they may need to continue accessing the portal that execution was affine to prior to migration, we exend those APIs with qman_p_***. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I9b1422d1dfbd59561e3bf072af5c009047e4f47b Reviewed-on: http://git.am.freescale.net:8181/5451 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Thorpe Geoff-R01361 <Geoff.Thorpe@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-11fsl_bman: add cpu hotplug supportHaiying Wang
- Initialize all the portals at the boot time based cpu_possible_mask. Migrate the portals on offline cpus to bootcpu when there is less cpu online at boot time. - Register cpu hotplug notifier to migrate the portals to boot cpu when cpus are offlined, and migrate the portal back to original cpu when cpu is onlined. - Re-direct irq of the portal in the migrate function. Signed-off-by: Haiying Wang <Haiying.Wang@freescale.com> Change-Id: I863d5c15c7f35f9de4ea3d985e4ff467167924b7 Reviewed-on: http://git.am.freescale.net:8181/5453 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Ladouceur Jeffrey-R11498 <Jeffrey.Ladouceur@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-09Support for Public Key Cryptography in CryptoAPIYashpal Dutta
Public Key Cryptography added in Linux CryptoAPI. CryptoAPI till now only supports symmetric ciphers and Digests. With support for asymmetric ciphers, any cryptographic accelerator driver will be able to registers its asymmetric cipher primitive functions Signed-off-by: Yashpal Dutta <yashpal.dutta@freescale.com> Change-Id: I9af49fb2c40cec0f5ecb73da15b6e738ed3987b6 Reviewed-on: http://git.am.freescale.net:8181/5447 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-09Fix 2 errors in USDPAA cleanup processingRoy Pledge
The USPDAA cleanup processing wasn't properly merging DMA memory fragments. Also if a new portal needed to be allocated for Frame Queue cleanup it wasn't properly assigned to the array of cleanup portals Signed-off-by: Roy Pledge <Roy.Pledge@freescale.com> Change-Id: I616d4bdbf1dd356267231e6b642cce112487ed1b Reviewed-on: http://git.am.freescale.net:8181/5140 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Vakul Garg <vakul@freescale.com> Reviewed-by: Wang Haiying-R54964 <Haiying.Wang@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-08driver/mtd/ifc: Read Status while programming NAND flashPrabhakar Kushwaha
as per controller description, "While programming a NAND flash, status read should never skipped. Because it may happen that a new command is issued to the NAND Flash, even when the device has not yet finished processing the previous request. This may result in unpredictable behaviour." IFC controller never polls for R/B signal after command send. It just return control to software. This behaviour may not occur with NAND flash access. because new commands are sent after polling R/B signal. But it may happen in scenario where GPCM-ASIC and NAND flash device are working simultaneously. Update the controller driver to take care of this requirement Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Change-Id: Iaac4b1a0b6b3def93a9f7d3e33624a35c10df85f Reviewed-on: http://git.am.freescale.net:8181/5176 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Wood Scott-B07421 <scottwood@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-08dpaa_eth: Fix freeing of global buffer poolIoana Radulescu
In case an error is encountered during probe, don't actually free the structure containing global buffer pool information unless its reference count has reached zero. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: Ica7b995ecf31a878a9e7685ec905119f1c38f17b Reviewed-on: http://git.am.freescale.net:8181/5186 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Cristian-Constantin Sovaiala <Cristian.Sovaiala@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-08dpa_offload: Fix inconsistent use of case labelsAnca Jeanina FLOAREA
In function set_cnt_classif_node_retrieve_func the switch was made based on enum dpa_stats_classif_node_type but the case values were taken from enum dpa_cls_tbl_type. Fix it by using case values from the correct enum. Signed-off-by: Anca Jeanina FLOAREA <anca.floarea@freescale.com> Change-Id: I041ad4ad56d84d9fd1f8424609c0efbe2da5c726 Reviewed-on: http://git.am.freescale.net:8181/5174 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Aurelian Zanoschi <Aurelian.Zanoschi@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-05fmd: Enforce minimum value for fsl_fm_rx_extra_headroomIoana Radulescu
fsl_fm_rx_extra headroom must have a value of at least 16 bytes. The Kconfig option has this lower limit, but when configuring the parameter through bootargs no check was made. So enforce the lower limit for all input methods, to avoid invalid values. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: Ibf6dfe82d7497745b04eb46e0e7b0a1497c3aa7f Reviewed-on: http://git.am.freescale.net:8181/5172 Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-02Merge branch 'sdk-kernel-3.8'J. German Rivera
2013-10-02Merge branch 'sdk-v1.4.x' into sdk-kernel-3.8J. German Rivera
2013-10-02Merge branch 'b4860rev2' into sdk-v1.4.xJ. German Rivera
2013-10-02dpa_offload: Allow statistics enable on NEXT_TABLE classifier table entriesMarian Chereji
The DPA classifier allowed the user to enable statistics only for "enqueue" and "drop" type table entries. It now allows the user to enable statistics also for the "next_table" type table entries. Change-Id: I9d57af14922170a7554431b7ba5abcaaaeac04ac Signed-off-by: Marian Chereji <marian.chereji@freescale.com> Reviewed-on: http://git.am.freescale.net:8181/5151 Reviewed-by: Floarea Anca Jeanina-B12569 <anca.floarea@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-02dpaa_eth: Enable FMan v3 recycling on S/G driverIoana Radulescu
Make sure the support for buffer recycling on FMan v3 platforms gets selected for the S/G driver as well. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Change-Id: I39cfaa9482f6204ddc2b788f635de39de6b4c8f3 Reviewed-on: http://git.am.freescale.net:8181/5146 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-02dpa_offload: Fix de-allocation of uninitialized valueAnca Jeanina FLOAREA
The tbl pointer is dereference without it being previously initialized. The code should use variable cnode instead of tbl in case DPA Stats counters of type DPA_STATS_CNT_CLASSIF_NODE is being created. Signed-off-by: Anca Jeanina FLOAREA <anca.floarea@freescale.com> Change-Id: I10f8cd233f850c339e82d44522f2005dfb9ab27f Reviewed-on: http://git.am.freescale.net:8181/5149 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>
2013-10-02dpa_offload: Fix double free pointer issue in DPA multicast componentRadu Bulie
replic_grp_params variable would be freed a second time if the multicast group creation function failed to obtain a group handle from the FMD driver or imported from the user. The patch fixes the issue by freeing the resource, before any checks are performed on the group handle. Signed-off-by: Radu Bulie <radu.bulie@freescale.com> Change-Id: I547b0a2d476e1cd57aa3b561efa9a2cba99b7e3f Reviewed-on: http://git.am.freescale.net:8181/5147 Reviewed-by: Bulie Radu-Andrei-B37577 <Radu.Bulie@freescale.com> Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Marian-Cornel Chereji <marian.chereji@freescale.com> Reviewed-by: Rivera Jose-B46482 <German.Rivera@freescale.com>