From owner-freebsd-embedded@FreeBSD.ORG Tue Dec 27 21:48:34 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 509551065672; Tue, 27 Dec 2011 21:48:34 +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 EF38F8FC14; Tue, 27 Dec 2011 21:48:33 +0000 (UTC) Received: by gilb.zs64.net (Postfix, from stb@lassitu.de) id 9BB6D780B7; Tue, 27 Dec 2011 21:48:32 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: text/plain; charset=us-ascii From: Stefan Bethke In-Reply-To: <267FB3D6-830E-4A2F-8C1C-A96873EDCD31@lassitu.de> Date: Tue, 27 Dec 2011 22:48:31 +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> <09670C 34-0D30-46BC-BA7E-4AAA22193B61@lassitu.de> <45529EC2-73BE-4F69-A9BE-E22D9FEAADD7@lassitu.de> <267FB3D6-830E-4A2F-8C1C-A96873EDCD31@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 21:48:34 -0000 More code, now actually working. (Had problems with git merging.) Please use this patch for my changes to iicbb. Also gpiobus.c = improvement for better panic messages. rtl8366.c now will retry a failed PHY register access; it seems that = sometimes, it just doesn't work on the first attempt (roughly 1 in = 1000). With this change, the API consumer never sees an error (about 30 = minutes of max speed PHY register accesses in a tight loop, with WITNESS = disabled for max. speed.) Also, link status is now queried from the chip instead of from the PHY = for the callout. When running the ioctl, the PHY code gets executed. = The result of both is identical, so there should be no spurious link = status changes. The newest iteration can be gotten from: https://gitorious.org/~stb/freebsd/stb-adrianchadd-freebsd-work (branch = work/ath) http://www.lassitu.de/freebsd/etherswitch-adrian.patch (patch against = Adrians gitorious repo as of now) http://www.lassitu.de/freebsd/etherswitch.tbz (all files) The tbz includes all new and modified files, except for = sys/conf/files/*, Makefiles, etc. If you need the patch for that, = please let me know. Have a look at my or Adrians repo, they're in there = as well. Stefan --=20 Stefan Bethke Fon +49 151 14070811