public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 02/14] ACPI: Atlas ACPI driver
@ 2006-08-15  5:37 akpm
  2006-08-16  3:13 ` Len Brown
  0 siblings, 1 reply; 6+ messages in thread
From: akpm @ 2006-08-15  5:37 UTC (permalink / raw)
  To: len.brown; +Cc: linux-acpi, akpm, jayakumar.acpi, dtor_core, luming.yu

From: Jaya Kumar <jayakumar.acpi@gmail.com>

An ACPI driver for Atlas boards, including input support.

Signed-off-by: Jaya Kumar <jayakumar.acpi@gmail.com>
Cc: "Brown, Len" <len.brown@intel.com>
Cc: Dmitry Torokhov <dtor_core@ameritech.net>
Cc: "Yu, Luming" <luming.yu@intel.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
---

 drivers/acpi/Kconfig      |   13 ++
 drivers/acpi/Makefile     |    1 
 drivers/acpi/atlas_acpi.c |  181 ++++++++++++++++++++++++++++++++++++
 3 files changed, 194 insertions(+), 1 deletion(-)

diff -puN drivers/acpi/Kconfig~acpi-atlas-acpi-driver drivers/acpi/Kconfig
--- a/drivers/acpi/Kconfig~acpi-atlas-acpi-driver
+++ a/drivers/acpi/Kconfig
@@ -196,7 +196,18 @@ config ACPI_ASUS
           driver is still under development, so if your laptop is unsupported or
           something works not quite as expected, please use the mailing list
           available on the above page (acpi4asus-user@lists.sourceforge.net)
-          
+
+config ACPI_ATLAS
+	tristate "Atlas Wallmount Touchscreen Extras"
+	depends on X86 && INPUT
+	default n
+         ---help---
+          This driver is intended for Atlas wallmounted touchscreens.
+          The button events will show up as scancodes F1 through F9 via
+          evdev.
+
+          If you have an Atlas wallmounted touchscreen, say Y or M here.
+
 config ACPI_IBM
 	tristate "IBM ThinkPad Laptop Extras"
 	depends on X86
diff -puN drivers/acpi/Makefile~acpi-atlas-acpi-driver drivers/acpi/Makefile
--- a/drivers/acpi/Makefile~acpi-atlas-acpi-driver
+++ a/drivers/acpi/Makefile
@@ -54,6 +54,7 @@ obj-$(CONFIG_ACPI_SYSTEM)	+= system.o ev
 obj-$(CONFIG_ACPI_DEBUG)	+= debug.o
 obj-$(CONFIG_ACPI_NUMA)		+= numa.o
 obj-$(CONFIG_ACPI_ASUS)		+= asus_acpi.o
+obj-$(CONFIG_ACPI_ATLAS)	+= atlas_acpi.o
 obj-$(CONFIG_ACPI_IBM)		+= ibm_acpi.o
 obj-$(CONFIG_ACPI_TOSHIBA)	+= toshiba_acpi.o
 obj-y				+= scan.o motherboard.o
diff -puN /dev/null drivers/acpi/atlas_acpi.c
--- /dev/null
+++ a/drivers/acpi/atlas_acpi.c
@@ -0,0 +1,181 @@
+/*
+ *  atlas_acpi.c - Atlas Wallmount Touchscreen ACPI Extras
+ *
+ *  Copyright (C) 2006 Jaya Kumar
+ *  Based on Toshiba ACPI by John Belmonte and ASUS ACPI
+ *  This work was sponsored by CIS(M) Sdn Bhd.
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU General Public License as published by
+ *  the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU General Public License for more details.
+ *
+ *  You should have received a copy of the GNU General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ */
+
+#include <linux/kernel.h>
+#include <linux/module.h>
+#include <linux/init.h>
+#include <linux/input.h>
+#include <linux/types.h>
+#include <asm/uaccess.h>
+#include <acpi/acpi_drivers.h>
+
+#define ACPI_ATLAS_NAME			"Atlas ACPI"
+#define ACPI_ATLAS_CLASS		"Atlas"
+#define ACPI_ATLAS_BUTTON_HID		"ASIM0000"
+
+static struct input_dev *input_dev;
+
+static void atlas_input_report(u8 address)
+{
+	int keycode;
+
+	keycode = KEY_F1 + (address & 0x0F);
+
+	if (address & 0x10)
+		input_report_key(input_dev, keycode, 0);
+	else
+		input_report_key(input_dev, keycode, 1);
+	input_sync(input_dev);
+}
+
+static int atlas_setup_input(void)
+{
+	int err;
+
+	input_dev = input_allocate_device();
+	if (!input_dev) {
+		printk(KERN_ERR "atlas: insufficient mem to allocate input "
+				"device\n");
+		return -ENOMEM;
+	}
+
+	input_dev->name = "Atlas ACPI button driver";
+	input_dev->phys = "ASIM0000/atlas/input0";
+	input_dev->id.bustype = BUS_HOST;
+	input_dev->evbit[LONG(EV_KEY)] = BIT(EV_KEY);
+	set_bit(KEY_F1, input_dev->keybit);
+	set_bit(KEY_F2, input_dev->keybit);
+	set_bit(KEY_F3, input_dev->keybit);
+	set_bit(KEY_F4, input_dev->keybit);
+	set_bit(KEY_F5, input_dev->keybit);
+	set_bit(KEY_F6, input_dev->keybit);
+	set_bit(KEY_F7, input_dev->keybit);
+	set_bit(KEY_F8, input_dev->keybit);
+	set_bit(KEY_F9, input_dev->keybit);
+
+	err = input_register_device(input_dev);
+	if (err) {
+		printk(KERN_ERR "atlas: couldn't register input device\n");
+		input_free_device(input_dev);
+		return err;
+	}
+
+	return 0;
+}
+
+static void atlas_free_input(void)
+{
+	if (input_dev)
+		input_unregister_device(input_dev);
+}
+
+/* button handling code */
+static acpi_status acpi_atlas_button_setup(acpi_handle region_handle,
+		    u32 function, void *handler_context, void **return_context)
+{
+	*return_context =
+		(function != ACPI_REGION_DEACTIVATE) ? handler_context : NULL;
+
+	return AE_OK;
+}
+
+static acpi_status acpi_atlas_button_handler(u32 function,
+		      acpi_physical_address address,
+		      u32 bit_width, acpi_integer *value,
+		      void *handler_context, void *region_context)
+{
+	acpi_status status;
+
+	if (function == ACPI_WRITE)
+		atlas_input_report((u8) address);
+	else {
+		printk(KERN_WARNING "atlas: shrugged on unexpected function"
+			":function=%x,address=%lx,value=%x\n",
+			function, (unsigned long)address, (u32)*value);
+		status = -EINVAL;
+	}
+
+	return status;
+}
+
+static int atlas_acpi_button_add(struct acpi_device *device)
+{
+	int err;
+
+	err = atlas_setup_input();
+	if (err)
+		return err;
+
+	/* hookup button handler */
+	return acpi_install_address_space_handler(device->handle,
+				0x81, &acpi_atlas_button_handler,
+				&acpi_atlas_button_setup, device);
+}
+
+static int atlas_acpi_button_remove(struct acpi_device *device, int type)
+{
+	acpi_status status;
+
+	status = acpi_remove_address_space_handler(device->handle,
+				0x81, &acpi_atlas_button_handler);
+	if (ACPI_FAILURE(status))
+		printk(KERN_ERR "Atlas: Error removing addr spc handler\n");
+	atlas_free_input();
+	return status;
+}
+
+static struct acpi_driver atlas_acpi_driver = {
+	.name = ACPI_ATLAS_NAME,
+	.class = ACPI_ATLAS_CLASS,
+	.ids = ACPI_ATLAS_BUTTON_HID,
+	.ops = {
+		.add = atlas_acpi_button_add,
+		.remove = atlas_acpi_button_remove,
+	},
+};
+
+static int atlas_acpi_init(void)
+{
+	int result;
+
+	result = acpi_bus_register_driver(&atlas_acpi_driver);
+	if (result < 0) {
+		printk(KERN_ERR "Atlas ACPI: Unable to register driver\n");
+		return -ENODEV;
+	}
+
+	return 0;
+}
+
+static void atlas_acpi_exit(void)
+{
+	acpi_bus_unregister_driver(&atlas_acpi_driver);
+}
+
+module_init(atlas_acpi_init);
+module_exit(atlas_acpi_exit);
+
+MODULE_AUTHOR("Jaya Kumar");
+MODULE_LICENSE("GPL");
+MODULE_DESCRIPTION("Atlas ACPI");
+
_

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [patch 02/14] ACPI: Atlas ACPI driver
  2006-08-15  5:37 [patch 02/14] ACPI: Atlas ACPI driver akpm
@ 2006-08-16  3:13 ` Len Brown
  2006-08-17  7:48   ` Jaya Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Len Brown @ 2006-08-16  3:13 UTC (permalink / raw)
  To: akpm; +Cc: linux-acpi, jayakumar.acpi, dtor_core, luming.yu

Andrew,
Please delete this patch from MM -- it is stale.
Jaya, please send Andrew the newer patch that replaces it -- the one
that doesn't touch drivers/acpi.

thanks,
-Len

On Tuesday 15 August 2006 01:37, akpm@osdl.org wrote:
> From: Jaya Kumar <jayakumar.acpi@gmail.com>
> 
> An ACPI driver for Atlas boards, including input support.
> 
> Signed-off-by: Jaya Kumar <jayakumar.acpi@gmail.com>
> Cc: "Brown, Len" <len.brown@intel.com>
> Cc: Dmitry Torokhov <dtor_core@ameritech.net>
> Cc: "Yu, Luming" <luming.yu@intel.com>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
> ---
> 
>  drivers/acpi/Kconfig      |   13 ++
>  drivers/acpi/Makefile     |    1 
>  drivers/acpi/atlas_acpi.c |  181 ++++++++++++++++++++++++++++++++++++
>  3 files changed, 194 insertions(+), 1 deletion(-)
> 
> diff -puN drivers/acpi/Kconfig~acpi-atlas-acpi-driver drivers/acpi/Kconfig
> --- a/drivers/acpi/Kconfig~acpi-atlas-acpi-driver
> +++ a/drivers/acpi/Kconfig
> @@ -196,7 +196,18 @@ config ACPI_ASUS
>            driver is still under development, so if your laptop is unsupported or
>            something works not quite as expected, please use the mailing list
>            available on the above page (acpi4asus-user@lists.sourceforge.net)
> -          
> +
> +config ACPI_ATLAS
> +	tristate "Atlas Wallmount Touchscreen Extras"
> +	depends on X86 && INPUT
> +	default n
> +         ---help---
> +          This driver is intended for Atlas wallmounted touchscreens.
> +          The button events will show up as scancodes F1 through F9 via
> +          evdev.
> +
> +          If you have an Atlas wallmounted touchscreen, say Y or M here.
> +
>  config ACPI_IBM
>  	tristate "IBM ThinkPad Laptop Extras"
>  	depends on X86
> diff -puN drivers/acpi/Makefile~acpi-atlas-acpi-driver drivers/acpi/Makefile
> --- a/drivers/acpi/Makefile~acpi-atlas-acpi-driver
> +++ a/drivers/acpi/Makefile
> @@ -54,6 +54,7 @@ obj-$(CONFIG_ACPI_SYSTEM)	+= system.o ev
>  obj-$(CONFIG_ACPI_DEBUG)	+= debug.o
>  obj-$(CONFIG_ACPI_NUMA)		+= numa.o
>  obj-$(CONFIG_ACPI_ASUS)		+= asus_acpi.o
> +obj-$(CONFIG_ACPI_ATLAS)	+= atlas_acpi.o
>  obj-$(CONFIG_ACPI_IBM)		+= ibm_acpi.o
>  obj-$(CONFIG_ACPI_TOSHIBA)	+= toshiba_acpi.o
>  obj-y				+= scan.o motherboard.o
> diff -puN /dev/null drivers/acpi/atlas_acpi.c
> --- /dev/null
> +++ a/drivers/acpi/atlas_acpi.c
> @@ -0,0 +1,181 @@
> +/*
> + *  atlas_acpi.c - Atlas Wallmount Touchscreen ACPI Extras
> + *
> + *  Copyright (C) 2006 Jaya Kumar
> + *  Based on Toshiba ACPI by John Belmonte and ASUS ACPI
> + *  This work was sponsored by CIS(M) Sdn Bhd.
> + *
> + *  This program is free software; you can redistribute it and/or modify
> + *  it under the terms of the GNU General Public License as published by
> + *  the Free Software Foundation; either version 2 of the License, or
> + *  (at your option) any later version.
> + *
> + *  This program is distributed in the hope that it will be useful,
> + *  but WITHOUT ANY WARRANTY; without even the implied warranty of
> + *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
> + *  GNU General Public License for more details.
> + *
> + *  You should have received a copy of the GNU General Public License
> + *  along with this program; if not, write to the Free Software
> + *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
> + *
> + */
> +
> +#include <linux/kernel.h>
> +#include <linux/module.h>
> +#include <linux/init.h>
> +#include <linux/input.h>
> +#include <linux/types.h>
> +#include <asm/uaccess.h>
> +#include <acpi/acpi_drivers.h>
> +
> +#define ACPI_ATLAS_NAME			"Atlas ACPI"
> +#define ACPI_ATLAS_CLASS		"Atlas"
> +#define ACPI_ATLAS_BUTTON_HID		"ASIM0000"
> +
> +static struct input_dev *input_dev;
> +
> +static void atlas_input_report(u8 address)
> +{
> +	int keycode;
> +
> +	keycode = KEY_F1 + (address & 0x0F);
> +
> +	if (address & 0x10)
> +		input_report_key(input_dev, keycode, 0);
> +	else
> +		input_report_key(input_dev, keycode, 1);
> +	input_sync(input_dev);
> +}
> +
> +static int atlas_setup_input(void)
> +{
> +	int err;
> +
> +	input_dev = input_allocate_device();
> +	if (!input_dev) {
> +		printk(KERN_ERR "atlas: insufficient mem to allocate input "
> +				"device\n");
> +		return -ENOMEM;
> +	}
> +
> +	input_dev->name = "Atlas ACPI button driver";
> +	input_dev->phys = "ASIM0000/atlas/input0";
> +	input_dev->id.bustype = BUS_HOST;
> +	input_dev->evbit[LONG(EV_KEY)] = BIT(EV_KEY);
> +	set_bit(KEY_F1, input_dev->keybit);
> +	set_bit(KEY_F2, input_dev->keybit);
> +	set_bit(KEY_F3, input_dev->keybit);
> +	set_bit(KEY_F4, input_dev->keybit);
> +	set_bit(KEY_F5, input_dev->keybit);
> +	set_bit(KEY_F6, input_dev->keybit);
> +	set_bit(KEY_F7, input_dev->keybit);
> +	set_bit(KEY_F8, input_dev->keybit);
> +	set_bit(KEY_F9, input_dev->keybit);
> +
> +	err = input_register_device(input_dev);
> +	if (err) {
> +		printk(KERN_ERR "atlas: couldn't register input device\n");
> +		input_free_device(input_dev);
> +		return err;
> +	}
> +
> +	return 0;
> +}
> +
> +static void atlas_free_input(void)
> +{
> +	if (input_dev)
> +		input_unregister_device(input_dev);
> +}
> +
> +/* button handling code */
> +static acpi_status acpi_atlas_button_setup(acpi_handle region_handle,
> +		    u32 function, void *handler_context, void **return_context)
> +{
> +	*return_context =
> +		(function != ACPI_REGION_DEACTIVATE) ? handler_context : NULL;
> +
> +	return AE_OK;
> +}
> +
> +static acpi_status acpi_atlas_button_handler(u32 function,
> +		      acpi_physical_address address,
> +		      u32 bit_width, acpi_integer *value,
> +		      void *handler_context, void *region_context)
> +{
> +	acpi_status status;
> +
> +	if (function == ACPI_WRITE)
> +		atlas_input_report((u8) address);
> +	else {
> +		printk(KERN_WARNING "atlas: shrugged on unexpected function"
> +			":function=%x,address=%lx,value=%x\n",
> +			function, (unsigned long)address, (u32)*value);
> +		status = -EINVAL;
> +	}
> +
> +	return status;
> +}
> +
> +static int atlas_acpi_button_add(struct acpi_device *device)
> +{
> +	int err;
> +
> +	err = atlas_setup_input();
> +	if (err)
> +		return err;
> +
> +	/* hookup button handler */
> +	return acpi_install_address_space_handler(device->handle,
> +				0x81, &acpi_atlas_button_handler,
> +				&acpi_atlas_button_setup, device);
> +}
> +
> +static int atlas_acpi_button_remove(struct acpi_device *device, int type)
> +{
> +	acpi_status status;
> +
> +	status = acpi_remove_address_space_handler(device->handle,
> +				0x81, &acpi_atlas_button_handler);
> +	if (ACPI_FAILURE(status))
> +		printk(KERN_ERR "Atlas: Error removing addr spc handler\n");
> +	atlas_free_input();
> +	return status;
> +}
> +
> +static struct acpi_driver atlas_acpi_driver = {
> +	.name = ACPI_ATLAS_NAME,
> +	.class = ACPI_ATLAS_CLASS,
> +	.ids = ACPI_ATLAS_BUTTON_HID,
> +	.ops = {
> +		.add = atlas_acpi_button_add,
> +		.remove = atlas_acpi_button_remove,
> +	},
> +};
> +
> +static int atlas_acpi_init(void)
> +{
> +	int result;
> +
> +	result = acpi_bus_register_driver(&atlas_acpi_driver);
> +	if (result < 0) {
> +		printk(KERN_ERR "Atlas ACPI: Unable to register driver\n");
> +		return -ENODEV;
> +	}
> +
> +	return 0;
> +}
> +
> +static void atlas_acpi_exit(void)
> +{
> +	acpi_bus_unregister_driver(&atlas_acpi_driver);
> +}
> +
> +module_init(atlas_acpi_init);
> +module_exit(atlas_acpi_exit);
> +
> +MODULE_AUTHOR("Jaya Kumar");
> +MODULE_LICENSE("GPL");
> +MODULE_DESCRIPTION("Atlas ACPI");
> +
> _
> -
> 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 02/14] ACPI: Atlas ACPI driver
  2006-08-16  3:13 ` Len Brown
