* [PATCH 1/3] ACPICA: Don't switch task then not allowed
@ 2009-08-28 19:29 Alexey Starikovskiy
2009-08-28 19:29 ` [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Alexey Starikovskiy
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Alexey Starikovskiy @ 2009-08-28 19:29 UTC (permalink / raw)
To: Len Brown; +Cc: Linux-acpi
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
include/acpi/platform/aclinux.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/acpi/platform/aclinux.h b/include/acpi/platform/aclinux.h
index fcb8e4b..9d7febd 100644
--- a/include/acpi/platform/aclinux.h
+++ b/include/acpi/platform/aclinux.h
@@ -149,10 +149,10 @@ static inline void *acpi_os_acquire_object(acpi_cache_t * cache)
#define ACPI_FREE(a) kfree(a)
/* Used within ACPICA to show where it is safe to preempt execution */
-
+#include <linux/hardirq.h>
#define ACPI_PREEMPTION_POINT() \
do { \
- if (!irqs_disabled()) \
+ if (!in_atomic_preempt_off()) \
cond_resched(); \
} while (0)
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks
2009-08-28 19:29 [PATCH 1/3] ACPICA: Don't switch task then not allowed Alexey Starikovskiy
@ 2009-08-28 19:29 ` Alexey Starikovskiy
2009-08-29 18:40 ` Len Brown
2009-08-28 19:29 ` [PATCH 3/3] ACPI: EC: Drop orphan comment Alexey Starikovskiy
2009-08-29 18:41 ` [PATCH 1/3] ACPICA: Don't switch task then not allowed Len Brown
2 siblings, 1 reply; 6+ messages in thread
From: Alexey Starikovskiy @ 2009-08-28 19:29 UTC (permalink / raw)
To: Len Brown; +Cc: Linux-acpi
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
drivers/acpi/ec.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 78f8380..829e62e 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -627,7 +627,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
if (bits != 8 && acpi_strict)
return AE_BAD_PARAMETER;
- acpi_ec_burst_enable(ec);
+ if (EC_FLAGS_MSI)
+ acpi_ec_burst_enable(ec);
if (function == ACPI_READ) {
result = acpi_ec_read(ec, address, &temp);
@@ -648,7 +649,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
}
}
- acpi_ec_burst_disable(ec);
+ if (EC_FLAGS_MSI)
+ acpi_ec_burst_disable(ec);
switch (result) {
case -EINVAL:
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH 3/3] ACPI: EC: Drop orphan comment
2009-08-28 19:29 [PATCH 1/3] ACPICA: Don't switch task then not allowed Alexey Starikovskiy
2009-08-28 19:29 ` [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Alexey Starikovskiy
@ 2009-08-28 19:29 ` Alexey Starikovskiy
2009-08-29 18:40 ` Len Brown
2009-08-29 18:41 ` [PATCH 1/3] ACPICA: Don't switch task then not allowed Len Brown
2 siblings, 1 reply; 6+ messages in thread
From: Alexey Starikovskiy @ 2009-08-28 19:29 UTC (permalink / raw)
To: Len Brown; +Cc: Linux-acpi
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
drivers/acpi/ec.c | 4 ----
1 files changed, 0 insertions(+), 4 deletions(-)
diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
index 829e62e..6ccb18b 100644
--- a/drivers/acpi/ec.c
+++ b/drivers/acpi/ec.c
@@ -354,10 +354,6 @@ unlock:
return status;
}
-/*
- * Note: samsung nv5000 doesn't work with ec burst mode.
- * http://bugzilla.kernel.org/show_bug.cgi?id=4980
- */
static int acpi_ec_burst_enable(struct acpi_ec *ec)
{
u8 d;
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks
2009-08-28 19:29 ` [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Alexey Starikovskiy
@ 2009-08-29 18:40 ` Len Brown
0 siblings, 0 replies; 6+ messages in thread
From: Len Brown @ 2009-08-29 18:40 UTC (permalink / raw)
To: Alexey Starikovskiy; +Cc: Linux-acpi
applied to ec branch in acpi-test for 2.6.32
The patch needs a check-in comment before it goes upstream, however.
thanks,
Len Brown, Intel Open Source Technology Center
On Fri, 28 Aug 2009, Alexey Starikovskiy wrote:
> Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
> ---
>
> drivers/acpi/ec.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
>
> diff --git a/drivers/acpi/ec.c b/drivers/acpi/ec.c
> index 78f8380..829e62e 100644
> --- a/drivers/acpi/ec.c
> +++ b/drivers/acpi/ec.c
> @@ -627,7 +627,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
> if (bits != 8 && acpi_strict)
> return AE_BAD_PARAMETER;
>
> - acpi_ec_burst_enable(ec);
> + if (EC_FLAGS_MSI)
> + acpi_ec_burst_enable(ec);
>
> if (function == ACPI_READ) {
> result = acpi_ec_read(ec, address, &temp);
> @@ -648,7 +649,8 @@ acpi_ec_space_handler(u32 function, acpi_physical_address address,
> }
> }
>
> - acpi_ec_burst_disable(ec);
> + if (EC_FLAGS_MSI)
> + acpi_ec_burst_disable(ec);
>
> switch (result) {
> case -EINVAL:
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 3/3] ACPI: EC: Drop orphan comment
2009-08-28 19:29 ` [PATCH 3/3] ACPI: EC: Drop orphan comment Alexey Starikovskiy
@ 2009-08-29 18:40 ` Len Brown
0 siblings, 0 replies; 6+ messages in thread
From: Len Brown @ 2009-08-29 18:40 UTC (permalink / raw)
To: Alexey Starikovskiy; +Cc: Linux-acpi
applied
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/3] ACPICA: Don't switch task then not allowed
2009-08-28 19:29 [PATCH 1/3] ACPICA: Don't switch task then not allowed Alexey Starikovskiy
2009-08-28 19:29 ` [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Alexey Starikovskiy
2009-08-28 19:29 ` [PATCH 3/3] ACPI: EC: Drop orphan comment Alexey Starikovskiy
@ 2009-08-29 18:41 ` Len Brown
2 siblings, 0 replies; 6+ messages in thread
From: Len Brown @ 2009-08-29 18:41 UTC (permalink / raw)
To: Alexey Starikovskiy; +Cc: Linux-acpi
applied to acpi-test
again, this could use a check-in commment,
eg. citing the e-mail discussion of the failure
that this addresses
thanks,
Len Brown, Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-08-29 18:42 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-28 19:29 [PATCH 1/3] ACPICA: Don't switch task then not allowed Alexey Starikovskiy
2009-08-28 19:29 ` [PATCH 2/3] ACPI: EC: use BURST mode only for MSI notebooks Alexey Starikovskiy
2009-08-29 18:40 ` Len Brown
2009-08-28 19:29 ` [PATCH 3/3] ACPI: EC: Drop orphan comment Alexey Starikovskiy
2009-08-29 18:40 ` Len Brown
2009-08-29 18:41 ` [PATCH 1/3] ACPICA: Don't switch task then not allowed Len Brown
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.