From owner-freebsd-embedded@FreeBSD.ORG Tue Nov 6 21:32:34 2012 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BDBA14D for ; Tue, 6 Nov 2012 21:32:34 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id B419C8FC08 for ; Tue, 6 Nov 2012 21:32:33 +0000 (UTC) Received: by mail-oa0-f54.google.com with SMTP id n9so1198594oag.13 for ; Tue, 06 Nov 2012 13:32:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer :x-gm-message-state; bh=YcStZPpj6V4flaCMiJJUoRCE+CWJIeFozt+0Ha6GrYM=; b=RwrAKF8eBnsD1MNY2W3jzF5jIIswTclUpC2DHWKoEN1ilS2Ll4EbjpNeayNa1l79OU gJ8qygeQ92CkUAnXMN0hvcaY2roHNWLr8TYiEjUP7cpYwNAoNFrVtwZ/3X9TnRIpGmxy Tvvpk8R5La4omUHroagBLMmvN2X6KZrIkn668sbQRdA1/UyTyu8ERkvVrxMCgdee+Adp lPhkHqJXusZRz1vCmVKSFEEbMv3FMfFh1axiLnXzMogVNlsSZ42i9u+Bk6/dSGS0yCbc 1FWnsnlT2nAxsMygvGOMp/4m6pnjSLTalYbTADOUaxLUQMRVKMjciS9mYGt+g1bK2Q1q gkEw== Received: by 10.60.7.73 with SMTP id h9mr2126250oea.13.1352237552867; Tue, 06 Nov 2012 13:32:32 -0800 (PST) Received: from [10.30.101.53] ([209.117.142.2]) by mx.google.com with ESMTPS id on10sm21791761obc.9.2012.11.06.13.32.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 06 Nov 2012 13:32:31 -0800 (PST) Sender: Warner Losh Subject: Re: if_arge eventually fails to attach PHY at boot (with arswitch) Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Warner Losh In-Reply-To: Date: Tue, 6 Nov 2012 14:32:28 -0700 Content-Transfer-Encoding: quoted-printable Message-Id: <1984A35B-D0BE-4896-96D4-32EAE746F9EC@bsdimp.com> References: <0FCCB08E-8517-4B5C-8621-06DAF3B86B09@gmail.com> <5BB9E514-7C57-480E-994C-BF59023BC400@gmail.com> <20121012020904.c03ef76a.ray@ddteam.net> <23E6E442-A8CE-4024-86BF-B0D19CC696F8@gmail.com> <7E5C5ACD-B9D0-4591-B071-797F9F1E1743@gmail.com> < CAJ-Vmom9iPB+-JfkNRtd10rzGSDbttvbWnOSu+3Tj4+sGWRpew@mail.gmail.com> <4770DC05-A7C2-4E59-8188-ABFA404DAF23@gmail.com> To: Adrian Chadd X-Mailer: Apple Mail (2.1084) X-Gm-Message-State: ALoCoQmYERBZO4hP3QLn54mnvZfUj+EsPjYsltwiKGYrxNEQKe8Uam1UPqHeNuB2ZYhdIWlsNv0B Cc: Aleksandr Rybalko , freebsd-embedded@freebsd.org, Luiz Otavio O Souza X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Nov 2012 21:32:34 -0000 On Nov 6, 2012, at 2:01 PM, Adrian Chadd wrote: > Hi, >=20 > I'm happy to make arswitch need to be specified in hints, rather than = probed. >=20 > Does anyone have any cleaner ideas on how to probe this stuff? It's > very recursive (ie, arswitch exposes an mdiobus, which the arswitch > code then tries to probe. The probing messes the mdiobus up and makes > it difficult to find a PHY there.) >=20 > This feels like ISA all over again.. FDT is the one true way of doing this :) Hints are a poor, bastard step-child that beats doing without... Warner > :) >=20 > Adrian >=20 > On 6 November 2012 10:39, Luiz Otavio O Souza = wrote: >> On Nov 3, 2012, at 12:48 PM, Adrian Chadd wrote: >>> On 3 November 2012 06:10, Luiz Otavio O Souza = wrote: >>>> Hi Adrian and sorry for the delay, >>>>=20 >>>> Yes, there is one fix missing, but it is not ready yet... i'm work = on the fix and hope to get it ready for a review later today or = tomorrow. >>>=20 >>> Cool! What is it? >>=20 >> The arswitch driver always tries to attach to every mdio bus on the = system. When the switch exposes his own mdio another arswitch instance = was trying to attach to it and while trying to read from the switch = registers it sometimes upset the switch. >>=20 >> I've tried to fix this by others means, but agreed with Ray that = arswitch can't be really 'detected', so i just removed the auto = attachment from it and now it only attaches when hinted. This fixes the = problem without any additional hack. >>=20 >> Please let me know what you think about it. >>=20 >> The rtl8366 may have the same problem, but for now i don't have any = hardware to test it... >>=20 >> Ahh, the AP96 kernel file has the arswitch device declared but there = is no hints for it on AP96.hints, so i didn't touch it. >>=20 >> Thanks, >> Luiz >>=20 > _______________________________________________ > freebsd-embedded@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-embedded > To unsubscribe, send any mail to = "freebsd-embedded-unsubscribe@freebsd.org"