@ 2006-08-17  7:48   ` Jaya Kumar
  2006-08-18 14:44     ` Len Brown
  0 siblings, 1 reply; 6+ messages in thread
From: Jaya Kumar @ 2006-08-17  7:48 UTC (permalink / raw)
  To: Len Brown; +Cc: akpm, linux-acpi, dtor_core, luming.yu

On 8/16/06, Len Brown <len.brown@intel.com> wrote:
> Andrew,
> Please delete this patch from MM -- it is stale.
> Jaya, please send Andrew the newer patch that replaces it -- the one
> that doesn't touch drivers/acpi.
>
> thanks,
> -Len

Hi Len,

I had sent that on June 26 to everyone on the CC list. Archive link is here:
http://marc.theaimsgroup.com/?l=linux-acpi&m=115391161115058&w=2

Also, Dmitry had asked what we should do about handing ACPI errors to
upper layers here:
http://marc.theaimsgroup.com/?l=linux-acpi&m=115392091425952&w=2

Any feedback on that issue?

Thanks,
jaya

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [patch 02/14] ACPI: Atlas ACPI driver
  2006-08-17  7:48   ` Jaya Kumar
@ 2006-08-18 14:44     ` Len Brown
  2006-08-23 17:49       ` Dmitry Torokhov
  0 siblings, 1 reply; 6+ messages in thread
From: Len Brown @ 2006-08-18 14:44 UTC (permalink / raw)
  To: Jaya Kumar; +Cc: akpm, linux-acpi, dtor_core, luming.yu

On Thursday 17 August 2006 03:48, Jaya Kumar wrote:
> On 8/16/06, Len Brown <len.brown@intel.com> wrote:
> > Andrew,
> > Please delete this patch from MM -- it is stale.
> > Jaya, please send Andrew the newer patch that replaces it -- the one
> > that doesn't touch drivers/acpi.
> >
> > thanks,
> > -Len
> 
> Hi Len,
> 
> I had sent that on June 26 to everyone on the CC list. Archive link is here:
> http://marc.theaimsgroup.com/?l=linux-acpi&m=115391161115058&w=2

that patch was an incremental depending on the previous patch.
Please send just the final patch vs 2.6.18-rc4  to the above, also cc: linux-kernel@vger.kernel.org

> Also, Dmitry had asked what we should do about handing ACPI errors to
> upper layers here:
> http://marc.theaimsgroup.com/?l=linux-acpi&m=115392091425952&w=2

Dmitry has a good question and we need to iron it out for the general case.
I recommend that for your driver you simply do something like this for now:

if (ACPI_ERROR(status))
	status = -EINVAL

and get your driver into the mm tree to find the next problem.

thanks,
-Len

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [patch 02/14] ACPI: Atlas ACPI driver
  2006-08-18 14:44     ` Len Brown
@ 2006-08-23 17:49       ` Dmitry Torokhov
  2007-01-11  5:16         ` Jaya Kumar
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Torokhov @ 2006-08-23 17:49 UTC (permalink / raw)
  To: Jaya Kumar; +Cc: Len Brown, akpm, linux-acpi, luming.yu

On 8/18/06, Len Brown <len.brown@intel.com> wrote:
> On Thursday 17 August 2006 03:48, Jaya Kumar wrote:
> > On 8/16/06, Len Brown <len.brown@intel.com> wrote:
> > > Andrew,
> > > Please delete this patch from MM -- it is stale.
> > > Jaya, please send Andrew the newer patch that replaces it -- the one
> > > that doesn't touch drivers/acpi.
> > >
> > > thanks,
> > > -Len
> >
> > Hi Len,
> >
> > I had sent that on June 26 to everyone on the CC list. Archive link is here:
> > http://marc.theaimsgroup.com/?l=linux-acpi&m=115391161115058&w=2
>
> that patch was an incremental depending on the previous patch.
> Please send just the final patch vs 2.6.18-rc4  to the above, also cc: linux-kernel@vger.kernel.org
>
> > Also, Dmitry had asked what we should do about handing ACPI errors to
> > upper layers here:
> > http://marc.theaimsgroup.com/?l=linux-acpi&m=115392091425952&w=2
>
> Dmitry has a good question and we need to iron it out for the general case.
> I recommend that for your driver you simply do something like this for now:
>
> if (ACPI_ERROR(status))
>        status = -EINVAL
>
> and get your driver into the mm tree to find the next problem.
>

