public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Éric Piel" <Eric.Piel@tremplin-utc.net>
To: Zeno Davatz <zdavatz@gmail.com>
Cc: linux-kernel@vger.kernel.org, Zac Medico <zmedico@gentoo.org>
Subject: Re: Intel Poulsbo [psb] driver for Asus Eeepc 1101
Date: Sat, 05 Dec 2009 13:35:58 +0100	[thread overview]
Message-ID: <4B1A53AE.9020707@tremplin-utc.net> (raw)
In-Reply-To: <4B055609.9030306@tremplin-utc.net>

Op 19-11-09 15:28, Éric Piel schreef:
> Op 19-11-09 09:52, Zeno Davatz schreef:
>> Hi
>>
>> I am looking for the Asus Eeepc Poulsbo (psb) driver in Kernel
>> 2.6.32-rc7. When is this driver expected to make it into the kernel?
:
> Hi,
> I'd also be interested by a patch to get the psb kernel module to
> compile with 2.6.32. If anyone has this already available, please post it!
> Or maybe someone knows what should be done to fix this type of errors?
Hello,

I've just noticed that Zac Medico has written the fixes (as sed scripts)
for the psb driver in gentoo. Below is the patch version of his fixes.
It works for me :-)

Thanks Zac!
See you,
Eric

8<--------------------------------------------------
psb: Fix compilation with kernel 2.6.32

This patch made from the Gentoo ebuild written by Zac Medico <zmedico@gentoo.org>,
to fix compilation of the psb module with kernel 2.6.32

It should be safe to be used with older version of the kernel. It fixes two changes:
 * In commit 6a12235c7d2d75c7d94b9afcaaecd422ff845ce0 phys_to_gart was removed
   since it is a 1:1 mapping on all platforms.
 * The acpi PREFIX constant is gone.

---
diff -urP psb-4.41.1-4mdv2010.0.orig/drm_agpsupport.c psb-4.41.1-4mdv2010.0.fix2632/drm_agpsupport.c
--- psb-4.41.1-4mdv2010.0.orig/drm_agpsupport.c	2009-10-08 12:09:11.000000000 +0200
+++ psb-4.41.1-4mdv2010.0.fix2632/drm_agpsupport.c	2009-12-05 02:46:28.000421027 +0100
@@ -524,7 +524,7 @@
 	DRM_DEBUG("Current page count is %ld\n", (long) mem->page_count);
 	mem->page_count = 0;
 	for (cur_page = pages; cur_page < last_page; ++cur_page)
-		mem->pages[mem->page_count++] = phys_to_gart(page_to_phys(*cur_page));
+		mem->pages[mem->page_count++] = page_to_phys(*cur_page);
 	agp_be->mem = mem;
 	return 0;
 }
diff -urP psb-4.41.1-4mdv2010.0.orig/drm_edid.c psb-4.41.1-4mdv2010.0.fix2632/drm_edid.c
--- psb-4.41.1-4mdv2010.0.orig/drm_edid.c	2009-10-08 12:09:11.000000000 +0200
+++ psb-4.41.1-4mdv2010.0.fix2632/drm_edid.c	2009-12-05 02:46:38.155168734 +0100
@@ -39,7 +39,7 @@
 	if (obj && obj->type == ACPI_TYPE_BUFFER)
 		memcpy(edid, obj->buffer.pointer, obj->buffer.length);
 	else {
-		printk(KERN_ERR PREFIX "Invalid _DDC data\n");
+		printk(KERN_ERR "ACPI: " "Invalid _DDC data\n");
 		status = -EFAULT;
 		kfree(obj);
 	}


  reply	other threads:[~2009-12-05 12:35 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-19  8:52 Intel Poulsbo [psb] driver for Asus Eeepc 1101 Zeno Davatz
2009-11-19 14:28 ` Éric Piel
2009-12-05 12:35   ` Éric Piel [this message]
2009-12-06 15:41     ` Zeno Davatz
2009-12-06 16:24       ` Zac Medico
2009-12-06 16:35         ` Zeno Davatz
2009-12-06 23:05           ` Éric Piel
2009-12-07  8:32             ` Zeno Davatz
2009-12-07  9:43             ` Zeno Davatz
2009-12-07  9:51               ` Éric Piel
2009-12-07 10:02                 ` Zeno Davatz
2009-12-07 10:09                   ` [OT] " Éric Piel
2009-12-07 10:18                     ` Zeno Davatz
2009-12-06 15:48     ` Zeno Davatz
2009-12-07 10:05 ` Peter Zijlstra

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B1A53AE.9020707@tremplin-utc.net \
    --to=eric.piel@tremplin-utc.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zdavatz@gmail.com \
    --cc=zmedico@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox