From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 27 00:01:01 2011 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DEC3E106564A; Tue, 27 Dec 2011 00:01:01 +0000 (UTC) (envelope-from stb@lassitu.de) Received: from gilb.zs64.net (gilb.zs64.net [IPv6:2001:470:1f0b:105e::1ea]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3D58FC08; Tue, 27 Dec 2011 00:01:01 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id AA83A112FFE; Tue, 27 Dec 2011 00:01:00 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=iso-8859-1 From: Stefan Bethke In-Reply-To: <49DC2FF3-0513-4CD1-89F2-93A394600D3C@lassitu.de> Date: Tue, 27 Dec 2011 01:00:59 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <0F6CC18F-6973-42A2-AC03-F01BF59458AE@lassitu.de> <1100F70E-9DA9-4163-AC9A-423ECE5AA9A3@lassitu.de> <18CABB46-9B9A-41CB-8742-6723C5FF4D67@lassitu.de> <2CBD8651-E132-49DC-A082-37A8F5C626EA@bsdimp.com> <45529EC2-73BE-4F69-A9BE-E22D9FEAADD7@lassitu.de> <2DC67148-029F-4DD8-BDB8-07897D343E77@lassitu.de> <49DC2FF3-0513-4CD1-89F2-93A394600D3C@lassitu.de> To: Adrian Chadd X-Mailer: Apple Mail (2.1251.1) Cc: Oleksandr Tymoshenko , "freebsd-embedded@freebsd.org" Subject: Re: Updated switch/glue patch? X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Dec 2011 00:01:02 -0000 Am 27.12.2011 um 00:12 schrieb Stefan Bethke: >=20 > Am 26.12.2011 um 23:17 schrieb Adrian Chadd: >=20 >> On 26 December 2011 14:13, Stefan Bethke wrote: >>> Am 26.12.2011 um 21:49 schrieb Adrian Chadd: >>>=20 >>>> I think I was a bit too quick. It turns out that after a few = minutes >>>> of uptime, I get the same behaviour from your iicbb changes. >>>=20 >>> Give me a few moments. I think I've painted myself into a corner = with git, so I'm cloning your repo and re-applying my changes against = that. Shouldn't take more than an hour, I hope. >>=20 >> I messed up something w/ my git tree earlier today. Sorry :( >=20 > I see that your TP-WN1043ND.hints has 1 usec delay. Technically that = would be too fast; the datasheet says minimum time for SCLK being high = and low respectively is 4 microseconds. With the current code, that = would be hint.iicbb.0.udelay=3D2. >=20 > I'm building now to test. With hint.iicbb.0.udelay=3D2 it's working fine, with the delay down to 1 = the switch chip stops being selected as a slave. Stefan --=20 Stefan Bethke Fon +49 151 14070811