[PATCH RESEND v4 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" All the IRQs for DPAA2 objects in the same DPRC must use the ICID of that DPRC, as their device Id in the GIC-ITS. Thus, all these IRQs must share the same ITT table in the GIC. As a result, a pool of IRQs with the same device Id must be preallocated per DPRC (

[PATCH RESEND v4 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2016-01-06 Thread J. German Rivera
From: "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 --- CHANGE HISTORY Changes in v4: - Addresse

[PATCH RESEND v4 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Moved bus type check earlier in its_fsl_mc_msi_prepare() * Removed its_dev_i

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

2016-01-06 Thread J. German Rivera
From: "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 --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none drive

[PATCH RESEND v4 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: - Addressed comment from Dan Carpenter: * Renamed

[PATCH RESEND v4 00/11] staging: fsl-mc: MC bus MSI support

2016-01-06 Thread J. German Rivera
*** This is a resend of the last iteration of this patch series *** 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

[PATCH RESEND v4 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: - Addressed comment from Jiang

[PATCH RESEND v4 01/11] irqdomain: Added domain bus token DOMAIN_BUS_FSL_MC_MSI

2016-01-06 Thread J. German Rivera
From: "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 --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes i

[PATCH RESEND v4 06/11] staging: fsl-mc: Changed DPRC built-in portal's mc_io to be atomic

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" The DPRC built-in portal's mc_io is used to send commands to the MC to program MSIs for MC objects. This is done by the fsl_mc_msi_write_msg() callback, which is invoked by the generic MSI layer with interrupts disabled. As a result, th

[PATCH RESEND v4 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" Scan the corresponding DPRC container to get total count of IRQs needed by all its child DPAA2 objects. Then, preallocate a set of MSI IRQs with the DPRC's ICID (GIT-ITS device Id) to populate the the DPRC's IRQ pool. Each child DPAA2 object in t

[PATCH RESEND v4 10/11] staging: fsl-mc: Added DPRC interrupt handler

2016-01-06 Thread J. German Rivera
From: "J. German Rivera" The interrupt handler for DPRC IRQs is added. DPRC IRQs are generated for hot plug events related to DPAA2 objects in a given DPRC. These events include, creating/destroying DPAA2 objects in the DPRC, changing the "plugged" state of DPAA2 object

[PATCH RESEND v4 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2016-01-06 Thread J. German Rivera
From: "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 --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Chang

[PATCH v4 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-12-11 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 --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Re

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

2015-12-11 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 --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 12

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

2015-12-11 Thread J. German Rivera
-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none 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/

[PATCH v4 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2015-12-11 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 --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Changed call to fsl_mc_find_msi_domain() to match new

[PATCH v4 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-12-11 Thread J. German Rivera
Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: - Addressed comments from Marc Zyngier: * Moved bus type check earlier in its_fsl_mc_msi_prepare() * Removed its_dev_id variable * Changed some assignments to

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

2015-12-11 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 --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none include/linux/irqdomain.h | 1

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

2015-12-11 Thread J. German Rivera
tomic mc_io. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none 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/dr

[PATCH v4 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2015-12-11 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 --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c| 24 ++-- drivers

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

2015-12-11 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 v4 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2015-12-11 Thread J. German Rivera
FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: - Addressed comment from Jiang Liu * Added a dedicated structure for FSL-

[PATCH v4 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-12-11 Thread J. German Rivera
Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: - Addressed comment from Dan Carpenter: * Renamed goto error labels to indicate what the goto

[PATCH v4 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2015-12-11 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 --- CHANGE HISTORY Changes in v4: none Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 199

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

2015-11-24 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 12 1 file

[PATCH RESEND v3 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-11-24 Thread J. German Rivera
Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: - Addressed comment from Dan Carpenter: * Renamed goto error labels to indicate what the goto does drivers

[PATCH RESEND v3 06/11] staging: fsl-mc: Changed DPRC built-in portal's mc_io to be atomic

2015-11-24 Thread J. German Rivera
tomic mc_io. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none 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

[PATCH RESEND v3 00/11] staging: fsl-mc: MC bus MSI support

2015-11-24 Thread J. German Rivera
*** This is a resend of the last iteration of this patch series *** 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

[PATCH RESEND v3 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2015-11-24 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 199

[PATCH RESEND v3 10/11] staging: fsl-mc: Added DPRC interrupt handler

2015-11-24 Thread J. German Rivera
-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none 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-driv

[PATCH RESEND v3 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2015-11-24 Thread J. German Rivera
FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: - Addressed comment from Jiang Liu * Added a dedicated structure for FSL-MC in struct msi

[PATCH RESEND v3 01/11] irqdomain: Added domain bus token DOMAIN_BUS_FSL_MC_MSI

2015-11-24 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none include/linux/irqdomain.h | 1 + 1 file changed, 1

[PATCH RESEND v3 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2015-11-24 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c| 24 ++-- drivers/staging/fsl-mc/include/mc

[PATCH RESEND v3 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-11-24 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 --- CHANGE HISTORY Changes in v3: - Addressed comments from Marc Zyngier: * Added

[PATCH RESEND v3 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-11-24 Thread J. German Rivera
Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/Makefile| 1 + .../staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 127

[PATCH RESEND v3 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2015-11-24 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c | 39

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

2015-11-06 Thread J. German Rivera
Added sys-reboot node to the FSL's LS2080A 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 --- CHANGE HISTORY: Changes in v6: - Addressed comment from Javier Martinez Can

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

2015-11-06 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 v3 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2015-11-06 Thread J. German Rivera
FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: - Addressed comment from Jiang Liu * Added a dedicated structure for FSL-MC in struct msi

[PATCH v3 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2015-11-06 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c | 39

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

2015-11-06 Thread J. German Rivera
-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none 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-driv

[PATCH v3 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2015-11-06 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 199

[PATCH v3 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-11-06 Thread J. German Rivera
Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none - Addressed comment from Dan Carpenter * Renamed goto error labels to indicate what the goto does drivers

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

2015-11-06 Thread J. German Rivera
tomic mc_io. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none 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

[PATCH v3 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-11-06 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 --- CHANGE HISTORY Changes in v3: none - Addressed comments from Marc Zyngier

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

2015-11-06 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 12 1 file

[PATCH v3 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-11-06 Thread J. German Rivera
Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/Makefile| 1 + .../staging/fsl-mc/bus/irq-gic-v3-its-fsl-mc-msi.c | 127

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

2015-11-06 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none include/linux/irqdomain.h | 1 + 1 file changed, 1

[PATCH v3 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2015-11-06 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 --- CHANGE HISTORY Changes in v3: none Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c| 24 ++-- drivers/staging/fsl-mc/include/mc

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

2015-11-06 Thread J. German Rivera
e more specific * Changed node name to 'syscon' instead of 'rstcr' * Changed address to lower case hex - Addressed comment form Stuart Yoder: * Rebase on top of branch arm-soc/for-next Signed-off-by: J. German Rivera --- arch/arm64/boot/dts/freescale/fsl-ls2080a.dtsi |

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

2015-10-30 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 --- CHANGE HISTORY: Changes in v2: - Addressed comment form Stuart Yoder: * Re

[PATCH v2 04/11] staging: fsl-mc: Added GICv3-ITS support for FSL-MC MSIs

2015-10-30 Thread J. German Rivera
Added platform-specific MSI support layer for FSL-MC devices. Signed-off-by: J. German Rivera --- Changes in v2: none 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

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

2015-10-30 Thread J. German Rivera
tomic mc_io. Signed-off-by: J. German Rivera --- Changes in v2: none 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-m

[PATCH v2 03/11] staging: fsl-mc: Added generic MSI support for FSL-MC devices

2015-10-30 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 --- Changes in v2: none drivers/staging/fsl-mc/bus/Kconfig | 1 + drivers

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

2015-10-30 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 --- Changes in v2: none drivers/staging/fsl-mc/bus/mc-bus.c | 12 1 file changed, 12 insertions(+) diff --git a

[PATCH v2 07/11] staging: fsl-mc: Populate the IRQ pool for an MC bus instance

2015-10-30 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 --- Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c| 24 ++-- drivers/staging/fsl-mc/include/mc-private.h | 3 ++- 2 files changed

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

2015-10-30 Thread J. German Rivera
-off-by: J. German Rivera --- Changes in v2: none 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 7f1ceb5..0bd2e63 100644 ---

[PATCH v2 02/11] fsl-mc: msi: Added FSL-MC-specific member to the msi_desc's union

2015-10-30 Thread J. German Rivera
FSL-MC is a bus type different from PCI and platform, so it needs its own member in the msi_desc's union. Signed-off-by: J. German Rivera --- Changes in v2: - Addressed comment from Jiang Liu * Added a dedicated structure for FSL-MC in struct msi_desc include/linux/msi.h | 9 +++

[PATCH v2 05/11] staging: fsl-mc: Extended MC bus allocator to include IRQs

2015-10-30 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 --- Changes in v2: none drivers/staging/fsl-mc/bus/mc-allocator.c | 199 drivers/staging/fsl-mc

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

2015-10-30 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 --- Changes in v2: none include/linux/irqdomain.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include

[PATCH v2 09/11] staging: fsl-mc: Fixed bug in dprc_probe() error path

2015-10-30 Thread J. German Rivera
Destroy mc_io in error path in dprc_probe() only if the mc_io was created in this function. Signed-off-by: J. German Rivera --- Changes in v2: - Addressed comment from Dan Carpenter * Renamed goto error labels to indicate what the goto does drivers/staging/fsl-mc/bus/dprc-driver.c | 17

[PATCH v2 08/11] staging: fsl-mc: set MSI domain for DPRC objects

2015-10-30 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 --- Changes in v2: none drivers/staging/fsl-mc/bus/dprc-driver.c | 39 1 file changed, 39

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

2015-10-30 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 v3] arm64: dts: Added syscon-reboot node for FSL's LS2085A SoC

2015-10-30 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 --- CHANGE HISTORY: Changes in v2: - Addressed comment form Stuart Yoder: * Re

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

2015-10-28 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 --- CHANGE HISTORY Changes in v2: - Address comment form Stuart Yoder: * Removed &qu

[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 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 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 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 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 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 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 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 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 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 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] 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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

  1   2   3   >