[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-stable
Subject:    Re: cyapa(4) and isl(4) no longer working on Acer C720
From:       Wolfgang Zenker <wolfgang () lyxys ! ka ! sub ! org>
Date:       2017-02-25 15:52:13
Message-ID: 20170225155213.GA50354 () lyxys ! ka ! sub ! org
[Download RAW message or body]

* Andriy Gapon <avg@FreeBSD.org> [170225 15:59]:
> On 25/02/2017 16:46, Andriy Gapon wrote:
>> On 25/02/2017 15:10, Wolfgang Zenker wrote:
>>> I'm using FreeBSD 11 on a chromebook Acer C720. Because I normally
>>> use a mouse I didn't catch the exact time when cyapa and isl stopped
>>> working, but my guess is it was when chromebook_framework was introduced
>>> and cyapa and isl were moved to using iic. 

>>> A manual page chromebook_platform(4) does not exist. Maybe the Acer is
>>> sufficiently different from other chromebooks that chromebook_platform
>>> does not work here. In that case I'm supposed to set device hints for
>>> the isl and cyapa drivers where to find their iic resources, according
>>> to https://github.com/freebsd/freebsd-base-graphics/commit/e2eab8e254154d36ebd6fde573f86e6472b75572
>>> Unfortunately I have no idea where to find the information that would
>>> be needed for this.
>> The manual page actually exists... but only in the source code :-(
>> share/man/man4/chromebook_platform.4
>> Mea culpa.

>> You can look through this Linux source file to check for information that's
>> relevant to your laptop:
>> http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c

Thanks, the C720 is mentioned in that file.

> In fact, could you please try this trivial patch?

> Index: sys/dev/chromebook_platform/chromebook_platform.c
> ===================================================================
> --- sys/dev/chromebook_platform/chromebook_platform.c	(revision 314268)
> +++ sys/dev/chromebook_platform/chromebook_platform.c	(working copy)
> @@ -69,7 +69,7 @@
>  	 * See
> http://lxr.free-electrons.com/source/drivers/platform/chrome/chromeos_laptop.c
>  	 */
>  	controller = device_get_parent(bus);
> -	if (strcmp(device_get_name(controller), "ig4iic") != 0)
> +	if (strcmp(device_get_name(controller), "ig4iic_pci") != 0)
>  		return;

>  	for (i = 0; i < nitems(slaves); i++) {

I did and it fixes the problem. Thank you!

Wolfgang
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic