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
nexedi
linux
Commits
8ed693d2
Commit
8ed693d2
authored
Jul 23, 2005
by
Luming Yu
Committed by
Len Brown
Jul 23, 2005
Browse files
Options
Browse Files
Download
Plain Diff
/home/lenb/linux-2.6 branch 'acpi-2.6.12'
parents
72538d85
668d74c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
+3
-14
drivers/acpi/ec.c
drivers/acpi/ec.c
+3
-14
No files found.
drivers/acpi/ec.c
View file @
8ed693d2
...
...
@@ -170,22 +170,19 @@ acpi_ec_enter_burst_mode (
status
=
acpi_ec_read_status
(
ec
);
if
(
status
!=
-
EINVAL
&&
!
(
status
&
ACPI_EC_FLAG_BURST
)){
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"entering burst mode
\n
"
));
acpi_hw_low_level_write
(
8
,
ACPI_EC_BURST_ENABLE
,
&
ec
->
command_addr
);
status
=
acpi_ec_wait
(
ec
,
ACPI_EC_EVENT_OBF
);
if
(
status
){
acpi_enable_gpe
(
NULL
,
ec
->
gpe_bit
,
ACPI_NOT_ISR
);
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
" status = %d
\n
"
,
status
));
return_VALUE
(
-
EINVAL
);
}
acpi_hw_low_level_read
(
8
,
&
tmp
,
&
ec
->
data_addr
);
acpi_enable_gpe
(
NULL
,
ec
->
gpe_bit
,
ACPI_NOT_ISR
);
if
(
tmp
!=
0x90
)
{
/* Burst ACK byte*/
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"Ack failed
\n
"
));
return_VALUE
(
-
EINVAL
);
}
}
else
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"already be in burst mode
\n
"
));
}
atomic_set
(
&
ec
->
leaving_burst
,
0
);
return_VALUE
(
0
);
}
...
...
@@ -202,7 +199,6 @@ acpi_ec_leave_burst_mode (
status
=
acpi_ec_read_status
(
ec
);
if
(
status
!=
-
EINVAL
&&
(
status
&
ACPI_EC_FLAG_BURST
)){
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"leaving burst mode
\n
"
));
acpi_hw_low_level_write
(
8
,
ACPI_EC_BURST_DISABLE
,
&
ec
->
command_addr
);
status
=
acpi_ec_wait
(
ec
,
ACPI_EC_FLAG_IBF
);
if
(
status
){
...
...
@@ -212,14 +208,7 @@ acpi_ec_leave_burst_mode (
}
acpi_enable_gpe
(
NULL
,
ec
->
gpe_bit
,
ACPI_NOT_ISR
);
status
=
acpi_ec_read_status
(
ec
);
if
(
status
!=
-
EINVAL
&&
(
status
&
ACPI_EC_FLAG_BURST
))
{
ACPI_DEBUG_PRINT
((
ACPI_DB_ERROR
,
"------->status fail
\n
"
));
return_VALUE
(
-
EINVAL
);
}
}
else
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"already be in Non-burst mode
\n
"
));
ACPI_DEBUG_PRINT
((
ACPI_DB_INFO
,
"leaving burst mode
\n
"
));
return_VALUE
(
0
);
}
...
...
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