From owner-freebsd-hackers@FreeBSD.ORG Wed May 14 10:04:33 2014 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 79AB84BC for ; Wed, 14 May 2014 10:04:33 +0000 (UTC) Received: from mail-wg0-x234.google.com (mail-wg0-x234.google.com [IPv6:2a00:1450:400c:c00::234]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 15AF92FA0 for ; Wed, 14 May 2014 10:04:32 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id l18so1666888wgh.35 for ; Wed, 14 May 2014 03:04:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=uuEbkOCCDARAOjXW1tT8txldOgFqoo9Dpg8xGafXTeg=; b=YJDTQyFYOPIaN1cYDzbMD78HQqNNkN2COCTXFwb0SqjETlhDCcvw5A4dM6DEwzkp8U EEYFVH1CpTBJ70hpFVWl+1sImXqIC+PGKCBxubFa4cGGD33dVZz7oTNgtjwXBgVAWEZt ioNSWOu2eqOVt5A+o9W3J+8W+BSqNUPXHzdPNF3xPBgd5FIt7z8tSqpwPITPSgkh9IjA smUmqPPlFgZpynyceLgqdZM4XyRBHX+hO6EPukoTTJIDtAtiXtQ5I+tn5jKAlLlbcKM/ JuFnZMoof6v082UJbyrcAzbBeNNVOjTF9NBNINCA6You0fULvDAhPdNjDkMS8nI7Nv5Y Z4wQ== X-Received: by 10.180.11.137 with SMTP id q9mr2689254wib.13.1400061870397; Wed, 14 May 2014 03:04:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.163.231 with HTTP; Wed, 14 May 2014 03:04:10 -0700 (PDT) In-Reply-To: <20140514051100.GA86330@machdep.com> References: <20140513084008.GA71115@machdep.com> <20140514051100.GA86330@machdep.com> From: Maxim Ignatenko Date: Wed, 14 May 2014 11:04:10 +0100 Message-ID: Subject: Re: Keyboard drivers, polling vs. non-polling mode To: Ruslan Bukin Content-Type: text/plain; charset=UTF-8 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 May 2014 10:04:33 -0000 On 14 May 2014 06:11, Ruslan Bukin wrote: > On Tue, May 13, 2014 at 11:17:58AM +0100, Maxim Ignatenko wrote: >> I keep getting "fdb0: i2c transfer returned 6" and none of the printfs >> I've added to iicbus_transfer_gen in sys/dev/iicbus/iiconf.c. > > You have problems with communication to EC. > > Forget about keyboard for a while and check i2c CS (chip select) and/or > EC arbitration pins. Something is definitely goes different in HP > implementation of Chromebook. Probably they used different GPIO pins. It's even more funny: i2c-arbitrator was removed from FDT (compared to Samsung Chromebook), so removing a call to bus_claim() from ec_attach() does the trick, keyboard works in kdb :) (but not in mountroot prompt) u-boot actually does the same: it claims control over bus only if it sees "google,ap-claim-gpios" and "google,ec-claim-gpios" properties on i2c-arbitrator and just returns success otherwise. Thanks for the help, now I'll try to make built-in USB hub work. -- Best regards, Maxim