Jaya,

If you could make the change Len was talking about and create a patch
against mainline I would apply it to my tree.

Thank you.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [patch 02/14] ACPI: Atlas ACPI driver
  2006-08-23 17:49       ` Dmitry Torokhov
@ 2007-01-11  5:16         ` Jaya Kumar
  0 siblings, 0 replies; 6+ messages in thread
From: Jaya Kumar @ 2007-01-11  5:16 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: Len Brown, akpm, linux-acpi, luming.yu

On 8/23/06, Dmitry Torokhov <dmitry.torokhov@gmail.com> wrote:
> On 8/18/06, Len Brown <len.brown@intel.com> wrote:
> >
> > that patch was an incremental depending on the previous patch.
> > Please send just the final patch vs 2.6.18-rc4  to the above, also cc: linux-kernel@vger.kernel.org
> >
> > > Also, Dmitry had asked what we should do about handing ACPI errors to
> > > upper layers here:
> > > http://marc.theaimsgroup.com/?l=linux-acpi&m=115392091425952&w=2
> >
> > Dmitry has a good question and we need to iron it out for the general case.
> > I recommend that for your driver you simply do something like this for now:
> >
> > if (ACPI_ERROR(status))
> >        status = -EINVAL
> >
> > and get your driver into the mm tree to find the next problem.
> >
>
> Jaya,
>
> If you could make the change Len was talking about and create a patch
> against mainline I would apply it to my tree.
>
> Thank you.
>
> --
> Dmitry
>

Ok. Will do and post shortly.

Thanks,
jaya

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-01-11  5:16 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-15  5:37 [patch 02/14] ACPI: Atlas ACPI driver akpm
2006-08-16  3:13 ` Len Brown
2006-08-17  7:48   ` Jaya Kumar
2006-08-18 14:44     ` Len Brown
2006-08-23 17:49       ` Dmitry Torokhov
2007-01-11  5:16         ` Jaya Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox