Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
669cb51c
Commit
669cb51c
authored
Jan 01, 2010
by
Eric Miao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] pxa: use chip->ack() instead of accessing GEDR directly
Signed-off-by:
Eric Miao
<
eric.y.miao@gmail.com
>
parent
2a2d10f3
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
7 deletions
+6
-7
arch/arm/mach-pxa/cm-x2xx-pci.c
arch/arm/mach-pxa/cm-x2xx-pci.c
+1
-1
arch/arm/mach-pxa/lpd270.c
arch/arm/mach-pxa/lpd270.c
+1
-1
arch/arm/mach-pxa/lubbock.c
arch/arm/mach-pxa/lubbock.c
+1
-1
arch/arm/mach-pxa/mainstone.c
arch/arm/mach-pxa/mainstone.c
+1
-1
arch/arm/mach-pxa/pcm990-baseboard.c
arch/arm/mach-pxa/pcm990-baseboard.c
+1
-2
arch/arm/mach-pxa/viper.c
arch/arm/mach-pxa/viper.c
+1
-1
No files found.
arch/arm/mach-pxa/cm-x2xx-pci.c
View file @
669cb51c
...
@@ -59,7 +59,7 @@ void __init cmx2xx_pci_adjust_zones(int node, unsigned long *zone_size,
...
@@ -59,7 +59,7 @@ void __init cmx2xx_pci_adjust_zones(int node, unsigned long *zone_size,
static
void
cmx2xx_it8152_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
static
void
cmx2xx_it8152_irq_demux
(
unsigned
int
irq
,
struct
irq_desc
*
desc
)
{
{
/* clear our parent irq */
/* clear our parent irq */
GEDR
(
cmx2xx_it8152_irq_gpio
)
=
GPIO_bit
(
cmx2xx_it8152_irq_gpio
);
desc
->
chip
->
ack
(
irq
);
it8152_irq_demux
(
irq
,
desc
);
it8152_irq_demux
(
irq
,
desc
);
}
}
...
...
arch/arm/mach-pxa/lpd270.c
View file @
669cb51c
...
@@ -121,7 +121,7 @@ static void lpd270_irq_handler(unsigned int irq, struct irq_desc *desc)
...
@@ -121,7 +121,7 @@ static void lpd270_irq_handler(unsigned int irq, struct irq_desc *desc)
pending
=
__raw_readw
(
LPD270_INT_STATUS
)
&
lpd270_irq_enabled
;
pending
=
__raw_readw
(
LPD270_INT_STATUS
)
&
lpd270_irq_enabled
;
do
{
do
{
GEDR
(
0
)
=
GPIO_bit
(
0
);
/* clear useless edge notification */
desc
->
chip
->
ack
(
irq
);
/* clear useless edge notification */
if
(
likely
(
pending
))
{
if
(
likely
(
pending
))
{
irq
=
LPD270_IRQ
(
0
)
+
__ffs
(
pending
);
irq
=
LPD270_IRQ
(
0
)
+
__ffs
(
pending
);
generic_handle_irq
(
irq
);
generic_handle_irq
(
irq
);
...
...
arch/arm/mach-pxa/lubbock.c
View file @
669cb51c
...
@@ -158,7 +158,7 @@ static void lubbock_irq_handler(unsigned int irq, struct irq_desc *desc)
...
@@ -158,7 +158,7 @@ static void lubbock_irq_handler(unsigned int irq, struct irq_desc *desc)
{
{
unsigned
long
pending
=
LUB_IRQ_SET_CLR
&
lubbock_irq_enabled
;
unsigned
long
pending
=
LUB_IRQ_SET_CLR
&
lubbock_irq_enabled
;
do
{
do
{
GEDR
(
0
)
=
GPIO_bit
(
0
);
/* clear our parent irq */
desc
->
chip
->
ack
(
irq
);
/* clear our parent irq */
if
(
likely
(
pending
))
{
if
(
likely
(
pending
))
{
irq
=
LUBBOCK_IRQ
(
0
)
+
__ffs
(
pending
);
irq
=
LUBBOCK_IRQ
(
0
)
+
__ffs
(
pending
);
generic_handle_irq
(
irq
);
generic_handle_irq
(
irq
);
...
...
arch/arm/mach-pxa/mainstone.c
View file @
669cb51c
...
@@ -162,7 +162,7 @@ static void mainstone_irq_handler(unsigned int irq, struct irq_desc *desc)
...
@@ -162,7 +162,7 @@ static void mainstone_irq_handler(unsigned int irq, struct irq_desc *desc)
{
{
unsigned
long
pending
=
MST_INTSETCLR
&
mainstone_irq_enabled
;
unsigned
long
pending
=
MST_INTSETCLR
&
mainstone_irq_enabled
;
do
{
do
{
GEDR
(
0
)
=
GPIO_bit
(
0
);
/* clear useless edge notification */
desc
->
chip
->
ack
(
irq
);
/* clear useless edge notification */
if
(
likely
(
pending
))
{
if
(
likely
(
pending
))
{
irq
=
MAINSTONE_IRQ
(
0
)
+
__ffs
(
pending
);
irq
=
MAINSTONE_IRQ
(
0
)
+
__ffs
(
pending
);
generic_handle_irq
(
irq
);
generic_handle_irq
(
irq
);
...
...
arch/arm/mach-pxa/pcm990-baseboard.c
View file @
669cb51c
...
@@ -259,8 +259,7 @@ static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc)
...
@@ -259,8 +259,7 @@ static void pcm990_irq_handler(unsigned int irq, struct irq_desc *desc)
unsigned
long
pending
=
(
~
PCM990_INTSETCLR
)
&
pcm990_irq_enabled
;
unsigned
long
pending
=
(
~
PCM990_INTSETCLR
)
&
pcm990_irq_enabled
;
do
{
do
{
GEDR
(
PCM990_CTRL_INT_IRQ_GPIO
)
=
desc
->
chip
->
ack
(
irq
);
/* clear our parent IRQ */
GPIO_bit
(
PCM990_CTRL_INT_IRQ_GPIO
);
if
(
likely
(
pending
))
{
if
(
likely
(
pending
))
{
irq
=
PCM027_IRQ
(
0
)
+
__ffs
(
pending
);
irq
=
PCM027_IRQ
(
0
)
+
__ffs
(
pending
);
generic_handle_irq
(
irq
);
generic_handle_irq
(
irq
);
...
...
arch/arm/mach-pxa/viper.c
View file @
669cb51c
...
@@ -281,7 +281,7 @@ static void viper_irq_handler(unsigned int irq, struct irq_desc *desc)
...
@@ -281,7 +281,7 @@ static void viper_irq_handler(unsigned int irq, struct irq_desc *desc)
do
{
do
{
/* we're in a chained irq handler,
/* we're in a chained irq handler,
* so ack the interrupt by hand */
* so ack the interrupt by hand */
GEDR
(
VIPER_CPLD_GPIO
)
=
GPIO_bit
(
VIPER_CPLD_GPIO
);
desc
->
chip
->
ack
(
irq
);
if
(
likely
(
pending
))
{
if
(
likely
(
pending
))
{
irq
=
viper_bit_to_irq
(
__ffs
(
pending
));
irq
=
viper_bit_to_irq
(
__ffs
(
pending
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment