[PATCH 4/5] staging: fsl-mc: add counter to track number of root DPRCs

2015-10-04 Thread itai.katz
From: Itai Katz Add a counter to track the number of root DPRCs. When this counter is greater then 0 it means that at least one root DPRC device exists. Signed-off-by: Itai Katz --- drivers/staging/fsl-mc/bus/mc-bus.c | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff

[PATCH 5/5] staging: fsl-mc: remove references to dev_root

2015-10-04 Thread itai.katz
From: Itai Katz The dev_root field in the bus type struct has been replaced by a new mechanism to identify the root dprc. Remove all references to dev_root. Signed-off-by: Itai Katz --- drivers/staging/fsl-mc/bus/mc-bus.c |4 1 file changed, 4 deletions(-) diff --git a/drivers/stagi

[PATCH 3/5] staging: fsl-mc: add function to return pointer to root dprc

2015-10-04 Thread itai.katz
From: Itai Katz To support multiple root dprcs, instead of relying on the dev_root field of the bus type struct, instead create a function to traverse to the root dprc and return a pointer to the device struct Signed-off-by: Itai Katz --- drivers/staging/fsl-mc/bus/mc-bus.c | 38

[PATCH 2/5] staging: fsl-mc: abstract test for whether a dprc is a root dprc

2015-10-04 Thread itai.katz
From: Itai Katz Instead of relying on assumptions about fields in data structures, abstract the test for whether a dprc is a root dprc into a function. Signed-off-by: Itai Katz --- drivers/staging/fsl-mc/bus/mc-bus.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) di

[PATCH 1/5] staging: fsl-mc: abstract test for existence of fsl-mc bus

2015-10-04 Thread itai.katz
From: Itai Katz Add function to test for existence of an fsl-mc bus instance instead of doing this by looking directly at a field in the bus type struct. Signed-off-by: Itai Katz --- drivers/staging/fsl-mc/bus/mc-bus.c | 13 +++-- drivers/staging/fsl-mc/include/mc.h |2 ++ 2 file

[PATCH 0/5] staging: fsl-mc: multiple root DPRCs

2015-10-04 Thread itai.katz
From: Itai Katz This patch series adds support for supporting multiple root DPRCs, which is an item on the TODO list. (This situation can is possible when assigning multiple DPRCs to KVM virtual machines.) Patch 1 abstracts the test for existence of an fsl-mc bus instance into a function. Patc