Re: Re: Smart Battery System driver

Rich Townsend
2005-01-21T20:31:39Z

Pedro Venda wrote:

<snip>

> | Ah, but there doesn't have to be any loss of capabilities. There are two
> | separate issues here:
> |
> | 1) Implementing the SMBus access through control methods, as described
> | by the API in the SMBus-CM specification (which I'll be trying out very
> | soon)
> |
> | 2) Implementing a control-method wrapper for SBS, so that it can be
> | accessed using the API described in Sec. 10.2 of the ACPI specification.
> |
> | Issue (1) basically removes the need for the i2c_acpi_ec module, and
> | indeed the need to have any i2c or smbus support in the kernel;
> | everything is done through the embedded controller. This is highly
> | desirable.
> |
> | Issue (2) would allow SBS batteries to appear to the kernel as CM
> | batteries, meaning that the stock battery.ko module can be used. This,
> | however, is obviously a backward-compatibility step, and not the way
> | forward; however, it may be a 'clean' interim solution to implementing
> | SBS, in lieu of a yet-to-be-designed library for accessing SBS and CM
> | batteries through a standard interface.
>
> ahhh, there's a nice explanation. thanks :-)
>
> so, just to clear things up, solution (1) doesn't need DSDT patching??
> that'd be
> excelent "value-for-money". it'd provide access to SBS information
> without ugly
> acpi-i2c dependencies.
>

No, both require DSDT patching -- unless there is a way to add objects
into the ACPI namespace dynamically (anyone got any ideas on this?).

This of course is a big barrier to adoption. But having said that,
patching a DSDT is no more difficult than patching a kernel. You just
tweak the source code, compile it, and then add an initrd= argument to
the kernel boot parameters.

However, maybe someone could do some work on making it even easier? Any
thoughts?

cheers,

Rich

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Acpi-devel mailing list
Acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl