[PATCH 11/12] staging: fsl-mc: fixed bug in uninitialized root dprc irq count

2015-10-13 Thread J. German Rivera
When initializing the object attributes for the root dprc, the irq_count was uninitialized. Initialize it to 1. --- drivers/staging/fsl-mc/bus/mc-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index fd13053..4ac3

[PATCH 00/12] staging: fsl-mc: Cleanup and bug fixes

2015-10-13 Thread J. German Rivera
This patch series includes the following code cleanup and bug fixes for the fsl-mc bus driver: Patch 1: Naming cleanup in fsl_mc-portal_allocate Patch 2: fsl_mc_io object refactoring Patch 3: dpmcp opening/closing refactoring Patch 4: Changed dev_info() calls to dev_dbg() Patch 5: Changed types of

[PATCH 06/12] staging: fsl-mc: Removed unused DPMCP macros

2015-10-13 Thread J. German Rivera
The macros were a left-over from a previous implementation of the dpmcp APIs and are no longer used. --- drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 79 -- 1 file changed, 79 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpmcp-cmd.h b/drivers/staging/fsl-mc/bu

[PATCH 04/12] staging: fsl-mc: Changed dev_info() calls to dev_dbg()

2015-10-13 Thread J. German Rivera
Changed dev_info() calls to dev_dbg() in fsl_mc_allocator_probe/fsl_mc_allocator_remove, as they are useful only for debugging. --- drivers/staging/fsl-mc/bus/mc-allocator.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c b/dri

[PATCH 07/12] staging: fsl-mc: Fixed alignment of copyright comment

2015-10-13 Thread J. German Rivera
Whitespace cleanup-- add missing spaces in column 1 of copyright --- drivers/staging/fsl-mc/include/dpcon-cmd.h | 60 +++--- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/fsl-mc/include/dpcon-cmd.h b/drivers/staging/fsl-mc/include/dpcon-cm

[PATCH 12/12] staging: fsl-mc: Added missing initializer in fsl_mc_bus_driver

2015-10-13 Thread J. German Rivera
owner needs to be initialized as THIS_MOUDLE. --- drivers/staging/fsl-mc/bus/mc-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index 4ac3d07..84db55b 100644 --- a/drivers/staging/fsl-mc/bus/mc-bus.c +++ b/drivers

[PATCH 03/12] staging: fsl-mc: dpmcp opening/closing refactoring

2015-10-13 Thread J. German Rivera
Before, we were opening and closing a mc_io's dpmcp object in fsl_mc_portal_reset(), since that was the only function that was calling dpmcp MC operations. However, it is better for maintainability to open the dpmcp object when it gets associated with an mc_io object, and close it when this associa

[PATCH 08/12] staging: fsl-mc: Fixed bug in fsl_mc_allocator_remove

2015-10-13 Thread J. German Rivera
Call fsl_mc_resource_pool_remove_device() only if mc_dev->resource is not NULL. --- drivers/staging/fsl-mc/bus/mc-allocator.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c b/drivers/staging/fsl-mc/bus/mc-allocator.c index 527

[PATCH 10/12] staging: fsl-mc: Fixed WARN_ON() in fsl_mc_resource_pool_remove_device

2015-10-13 Thread J. German Rivera
Check that resource is not NULL before de-referencing it. --- drivers/staging/fsl-mc/bus/mc-allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c b/drivers/staging/fsl-mc/bus/mc-allocator.c index a45293b..88d1857 100644 --- a/dri

[PATCH 09/12] staging: fsl-mc: refactored error exit in allocator probe/remove

2015-10-13 Thread J. German Rivera
Replaced error gotos with direct returns in fsl_mc_allocator_probe() and fsl_mc_allocator_remove(), since the only error handling done in those functions is to exit. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/mc-allocator.c | 23 +-- 1 file changed, 9

[PATCH 01/12] staging: fsl-mc: Naming cleanup in fsl_mc-portal_allocate

2015-10-13 Thread J. German Rivera
mc_adev is a local variable for the allocated dpmcp object. Renamed mc_adev as dpmcp_dev for clarity. --- drivers/staging/fsl-mc/bus/mc-allocator.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c b/drivers/staging/fsl-mc

[PATCH 02/12] staging: fsl-mc: fsl_mc_io object refactoring

2015-10-13 Thread J. German Rivera
Each fsl_mc_io object is associated with an fsl_mc_device object of type "dpmcp" representing the MC portal associated with the fsl_mc_io object. Before, we were representing this association with an fsl_mc_resource pointer. To enhance code clarity, it is more straight forward to use an fsl_mc_devi

[PATCH 05/12] staging_fsl-mc: Changed types of flags, portal size in

2015-10-13 Thread J. German Rivera
Changed these two fields from 32-bit integers to 16-bit integers in struct fsl_mc_io, as 32 bits is too much for these fields. This change does not affect other components since fsl_mc_io is an opaque type. --- drivers/staging/fsl-mc/include/mc-sys.h | 4 ++-- 1 file changed, 2 insertions(+), 2 de

[PATCH v2 04/12] staging: fsl-mc: Changed dev_info() calls to dev_dbg()

2015-10-14 Thread J. German Rivera
Changed dev_info() calls to dev_dbg() in fsl_mc_allocator_probe/fsl_mc_allocator_remove, as they are useful only for debugging. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/sta

[PATCH v2 11/12] staging: fsl-mc: fixed bug in uninitialized root dprc irq count

2015-10-14 Thread J. German Rivera
When initializing the object attributes for the root dprc, the irq_count was uninitialized. Initialize it to 1. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fs

[PATCH v2 09/12] staging: fsl-mc: refactored error exit in allocator probe/remove

2015-10-14 Thread J. German Rivera
Replaced error gotos with direct returns in fsl_mc_allocator_probe() and fsl_mc_allocator_remove(), since the only error handling done in those functions is to exit. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 23

[PATCH v2 12/12] staging: fsl-mc: Added missing initializer in fsl_mc_bus_driver

2015-10-14 Thread J. German Rivera
owner needs to be initialized as THIS_MOUDLE. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b/drivers/staging/fsl-mc/bus/mc-bus.c index 4ac3d07..84db55b 100644 --- a/drivers/stag

[PATCH v2 10/12] staging: fsl-mc: Fixed WARN_ON() in fsl_mc_resource_pool_remove_device

2015-10-14 Thread J. German Rivera
Check that resource is not NULL before de-referencing it. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c b/drivers/staging/fsl-mc/bus/mc-allocator.c in

[PATCH v2 08/12] staging: fsl-mc: Fixed bug in fsl_mc_allocator_remove

2015-10-14 Thread J. German Rivera
Call fsl_mc_resource_pool_remove_device() only if mc_dev->resource is not NULL. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-allocator.c b/drivers/stagin

[PATCH v2 00/12] staging: fsl-mc: Cleanup and bug fixes

2015-10-14 Thread J. German Rivera
This patch series includes the following code cleanup and bug fixes for the fsl-mc bus driver: Patch 1: Naming cleanup in fsl_mc-portal_allocate Patch 2: fsl_mc_io object refactoring Patch 3: dpmcp opening/closing refactoring Patch 4: Changed dev_info() calls to dev_dbg() Patch 5: Changed types of

[PATCH v2 06/12] staging: fsl-mc: Removed unused DPMCP macros

2015-10-14 Thread J. German Rivera
The macros were a left-over from a previous implementation of the dpmcp APIs and are no longer used. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 79 -- 1 file changed, 79 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dpm

[PATCH v2 07/12] staging: fsl-mc: Fixed alignment of copyright comment

2015-10-14 Thread J. German Rivera
Whitespace cleanup-- add missing spaces in column 1 of copyright --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/include/dpcon-cmd.h | 60 +++--- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/drivers/staging/fsl-mc/include/dpcon-cmd.h b/dr

[PATCH v2 02/12] staging: fsl-mc: fsl_mc_io object refactoring

2015-10-14 Thread J. German Rivera
Each fsl_mc_io object is associated with an fsl_mc_device object of type "dpmcp" representing the MC portal associated with the fsl_mc_io object. Before, we were representing this association with an fsl_mc_resource pointer. To enhance code clarity, it is more straight forward to use an fsl_mc_devi

[PATCH v2 01/12] staging: fsl-mc: Naming cleanup in fsl_mc-portal_allocate

2015-10-14 Thread J. German Rivera
mc_adev is a local variable for the allocated dpmcp object. Renamed mc_adev as dpmcp_dev for clarity. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-

[PATCH v2 05/12] staging_fsl-mc: Changed types of flags, portal size in

2015-10-14 Thread J. German Rivera
Changed these two fields from 32-bit integers to 16-bit integers in struct fsl_mc_io, as 32 bits is too much for these fields. This change does not affect other components since fsl_mc_io is an opaque type. --- CHANGE HISTORY Changes in v2: none drivers/staging/fsl-mc/include/mc-sys.h | 4 ++--

[PATCH v2 03/12] staging: fsl-mc: dpmcp opening/closing refactoring

2015-10-14 Thread J. German Rivera
Before, we were opening and closing a mc_io's dpmcp object in fsl_mc_portal_reset(), since that was the only function that was calling dpmcp MC operations. However, it is better for maintainability to open the dpmcp object when it gets associated with an mc_io object, and close it when this associa

[PATCH 3/4] staging: fsl-mc:Added support for atomic portals

2015-10-14 Thread J. German Rivera
disabled. It calls udelay() between polling iterations. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/mc-sys.c | 53 +++-- drivers/staging/fsl-mc/include/mc-sys.h | 5 2 files changed, 55 insertions(+), 3 deletions(-) diff --git a/drivers

[PATCH 4/4] staging: fsl-mc: Added serialization to mc_send_command()

2015-10-14 Thread J. German Rivera
responded by the MC. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/mc-sys.c | 25 ++--- drivers/staging/fsl-mc/include/mc-sys.h | 29 + 2 files changed, 51 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc

[PATCH 0/4] staging: fsl-mc: MC command serialization

2015-10-14 Thread J. German Rivera
This patch series depends on the patch series posted at http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg996780.html This patch series addresses the following item from the TODO list for the MC bus driver to exit staging: * Management Complex (MC) command serialization. Locking mechani

[PATCH 2/4] staging: fsl-mc: refactored mc_send_command()

2015-10-14 Thread J. German Rivera
Moved wait logic in mc_send_command() to its own function --- drivers/staging/fsl-mc/bus/mc-sys.c | 50 - 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-sys.c b/drivers/staging/fsl-mc/bus/mc-sys.c index 2c5f109..c4

[PATCH 1/4] staging: fsl-mc: changed timeout units for MC cmd completion

2015-10-14 Thread J. German Rivera
Changed units for the timeout to wait for completion of MC command, from jiffies to milliseconds. --- drivers/staging/fsl-mc/bus/mc-sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/mc-sys.c b/drivers/staging/fsl-mc/bus/mc-sys.c index 07848

[PATCH v3 0/12] staging: fsl-mc: Cleanup and bug fixes

2015-10-17 Thread J. German Rivera
This patch series includes the following code cleanup and bug fixes for the fsl-mc bus driver: Patch 1: Naming cleanup in fsl_mc-portal_allocate Patch 2: fsl_mc_io object refactoring Patch 3: dpmcp opening/closing refactoring Patch 4: Changed dev_info() calls to dev_dbg() Patch 5: Changed types of

[PATCH v3 11/12] staging: fsl-mc: fixed bug in uninitialized root dprc irq count

2015-10-17 Thread J. German Rivera
When initializing the object attributes for the root dprc, the irq_count was uninitialized. Initialize it to 1. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 1 + 1 file changed, 1

[PATCH v3 05/12] staging_fsl-mc: Changed types of flags, portal size in

2015-10-17 Thread J. German Rivera
Changed these two fields from 32-bit integers to 16-bit integers in struct fsl_mc_io, as 32 bits is too much for these fields. This change does not affect other components since fsl_mc_io is an opaque type. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed

[PATCH v3 12/12] staging: fsl-mc: Added missing initializer in fsl_mc_bus_driver

2015-10-17 Thread J. German Rivera
owner needs to be initialized as THIS_MOUDLE. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/fsl-mc/bus/mc-bus.c b

[PATCH v3 09/12] staging: fsl-mc: refactored error exit in allocator probe/remove

2015-10-17 Thread J. German Rivera
Replaced error gotos with direct returns in fsl_mc_allocator_probe() and fsl_mc_allocator_remove(), since the only error handling done in those functions is to exit. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc

[PATCH v3 04/12] staging: fsl-mc: Changed dev_info() calls to dev_dbg()

2015-10-17 Thread J. German Rivera
Changed dev_info() calls to dev_dbg() in fsl_mc_allocator_probe/fsl_mc_allocator_remove, as they are useful only for debugging. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 8

[PATCH v3 01/12] staging: fsl-mc: Naming cleanup in fsl_mc-portal_allocate

2015-10-17 Thread J. German Rivera
mc_adev is a local variable for the allocated dpmcp object. Renamed mc_adev as dpmcp_dev for clarity. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 14 +++--- 1 file

[PATCH v3 02/12] staging: fsl-mc: fsl_mc_io object refactoring

2015-10-17 Thread J. German Rivera
to use an fsl_mc_device pointer instead. So, this change replaces the 'resource' field in the fsl_mc_io object with 'dpmcp_dev'. Also, it changes parameter 'resource' of fsl_create_mc_io() to be an fsl_mc_device pointer instead. Signed-off-by: J. German Rivera --- CHANGE HISTOR

[PATCH v3 03/12] staging: fsl-mc: dpmcp opening/closing refactoring

2015-10-17 Thread J. German Rivera
functions: fsl_mc_io_set_dpmcp()/fsl_mc_io_unset_dpmcp(). Besides, setting the corresponding pointers for the association, these functions open and close the dpmcp object respectively. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2:

[PATCH v3 10/12] staging: fsl-mc: Fixed WARN_ON() in fsl_mc_resource_pool_remove_device

2015-10-17 Thread J. German Rivera
Check that resource is not NULL before de-referencing it. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers

[PATCH v3 08/12] staging: fsl-mc: Fixed bug in fsl_mc_allocator_remove

2015-10-17 Thread J. German Rivera
Call fsl_mc_resource_pool_remove_device() only if mc_dev->resource is not NULL. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 8 +--- 1 file changed, 5 insertions(+)

[PATCH v3 06/12] staging: fsl-mc: Removed unused DPMCP macros

2015-10-17 Thread J. German Rivera
The macros were a left-over from a previous implementation of the dpmcp APIs and are no longer used. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 79

[PATCH v3 07/12] staging: fsl-mc: Fixed alignment of copyright comment

2015-10-17 Thread J. German Rivera
Whitespace cleanup-- add missing spaces in column 1 of copyright Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: - Added missing signed-off-by Changes in v2: none drivers/staging/fsl-mc/include/dpcon-cmd.h | 60 +++--- 1 file changed, 30 insertions

[PATCH v2 3/4] staging: fsl-mc:Added support for atomic portals

2015-10-17 Thread J. German Rivera
disabled. It calls udelay() between polling iterations. Signed-off-by: J. German Rivera --- Changes in v2: none drivers/staging/fsl-mc/bus/mc-sys.c | 53 +++-- drivers/staging/fsl-mc/include/mc-sys.h | 5 2 files changed, 55 insertions(+), 3 deletions(-) diff

[PATCH v2 2/4] staging: fsl-mc: refactored mc_send_command()

2015-10-17 Thread J. German Rivera
Moved wait logic in mc_send_command() to its own function Signed-off-by: J. German Rivera --- Changes in v2: - Added missing Signed-off-by entry drivers/staging/fsl-mc/bus/mc-sys.c | 50 - 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a

[PATCH v2 4/4] staging: fsl-mc: Added serialization to mc_send_command()

2015-10-17 Thread J. German Rivera
responded by the MC. Signed-off-by: J. German Rivera --- Changes in v2: - Added missing Signed-off-by entry drivers/staging/fsl-mc/bus/mc-sys.c | 25 ++--- drivers/staging/fsl-mc/include/mc-sys.h | 29 + 2 files changed, 51 insertions(+), 3

[PATCH v2 1/4] staging: fsl-mc: changed timeout units for MC cmd completion

2015-10-17 Thread J. German Rivera
Changed units for the timeout to wait for completion of MC command, from jiffies to milliseconds. Signed-off-by: J. German Rivera --- Changes in v2: - Added missing Signed-off-by entry drivers/staging/fsl-mc/bus/mc-sys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a

[PATCH v2 0/4] staging: fsl-mc: MC command serialization

2015-10-17 Thread J. German Rivera
This patch series depends on the patch series posted at http://www.mail-archive.com/linux-kernel@vger.kernel.org/msg999081.html This patch series addresses the following item from the TODO list for the MC bus driver to exit staging: * Management Complex (MC) command serialization. Locking mechani

[PATCH] arm64: dts: Added syscon-reboot node for FSL's LS2085A SoC

2015-10-23 Thread J. German Rivera
Added sys-reboot node to the FSL's LS2085A SoC DT to leverage the ARM-generic reboot mechanism for this SoC. This mechanism is enabled through CONFIG_POWER_RESET_SYSCON. Signed-off-by: J. German Rivera --- arch/arm64/boot/dts/freescale/fsl-ls2085a.dtsi | 12 1 file change

[PATCH 03/10] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-10-26 Thread J. German Rivera
Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/Makefile| 1 + .../staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 127 + drivers/staging/fsl-mc/include/mc-private.h| 4

[PATCH 02/10] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-10-26 Thread J. German Rivera
Created an MSI domain for the fsl-mc bus-- including functions to create a domain, find a domain, alloc/free domain irqs, and bus specific overrides for domain and irq_chip ops. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/Kconfig | 1 + drivers/staging/fsl-mc/bus

[PATCH 00/10] staging: fsl-mc: MC bus MSI support

2015-10-26 Thread J. German Rivera
This patch series addresses the following item from the TODO list for the MC bus driver to exit staging: * Interrupt support. For meaningful driver support we need interrupts, and thus need message interrupt support by the bus driver. MC Bus MSI Support Architecture ==

[PATCH 10/10] staging: fsl-mc: Added MSI support to the MC bus driver

2015-10-26 Thread J. German Rivera
Initialize/Cleanup ITS-MSI support for the MC bus driver at driver init/exit time. Associate an MSI domain with each DPAA2 child device. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/mc-bus.c | 12 1 file changed, 12 insertions(+) diff --git a/drivers/staging/fsl

