* [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions
@ 2012-11-22 8:23 Nobuhiro Iwamatsu
2012-11-22 8:23 ` [PATCH shmobile/DT 2/2] ARM: shmobile: Update document for sh_intc of DT Nobuhiro Iwamatsu
2012-12-04 5:50 ` [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Simon Horman
0 siblings, 2 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-11-22 8:23 UTC (permalink / raw)
To: linux-arm-kernel
This removes of_sh_intc_get_meminfo, of_sh_intc_get_pint and of_sh_intc_get_intc functions.
These are not already used.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
drivers/sh/intc/of_intc.c | 76 ---------------------------------------------
include/linux/sh_intc.h | 28 -----------------
2 files changed, 104 deletions(-)
diff --git a/drivers/sh/intc/of_intc.c b/drivers/sh/intc/of_intc.c
index 30b1090..e833e48 100644
--- a/drivers/sh/intc/of_intc.c
+++ b/drivers/sh/intc/of_intc.c
@@ -529,49 +529,6 @@ void __init of_sh_intc_get_skip_syscore_suspend(struct device_node *np,
d->skip_syscore_suspend = false;
}
-int __init of_sh_intc_get_meminfo(struct device_node *np,
- struct resource *res, int res_no)
-{
- int ret = 0, i;
-
- for (i = 0 ; i < res_no ; i++) {
- ret = of_address_to_resource(np, i, &res[i]);
- if (ret) {
- pr_err("could not determine device base address\n");
- return ret;
- }
-
- pr_debug("%s: Address 0x%x, size %d\n",
- __func__, res[i].start, resource_size(&res[i]));
- }
-
- return ret;
-}
-
-int __init of_sh_intc_get_pint(struct device_node *np, struct intc_desc *d)
-{
- /* pint uses vector, mask and sence. */
- int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
- &d->hw.nr_vectors);
- if (ret)
- return ret;
-
- ret = of_sh_intc_get_mask(np, &d->hw.mask_regs,
- &d->hw.nr_mask_regs);
- if (ret)
- return ret;
-
- ret = of_sh_intc_get_sense(np, &d->hw.sense_regs,
- &d->hw.nr_sense_regs);
- /* INTC may not need Sence register. */
- if (ret && ret != -ENOENT)
- return ret;
-
- d->of_node = np;
-
- return 0;
-}
-
int __init of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d)
{
int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
@@ -611,36 +568,3 @@ int __init of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d)
return 0;
}
-
-int __init of_sh_intc_get_intc_pins(struct device_node *np,
- struct intc_desc *d)
-{
- int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
- &d->hw.nr_vectors);
- if (ret)
- return ret;
-
- ret = of_sh_intc_get_mask(np, &d->hw.mask_regs,
- &d->hw.nr_mask_regs);
- if (ret)
- return ret;
-
- ret = of_sh_intc_get_prio(np, &d->hw.prio_regs,
- &d->hw.nr_prio_regs);
- if (ret)
- return ret;
-
- ret = of_sh_intc_get_sense(np, &d->hw.sense_regs,
- &d->hw.nr_sense_regs);
- if (ret)
- return ret;
-
- ret = of_sh_intc_get_ack(np, &d->hw.ack_regs,
- &d->hw.nr_ack_regs);
- if (ret)
- return ret;
-
- d->of_node = np;
-
- return 0;
-}
diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h
index 6603da6..c7954ee 100644
--- a/include/linux/sh_intc.h
+++ b/include/linux/sh_intc.h
@@ -161,26 +161,6 @@ static inline int register_intc_userimask(unsigned long addr)
int of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d);
/*
- * of_sh_initc_get_intc_pins() - Get INTC Pins table.
- * @np: device node to get INTC from
- * @d: a pointer of intc pins table
- *
- * Return: one of the errno value on the error condition
- */
-int of_sh_intc_get_intc_pins(struct device_node *np, struct intc_desc *d);
-
-/*
- * of_sh_intc_get_meminfo() - Get and set INTC register of memory.
- * @np: device node to get INTC from
- * @res_mem: a pointer of resource
- * @res_no: resource number
- *
- * Return: one of the errno value on the error condition
- */
-int of_sh_intc_get_meminfo(struct device_node *np,
- struct resource *res_mem, int resno);
-
-/*
* of_sh_intc_get_force_enable - Get and set force_enable vector in
* struct intc_desc.
* @np: device node to get INTC from
@@ -221,13 +201,5 @@ void of_sh_intc_get_skip_syscore_suspend(struct device_node *np,
* Return: one of the errno value on the error condition
*/
int of_sh_intc_get_intevtsa_vect(struct device_node *np, unsigned short *vect);
-/*
- * of_sh_initc_get_intc_pint() - Get INTC Pint table.
- * @np: device node to get INTC from
- * @d: a pointer of intc pint table
- *
- * Return: one of the errno value on the error condition
- */
-int of_sh_intc_get_pint(struct device_node *np, struct intc_desc *d);
#endif /* __SH_INTC_H */
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH shmobile/DT 2/2] ARM: shmobile: Update document for sh_intc of DT
2012-11-22 8:23 [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Nobuhiro Iwamatsu
@ 2012-11-22 8:23 ` Nobuhiro Iwamatsu
2012-12-04 5:50 ` [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Simon Horman
1 sibling, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-11-22 8:23 UTC (permalink / raw)
To: linux-arm-kernel
Delete "renesas,sh_intcs" and "renesas,sh_intca_irq_pins" as compatible.
This updates the information about these.
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
---
Documentation/devicetree/bindings/sh/intc.txt | 15 ++-------------
1 file changed, 2 insertions(+), 13 deletions(-)
diff --git a/Documentation/devicetree/bindings/sh/intc.txt b/Documentation/devicetree/bindings/sh/intc.txt
index ebb2398..04b7f73 100644
--- a/Documentation/devicetree/bindings/sh/intc.txt
+++ b/Documentation/devicetree/bindings/sh/intc.txt
@@ -7,10 +7,7 @@ is managed by DT, in order to maintain compatibility.
Main node required properties:
-- compatible : should be one of:
- "renesas,sh_intca"
- "renesas,sh_intcs"
- "renesas,sh_intca_irq_pins"
+- compatible : "renesas,sh_intc"
- interrupt-controller : Identifies the node as an interrupt controller
- #interrupt-cells : Set already 1.
@@ -100,18 +97,10 @@ Optional:
This node required properties:
* vector : This specifies the address phandle of INTCS.
-Note:
-- "renesas,sh_intca" needs group_size, intc_group*, intc_vectors,
- intc_mask_registers and intc_prio_registers.
-- "renesas,sh_intcs" needs group_size, intc_group*, intc_vectors,
- intc_mask_registers, intc_prio_registers and intc_intevtsa.
-- "renesas,sh_intca_irq_pins" needs intc_vectors, intc_mask_registers,
- intc_prio_registers, intc_sense_registers and intc_ack_registers.
-
Example:
intca: interrupt-controller at 0 {
- compatible = "renesas,sh_intca";
+ compatible = "renesas,sh_intc";
interrupt-controller;
#address-cells = <1>;
#size-cells = <1>;
--
1.7.10.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions
2012-11-22 8:23 [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Nobuhiro Iwamatsu
2012-11-22 8:23 ` [PATCH shmobile/DT 2/2] ARM: shmobile: Update document for sh_intc of DT Nobuhiro Iwamatsu
@ 2012-12-04 5:50 ` Simon Horman
2012-12-04 7:44 ` Nobuhiro Iwamatsu
1 sibling, 1 reply; 4+ messages in thread
From: Simon Horman @ 2012-12-04 5:50 UTC (permalink / raw)
To: linux-arm-kernel
On Thu, Nov 22, 2012 at 05:23:38PM +0900, Nobuhiro Iwamatsu wrote:
> This removes of_sh_intc_get_meminfo, of_sh_intc_get_pint and of_sh_intc_get_intc functions.
> These are not already used.
Hi Iwamatsu-san,
these patches are for Paul, right?
>
> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
> ---
> drivers/sh/intc/of_intc.c | 76 ---------------------------------------------
> include/linux/sh_intc.h | 28 -----------------
> 2 files changed, 104 deletions(-)
>
> diff --git a/drivers/sh/intc/of_intc.c b/drivers/sh/intc/of_intc.c
> index 30b1090..e833e48 100644
> --- a/drivers/sh/intc/of_intc.c
> +++ b/drivers/sh/intc/of_intc.c
> @@ -529,49 +529,6 @@ void __init of_sh_intc_get_skip_syscore_suspend(struct device_node *np,
> d->skip_syscore_suspend = false;
> }
>
> -int __init of_sh_intc_get_meminfo(struct device_node *np,
> - struct resource *res, int res_no)
> -{
> - int ret = 0, i;
> -
> - for (i = 0 ; i < res_no ; i++) {
> - ret = of_address_to_resource(np, i, &res[i]);
> - if (ret) {
> - pr_err("could not determine device base address\n");
> - return ret;
> - }
> -
> - pr_debug("%s: Address 0x%x, size %d\n",
> - __func__, res[i].start, resource_size(&res[i]));
> - }
> -
> - return ret;
> -}
> -
> -int __init of_sh_intc_get_pint(struct device_node *np, struct intc_desc *d)
> -{
> - /* pint uses vector, mask and sence. */
> - int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
> - &d->hw.nr_vectors);
> - if (ret)
> - return ret;
> -
> - ret = of_sh_intc_get_mask(np, &d->hw.mask_regs,
> - &d->hw.nr_mask_regs);
> - if (ret)
> - return ret;
> -
> - ret = of_sh_intc_get_sense(np, &d->hw.sense_regs,
> - &d->hw.nr_sense_regs);
> - /* INTC may not need Sence register. */
> - if (ret && ret != -ENOENT)
> - return ret;
> -
> - d->of_node = np;
> -
> - return 0;
> -}
> -
> int __init of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d)
> {
> int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
> @@ -611,36 +568,3 @@ int __init of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d)
>
> return 0;
> }
> -
> -int __init of_sh_intc_get_intc_pins(struct device_node *np,
> - struct intc_desc *d)
> -{
> - int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
> - &d->hw.nr_vectors);
> - if (ret)
> - return ret;
> -
> - ret = of_sh_intc_get_mask(np, &d->hw.mask_regs,
> - &d->hw.nr_mask_regs);
> - if (ret)
> - return ret;
> -
> - ret = of_sh_intc_get_prio(np, &d->hw.prio_regs,
> - &d->hw.nr_prio_regs);
> - if (ret)
> - return ret;
> -
> - ret = of_sh_intc_get_sense(np, &d->hw.sense_regs,
> - &d->hw.nr_sense_regs);
> - if (ret)
> - return ret;
> -
> - ret = of_sh_intc_get_ack(np, &d->hw.ack_regs,
> - &d->hw.nr_ack_regs);
> - if (ret)
> - return ret;
> -
> - d->of_node = np;
> -
> - return 0;
> -}
> diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h
> index 6603da6..c7954ee 100644
> --- a/include/linux/sh_intc.h
> +++ b/include/linux/sh_intc.h
> @@ -161,26 +161,6 @@ static inline int register_intc_userimask(unsigned long addr)
> int of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d);
>
> /*
> - * of_sh_initc_get_intc_pins() - Get INTC Pins table.
> - * @np: device node to get INTC from
> - * @d: a pointer of intc pins table
> - *
> - * Return: one of the errno value on the error condition
> - */
> -int of_sh_intc_get_intc_pins(struct device_node *np, struct intc_desc *d);
> -
> -/*
> - * of_sh_intc_get_meminfo() - Get and set INTC register of memory.
> - * @np: device node to get INTC from
> - * @res_mem: a pointer of resource
> - * @res_no: resource number
> - *
> - * Return: one of the errno value on the error condition
> - */
> -int of_sh_intc_get_meminfo(struct device_node *np,
> - struct resource *res_mem, int resno);
> -
> -/*
> * of_sh_intc_get_force_enable - Get and set force_enable vector in
> * struct intc_desc.
> * @np: device node to get INTC from
> @@ -221,13 +201,5 @@ void of_sh_intc_get_skip_syscore_suspend(struct device_node *np,
> * Return: one of the errno value on the error condition
> */
> int of_sh_intc_get_intevtsa_vect(struct device_node *np, unsigned short *vect);
> -/*
> - * of_sh_initc_get_intc_pint() - Get INTC Pint table.
> - * @np: device node to get INTC from
> - * @d: a pointer of intc pint table
> - *
> - * Return: one of the errno value on the error condition
> - */
> -int of_sh_intc_get_pint(struct device_node *np, struct intc_desc *d);
>
> #endif /* __SH_INTC_H */
> --
> 1.7.10.4
>
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions
2012-12-04 5:50 ` [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Simon Horman
@ 2012-12-04 7:44 ` Nobuhiro Iwamatsu
0 siblings, 0 replies; 4+ messages in thread
From: Nobuhiro Iwamatsu @ 2012-12-04 7:44 UTC (permalink / raw)
To: linux-arm-kernel
Hi,
No, These patches are to devel/dt of your repository.
Best regards,
Nobuhiro
On Tue, Dec 4, 2012 at 2:50 PM, Simon Horman <horms@verge.net.au> wrote:
> On Thu, Nov 22, 2012 at 05:23:38PM +0900, Nobuhiro Iwamatsu wrote:
>> This removes of_sh_intc_get_meminfo, of_sh_intc_get_pint and of_sh_intc_get_intc functions.
>> These are not already used.
>
> Hi Iwamatsu-san,
>
> these patches are for Paul, right?
>
>>
>> Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
>> ---
>> drivers/sh/intc/of_intc.c | 76 ---------------------------------------------
>> include/linux/sh_intc.h | 28 -----------------
>> 2 files changed, 104 deletions(-)
>>
>> diff --git a/drivers/sh/intc/of_intc.c b/drivers/sh/intc/of_intc.c
>> index 30b1090..e833e48 100644
>> --- a/drivers/sh/intc/of_intc.c
>> +++ b/drivers/sh/intc/of_intc.c
>> @@ -529,49 +529,6 @@ void __init of_sh_intc_get_skip_syscore_suspend(struct device_node *np,
>> d->skip_syscore_suspend = false;
>> }
>>
>> -int __init of_sh_intc_get_meminfo(struct device_node *np,
>> - struct resource *res, int res_no)
>> -{
>> - int ret = 0, i;
>> -
>> - for (i = 0 ; i < res_no ; i++) {
>> - ret = of_address_to_resource(np, i, &res[i]);
>> - if (ret) {
>> - pr_err("could not determine device base address\n");
>> - return ret;
>> - }
>> -
>> - pr_debug("%s: Address 0x%x, size %d\n",
>> - __func__, res[i].start, resource_size(&res[i]));
>> - }
>> -
>> - return ret;
>> -}
>> -
>> -int __init of_sh_intc_get_pint(struct device_node *np, struct intc_desc *d)
>> -{
>> - /* pint uses vector, mask and sence. */
>> - int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
>> - &d->hw.nr_vectors);
>> - if (ret)
>> - return ret;
>> -
>> - ret = of_sh_intc_get_mask(np, &d->hw.mask_regs,
>> - &d->hw.nr_mask_regs);
>> - if (ret)
>> - return ret;
>> -
>> - ret = of_sh_intc_get_sense(np, &d->hw.sense_regs,
>> - &d->hw.nr_sense_regs);
>> - /* INTC may not need Sence register. */
>> - if (ret && ret != -ENOENT)
>> - return ret;
>> -
>> - d->of_node = np;
>> -
>> - return 0;
>> -}
>> -
>> int __init of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d)
>> {
>> int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
>> @@ -611,36 +568,3 @@ int __init of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d)
>>
>> return 0;
>> }
>> -
>> -int __init of_sh_intc_get_intc_pins(struct device_node *np,
>> - struct intc_desc *d)
>> -{
>> - int ret = of_sh_intc_get_vector(np, &d->hw.vectors,
>> - &d->hw.nr_vectors);
>> - if (ret)
>> - return ret;
>> -
>> - ret = of_sh_intc_get_mask(np, &d->hw.mask_regs,
>> - &d->hw.nr_mask_regs);
>> - if (ret)
>> - return ret;
>> -
>> - ret = of_sh_intc_get_prio(np, &d->hw.prio_regs,
>> - &d->hw.nr_prio_regs);
>> - if (ret)
>> - return ret;
>> -
>> - ret = of_sh_intc_get_sense(np, &d->hw.sense_regs,
>> - &d->hw.nr_sense_regs);
>> - if (ret)
>> - return ret;
>> -
>> - ret = of_sh_intc_get_ack(np, &d->hw.ack_regs,
>> - &d->hw.nr_ack_regs);
>> - if (ret)
>> - return ret;
>> -
>> - d->of_node = np;
>> -
>> - return 0;
>> -}
>> diff --git a/include/linux/sh_intc.h b/include/linux/sh_intc.h
>> index 6603da6..c7954ee 100644
>> --- a/include/linux/sh_intc.h
>> +++ b/include/linux/sh_intc.h
>> @@ -161,26 +161,6 @@ static inline int register_intc_userimask(unsigned long addr)
>> int of_sh_intc_get_intc(struct device_node *np, struct intc_desc *d);
>>
>> /*
>> - * of_sh_initc_get_intc_pins() - Get INTC Pins table.
>> - * @np: device node to get INTC from
>> - * @d: a pointer of intc pins table
>> - *
>> - * Return: one of the errno value on the error condition
>> - */
>> -int of_sh_intc_get_intc_pins(struct device_node *np, struct intc_desc *d);
>> -
>> -/*
>> - * of_sh_intc_get_meminfo() - Get and set INTC register of memory.
>> - * @np: device node to get INTC from
>> - * @res_mem: a pointer of resource
>> - * @res_no: resource number
>> - *
>> - * Return: one of the errno value on the error condition
>> - */
>> -int of_sh_intc_get_meminfo(struct device_node *np,
>> - struct resource *res_mem, int resno);
>> -
>> -/*
>> * of_sh_intc_get_force_enable - Get and set force_enable vector in
>> * struct intc_desc.
>> * @np: device node to get INTC from
>> @@ -221,13 +201,5 @@ void of_sh_intc_get_skip_syscore_suspend(struct device_node *np,
>> * Return: one of the errno value on the error condition
>> */
>> int of_sh_intc_get_intevtsa_vect(struct device_node *np, unsigned short *vect);
>> -/*
>> - * of_sh_initc_get_intc_pint() - Get INTC Pint table.
>> - * @np: device node to get INTC from
>> - * @d: a pointer of intc pint table
>> - *
>> - * Return: one of the errno value on the error condition
>> - */
>> -int of_sh_intc_get_pint(struct device_node *np, struct intc_desc *d);
>>
>> #endif /* __SH_INTC_H */
>> --
>> 1.7.10.4
>>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo at vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Nobuhiro Iwamatsu
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-04 7:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-22 8:23 [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Nobuhiro Iwamatsu
2012-11-22 8:23 ` [PATCH shmobile/DT 2/2] ARM: shmobile: Update document for sh_intc of DT Nobuhiro Iwamatsu
2012-12-04 5:50 ` [PATCH shmobile/DT 1/2] ARM: shmobile: Remove some of_sh_intc_* functions Simon Horman
2012-12-04 7:44 ` Nobuhiro Iwamatsu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox