linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2]: the patch set to weaken the dependency between ACPI video driver and i915 driver
@ 2009-04-14  3:04 yakui_zhao
  2009-04-14 19:35 ` Matthew Garrett
  2009-04-15 20:56 ` Matthew Garrett
  0 siblings, 2 replies; 11+ messages in thread
From: yakui_zhao @ 2009-04-14  3:04 UTC (permalink / raw)
  To: lenb; +Cc: linux-acpi

Hi, All
    the following is the patch set that can weaken the dependency between ACPI video and i915
driver.
    Patch 1/2:  Check whether the acpi video is deferrable only when KMS is enabled
    When the KMS is enabled in kernel configuration, OS will check whether  the acpi video 
driver is deferrable. Otherwise it will continue the current flowchart.

    Patch 2/2:  weaken the tight dependency between the ACPI video driver and i915 driver
    Now there exists the tight dependency between the ACPI video driver and i915 driver. 
If the I915 driver is compiled as built-in module and the acpi video is compiled as module, 
it will fail in the kernel compilation.
    At the same time the acpi video driver must be loaded in order to load
the I915 driver. It is very hack.

    This patch is to weaken the dependency between the ACPI video driver and
i915 driver. But it still can do what we expected.
    a. the i915/acpi_video_register is defined in the video_detect.When the video is selected, 
it will be complied as built-in functions. If the video is not selected, it is defined as 
inline function.
    b. i915_video_register is called by i915 driver. And i915 video flag is set.
    c. acpi_video_register/unregister is called by acpi video driver. The acpi video bus driver
is hooked and the ACPI video flag is set.
    d. When the both flag bits are set, the acpi video bus driver will be registered.


Welcome the comments.
 
Best regards
   Yakui



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

end of thread, other threads:[~2009-04-30 20:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-14  3:04 [PATCH 0/2]: the patch set to weaken the dependency between ACPI video driver and i915 driver yakui_zhao
2009-04-14 19:35 ` Matthew Garrett
2009-04-15  1:12   ` yakui_zhao
2009-04-15  4:53     ` Matthew Garrett
2009-04-15 13:21       ` Zhao, Yakui
2009-04-15 16:54         ` Matthew Garrett
2009-04-16  1:15           ` yakui_zhao
2009-04-15  7:35   ` Zhang Rui
2009-04-15 20:56 ` Matthew Garrett
2009-04-23 19:56   ` Len Brown
2009-04-30 20:23     ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).