[PATCH 07/10] staging: fsl-mc: set MSI domain for DPRC objects

2015-10-26 Thread J. German Rivera
THE MSI domain associated with a root DPRC object is obtained form the device tree. Child DPRCs inherit the parent DPRC MSI domain. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dprc-driver.c | 39 1 file changed, 39 insertions(+) diff --git a

[PATCH 06/10] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2015-10-26 Thread J. German Rivera
l allocate their necessary MSI IRQs from the DPRC's IRQ pool, in their driver probe function. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dprc-driver.c| 24 ++-- drivers/staging/fsl-mc/include/mc-private.h | 3 ++- 2 files changed, 24 insertions(

[PATCH 08/10] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-10-26 Thread J. German Rivera
Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Minor refactoring in error labels. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dprc-driver.c | 21 - 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a

[PATCH 09/10] staging: fsl-mc: Added DPRC interrupt handler

2015-10-26 Thread J. German Rivera
-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dprc-driver.c | 247 +++ 1 file changed, 247 insertions(+) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c index 3eeafaa..38ec2b2 100644 --- a/drivers/staging/

[PATCH 04/10] staging: fsl-mc: Extended MC bus allocator to include IRQs

2015-10-26 Thread J. German Rivera
bus object allocator is extended to also provide services to allocate IRQs to DPAA2 devices, from their parent fsl-mc bus IRQ pool. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/mc-allocator.c | 199 drivers/staging/fsl-mc/include/mc-private.h | 15

[PATCH 01/10] irqdomain: Added domain bus token DOMAIN_BUS_FSL_MC_MSI

2015-10-26 Thread J. German Rivera
Since an FSL-MC bus is a new bus type that is neither PCI nor PLATFORM, we need a new domain bus token to disambiguate the IRQ domain for FSL-MC MSIs. Signed-off-by: J. German Rivera --- include/linux/irqdomain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/irqdomain.h b

[PATCH 05/10] staging: fsl-mc: Changed DPRC built-in portal's mc_io to be atomic

2015-10-26 Thread J. German Rivera
tomic mc_io. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dprc-driver.c | 4 +++- drivers/staging/fsl-mc/bus/mc-bus.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/staging/fsl-mc/bus/dprc-driver.c b/drivers/staging/fsl-mc/bus/dprc-driver.c

[PATCH 1/3 v6] drivers/bus: Added Freescale Management Complex APIs

2015-01-16 Thread J. German Rivera
APIs to access the Management Complex (MC) hardware module of Freescale LS2 SoCs. This patch includes APIs to check the MC firmware version and to manipulate DPRC objects in the MC. Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- Changes in v6: - Upgraded MC flibs for MC

[PATCH 3/3 v6] drivers/bus: Device driver for FSL-MC DPRC devices

2015-01-16 Thread J. German Rivera
A DPRC (Data Path Resource Container) is an isolation device that contains a set of DPAA networking devices to be assigned to an isolation domain (e.g., a virtual machine). Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- Changes in v6: - Fixed new checkpatch warnings Changes in

[PATCH 2/3 v6] drivers/bus: Freescale Management Complex (fsl-mc) bus driver

2015-01-16 Thread J. German Rivera
Platform device driver that sets up the basic bus infrastructure for the fsl-mc bus type, including support for adding/removing fsl-mc devices, register/unregister of fsl-mc drivers, and bus match support to bind devices to drivers. Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder

[PATCH 0/3 v6] drivers/bus: Freescale Management Complex bus driver patch series

2015-01-16 Thread J. German Rivera
This patch series introduces Linux support for the Freescale Management Complex (fsl-mc) hardware. This patch series is dependent on the patch series "ARM64: Add support for FSL's LS2085A SoC" (http://thread.gmane.org/gmane.linux.ports.arm.kernel/351829) The fsl-mc is a hardware resource manager t

[RFC PATCH 0/1] drivers/bus: Freescale Management Complex object allocator driver

2015-01-16 Thread J. German Rivera
This patch series introduces the object allocator driver for the Freescale Management Complex (fsl-mc) of QorIQ Ls2 SoCs This patch series is dependent on the patch series "drivers/bus: Freescale Management Complex bus driver patch series" Besides adding the object allocator functionality, this pa

[RFC PATCH 1/1] drivers/bus: fsl-mc object allocator driver

2015-01-16 Thread J. German Rivera
The fsl-mc object allocator driver manages "allocatable" fsl-mc objects such as DPBPs, DPMCPs and DPCONs. It provides services to other fsl-mc drivers to allocate/deallocate these types of objects. Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- drivers/bus/fsl-m

[PATCH 2/7] staging: fsl_-mc: add device binding path 'driver_override'

2015-04-28 Thread J. German Rivera
(dprc.1) to specifically bind with driver (vfio-fsl-mc):- - echo vfio-fsl-mc > /sys/bus/fsl-mc/devices/dprc.1/driver_override - echo dprc.1 > /sys/bus/fsl-mc/drivers/fsl_mc_dprc/unbind - echo dprc.1 > /sys/bus/fsl-mc/drivers/vfio-fsl-mc/bind Signed-off-by: J. German Rivera

[PATCH 4/7] staging: fsl-mc: Upgraded MC bus driver to match MC fw 7.0.0

2015-04-28 Thread J. German Rivera
- Migrated MC bus driver to use DPRC flib 0.6. - Changed IRQ setup infrastructure to be able to program MSIs for MC objects in an object-independent way. Signed-off-by: J. German Rivera --- drivers/staging/fsl-mc/bus/dpmcp-cmd.h | 79 drivers/staging/fsl-mc/bus/dprc-cmd.h

[PATCH 3/7] staging: fsl-mc: Propagate driver_override for a child DPRC's children

2015-04-28 Thread J. German Rivera
sysfs attribute to vfio_fsl_mc driver, for each of them and rebind them. Signed-off-by: J. German Rivera Change-Id: I51e633367b019da1cd45bd4898e46be577b8ce42 Reviewed-on: http://git.am.freescale.net:8181/34567 Tested-by: Review Code-CDREVIEW Reviewed-by: Stuart Yoder Tested-by: Stuart Yoder

[PATCH 6/7] staging: fsl-mc: Add locking to serialize mc_send_command() calls

2015-04-28 Thread J. German Rivera
with it will be serialized using a mutex. Otherwise, if the fsl_mc_io object is going to be used in atomic context, mc_semd_command() calls with it will be serialized using a spinlock. Signed-off-by: J. German Rivera Change-Id: Icb770cd36e204ee6a17ad0f81e1d31cc9fe96816 Reviewed-on: http

[PATCH 0/7] staging: fsl-mc: New functionality to the MC bus driver

2015-04-28 Thread J. German Rivera
This patch series includes new functionality for the Freescale fsl-mc bus driver. Patch 1: MC bus IRQ support Patch 2: add device binding path 'driver_override' Patch 3: Propagate driver_override for a child DPRC's children Patch 4: Upgraded MC bus driver to match MC fw 7.0.0 Patch 5: Allow the MC

[PATCH 1/7] staging: fsl-mc: MC bus IRQ support

2015-04-28 Thread J. German Rivera
/destroying DPAA2 objects in the DPRC, changing the "plugged" state of DPAA2 objects and moving objects between DPRCs. Signed-off-by: J. German Rivera Change-Id: I2a986c465989c3811de19cfe9ed0b77168250cb1 Reviewed-on: http://git.am.freescale.net:8181/33626 Tested-by: Review Code-CDREVIEW R

[PATCH 5/7] staging: fsl-mc: Allow the MC bus driver to run without GIC support

2015-04-28 Thread J. German Rivera
fsl_mc_interrupts_supported(), which can be called from DPAA2 object drivers. Signed-off-by: J. German Rivera Change-Id: I881ab2c45c949e55cfafe1d281a7a31560955e5b Reviewed-on: http://git.am.freescale.net:8181/34712 Tested-by: Review Code-CDREVIEW Reviewed-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc

[PATCH 7/7] staging: fsl-mc: Use DPMCP IRQ and completion var to wait for MC

2015-04-28 Thread J. German Rivera
For most cases, mc_send_command() will wait on this completion variable, instead of doing polling. This completion variable will be signaled from the DPMCP IRQ handler. Signed-off-by: J. German Rivera Change-Id: Iab294be9c00fb029702cc8625eaf29ba058fa960 Reviewed-on: http://git.am.freescal

[PATCH v4 0/7] staging: fsl-mc: New functionality to the MC bus driver

2015-06-09 Thread J. German Rivera
This patch series includes new functionality for the Freescale fsl-mc bus driver. Patch 1: MC bus IRQ support Patch 2: add device binding path 'driver_override' Patch 3: Propagate driver_override for a child DPRC's children Patch 4: Upgraded MC bus driver to match MC fw 7.0.0 Patch 5: Allow the MC

[PATCH v4 3/7] staging: fsl-mc: Propagate driver_override for a child DPRC's children

2015-06-09 Thread J. German Rivera
sysfs attribute to vfio_fsl_mc driver, for each of them and rebind them. Signed-off-by: J. German Rivera Reviewed-by: Stuart Yoder Tested-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c| 14 ++ drivers/staging/fsl-mc/bus/mc-bus.c | 16 +++- drivers

[PATCH v4 2/7] staging: fsl_-mc: add device binding path 'driver_override'

2015-06-09 Thread J. German Rivera
(dprc.1) to specifically bind with driver (vfio-fsl-mc):- - echo vfio-fsl-mc > /sys/bus/fsl-mc/devices/dprc.1/driver_override - echo dprc.1 > /sys/bus/fsl-mc/drivers/fsl_mc_dprc/unbind - echo dprc.1 > /sys/bus/fsl-mc/drivers/vfio-fsl-mc/bind Signed-off-by: J. German Rivera Reviewed-by: Stu

[PATCH v4 7/7] staging: fsl-mc: Use DPMCP IRQ and completion var to wait for MC

2015-06-09 Thread J. German Rivera
For most cases, mc_send_command() will wait on this completion variable, instead of doing polling. This completion variable will be signaled from the DPMCP IRQ handler. Signed-off-by: J. German Rivera Reviewed-by: Stuart Yoder --- Changes in v4: - Fixed new checkpatch warnings and checks

[PATCH v4 4/7] staging: fsl-mc: Upgraded MC bus driver to match MC fw 7.0.0

2015-06-09 Thread J. German Rivera
- Migrated MC bus driver to use DPRC API 0.6. - Changed IRQ setup infrastructure to be able to program MSIs for MC objects in an object-independent way. Signed-off-by: J. German Rivera --- Changes in v4: - Fixed new checkpatch warnings and checks - Add missing error handling in dprc_probe

[PATCH v4 1/7] staging: fsl-mc: MC bus IRQ support

2015-06-09 Thread J. German Rivera
/destroying DPAA2 objects in the DPRC, changing the "plugged" state of DPAA2 objects and moving objects between DPRCs. Signed-off-by: J. German Rivera Reviewed-by: Stuart Yoder --- Changes in v4: - Addressed comments from Dan Carpenter and Greg Kroah-Hartman: * Removed all #ifdefe

[PATCH v4 6/7] staging: fsl-mc: Add locking to serialize mc_send_command() calls

2015-06-09 Thread J. German Rivera
() calls with it will be serialized using a spinlock. Signed-off-by: J. German Rivera Reviewed-by: Stuart Yoder --- Changes in v4: - Fixed new checkpatch checks drivers/staging/fsl-mc/bus/mc-sys.c | 40 ++--- drivers/staging/fsl-mc/include/mc-sys.h | 23

[PATCH v4 5/7] staging: fsl-mc: Allow the MC bus driver to run without GIC support

2015-06-09 Thread J. German Rivera
fsl_mc_interrupts_supported(), which can be called from DPAA2 object drivers. Signed-off-by: J. German Rivera Reviewed-by: Stuart Yoder --- drivers/staging/fsl-mc/bus/dprc-driver.c| 31 +++-- drivers/staging/fsl-mc/bus/mc-allocator.c | 4 drivers/staging/fsl-mc/bus/mc-bus.c

[PATCH 0/3 v2] drivers/bus: Freescale Management Complex bus driver patch series

2014-09-19 Thread J. German Rivera
This patch series introduces Linux support for the Freescale Management Complex (fsl-mc) hardware. This patch series is dependent on the patch series "ARM64: Add support for FSL's LS2085A SoC" (http://thread.gmane.org/gmane.linux.ports.arm.kernel/351829) The fsl-mc is a hardware resource manager t

[PATCH 2/3 v2] drivers/bus: Freescale Management Complex (fsl-mc) bus driver

2014-09-19 Thread J. German Rivera
From: "J. German Rivera" Platform device driver that sets up the basic bus infrastructure for the fsl-mc bus type, including support for adding/removing fsl-mc devices, register/unregister of fsl-mc drivers, and bus match support to bind devices to drivers. Signed-off-by: J. Ger

[PATCH 3/3 v2] drivers/bus: Device driver for FSL-MC DPRC devices

2014-09-19 Thread J. German Rivera
From: "J. German Rivera" A DPRC (Data Path Resource Container) is an isolation device that contains a set of DPAA networking devices to be assigned to an isolation domain (e.g., a virtual machine). Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- Changes in v2: -

[PATCH 1/3 v2] drivers/bus: Added Freescale Management Complex APIs

2014-09-19 Thread J. German Rivera
From: "J. German Rivera" APIs to access the Management Complex (MC) hardware module of Freescale LS2 SoCs. This patch includes APIs to check the MC firmware version and to manipulate DPRC objects in the MC. Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- Cha

[PATCH 4/4] Update MAINTAINERS file

2014-09-11 Thread J. German Rivera
From: "J. German Rivera" Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7e2eb4c..eb8597d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3841,6 +38

[PATCH 1/4] drivers/bus: Added Freescale Management Complex APIs

2014-09-11 Thread J. German Rivera
From: "J. German Rivera" APIs to access the Management Complex (MC) hardware module of Freescale LS2 SoCs. This patch includes APIs to check the MC firmware version and to manipulate DPRC objects in the MC. Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- drivers/

[PATCH 2/4] drivers/bus: Freescale Management Complex (fsl-mc) bus driver

2014-09-11 Thread J. German Rivera
From: "J. German Rivera" Platform device driver that sets up the basic bus infrastructure for the fsl-mc bus type, including support for adding/removing fsl-mc devices, register/unregister of fsl-mc drivers, and bus match support to bind devices to drivers. Signed-off-by: J. Ger

[PATCH 3/4] drivers/bus: Device driver for FSL-MC DPRC devices

2014-09-11 Thread J. German Rivera
From: "J. German Rivera" A DPRC (Data Path Resource Container) is an isolation device that contains a set of DPAA networking devices to be assigned to an isolation domain (e.g., a virtual machine). Signed-off-by: J. German Rivera Signed-off-by: Stuart Yoder --- Changes in RFC v

[PATCH 0/4] drivers/bus: Freescale Management Complex bus driver patch series

2014-09-11 Thread J. German Rivera
This patch series introduces Linux support for the Freescale Management Complex (fsl-mc) hardware. The fsl-mc is a hardware resource manager that manages specialized hardware objects used in network-oriented packet processing applications. After the fsl-mc block is enabled, pools of hardware reso

[RFC PATCH 4/4 v3] Update MAINTAINERS file

2014-08-22 Thread J. German Rivera
From: "J. German Rivera" Signed-off-by: J. German Rivera --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7e2eb4c..eb8597d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3841,6 +3841,14 @@ S: Maintained F: sou

[RFC PATCH 1/4 v3] drivers/bus: Added Freescale Management Complex APIs

2014-08-22 Thread J. German Rivera
From: "J. German Rivera" APIs to access the Management Complex (MC) hardware module of Freescale LS2 SoCs. This patch includes APIs to check the MC firmware version and to manipulate DPRC objects in the MC. Signed-off-by: J. German Rivera --- drivers/bus/fsl-mc/dpmng.c

[RFC PATCH 0/4 v3] drivers/bus: Freescale Management Complex bus driver patch series

2014-08-22 Thread J. German Rivera
This patch series introduces Linux support for the Freescale Management Complex (fsl-mc) hardware. The fsl-mc is a hardware resource manager that manages specialized hardware objects used in network-oriented packet processing applications. After the fsl-mc block is enabled, pools of hardware reso

[RFC PATCH 3/4 v3] drivers/bus: Device driver for FSL-MC DPRC devices

2014-08-22 Thread J. German Rivera
From: "J. German Rivera" A DPRC (Data Path Resource Container) is an isolation device that contains a set of DPAA networking devices to be assigned to an isolation domain (e.g., a virtual machine). Signed-off-by: J. German Rivera --- drivers/bus/fsl-mc/Makefile |3 +- drive

[RFC PATCH 2/4 v3] drivers/bus: Freescale Management Complex (fsl-mc) bus driver

2014-08-22 Thread J. German Rivera
From: "J. German Rivera" Platform device driver that sets up the basic bus infrastructure for the fsl-mc bus type, including support for adding/removing fsl-mc devices, register/unregister of fsl-mc drivers, and bus match support to bind devices to drivers. Signed-off-by: J. Ger

[RFC PATCH 0/4 v2] drivers/bus: Freescale Management Complex bus driver patch series

2014-08-19 Thread J. German Rivera
This patch series introduces Linux support for the Freescale Management Complex (fsl-mc) hardware. The fsl-mc is a hardware resource manager that manages specialized hardware objects used in network-oriented packet processing applications. After the fsl-mc block is enabled, pools of hardware reso

[RFC PATCH 4/4 v2] Update MAINTAINERS file

2014-08-19 Thread J. German Rivera
From: "J. German Rivera" Signed-off-by: J. German Rivera --- MAINTAINERS |8 1 file changed, 8 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 7e2eb4c..eb8597d 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3841,6 +3841,14 @@ S: Maintained F: sou

[RFC PATCH 3/4 v2] drivers/bus: Device driver for FSL-MC DPRC devices

2014-08-19 Thread J. German Rivera
From: "J. German Rivera" A DPRC (Data Path Resource Container) is an isolation device that contains a set of DPAA networking devices to be assigned to an isolation domain (e.g., a virtual machine). Signed-off-by: J. German Rivera --- drivers/bus/fsl-mc/Makefile |3 +- drive

  1   2   3   >