From owner-freebsd-arm@freebsd.org Mon Jul 8 08:23:59 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D377F15D7D19 for ; Mon, 8 Jul 2019 08:23:58 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic306-20.consmr.mail.ne1.yahoo.com (sonic306-20.consmr.mail.ne1.yahoo.com [66.163.189.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 79F6191F47 for ; Mon, 8 Jul 2019 08:23:57 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: _FbR0cQVM1nyHoTPs7TDPK4_sisewpRg8Ok12TfhFRhYgOOvaEOJTRAbTJEg.po RPhuO2xKgJh4QMyQphWZEsCRJRjbualDjT_Se5Ls87nSTSqZ52zia2SMX9g4h.iaMMonRwcumLFf MKh1SEQA2KBgStjdh2KE1jfhdrCDrKy8gjunjM0haypGZp4PfuWg.X_dx24E0L9PHkN7YX09goog vsLc4mcEaRJMPzj_0FtE_xU4kDNV_iz4W4I9uTp4K8fMqiV5NURPit_wPoKF4tpvldYi5yjsP3j2 7xgb6WurepctEjxf1uqqYtk255XFNMcnmA6PQpym5CBf1IOfJG12MuAXml2JpmuSSfD.I5cAQAes E72DG5gijJYZM4BUoGDka9EqlSsHAeNOyRdTDEuf8fYaOJy4y0GJ0nuugeRwzMaNL2lav01yLfRk yqjJ2WHoMiaut4DT4yzFJmOQOHqZUklCKxNpbFLgNMHSAXCNCwhhyj4ytm8Q_Mk9KSd.sa17tvcW Y_gRl_x9v_ZJSjVaUprtdCVsEBxzgFvMigGZbggA0CdsaDjReACgiH9fUCUAs_yIH6Ye_v.9mAmD IhXIXr9c1at5A.LNmairLavJhsks13OFXyhvWedMoY0SI.Px4FIOEQzOeWsdm4t1zNUxV_mLnnws HpokZc12jit15uy.r.mt9Trq539qridJTAMoW7Sh0SBR9Q4UusKt9iqLFQJ.IoP8bI5qzZqTLy6m fNxieybvXKitU4B6HZVyVomx.UUn90U3GRnN1kNOnuM_OkfQyKyfge_tOX7l0byYBRf3pNFDsIsC oHOjHwedwXFBVUM2uT2SUKxNnIpOlgMVVyWuSEnksm9FDQeZygig6fyZGdSVfOxEelcEHHE_AOUM 0kCPGqh8TAEtbxqAQ_d.d1oCAGf5RnO1yMMZKEHbj0z0d.Hr4xkacryr.yjACZb7hstOwnvKI_4J CmSpHwWtQKGe_m68QSRwogfVvm1QmmAgPFtOIUWzUE60WzF3Uytljy7Ki7cDq7u7XKLGV0j2QnAJ LcxXLVC62GezfcOorxrJXtV9VGz71mDmV4tl0rrxgrzRo.lGpnM_q0ZMKHutGqEEnPVCHYw5N_Nx FslBHXTLevv9.jQ4wqnGfa_eN1kLlWRSlWuYV6S2HLd9vyj3OSJ8mNTw8Pbde3yOHEBQaQFabxbR jDCAMwDIchildS6mG4n9yyAHORL8GQsfrXFt4Cl16wa0FvRJrFZdtmbtO Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Mon, 8 Jul 2019 08:23:55 +0000 Received: by smtp404.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 40644ee30c5165a5377b1cb0ad5e5e42; Mon, 08 Jul 2019 08:03:44 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Pine64 and USB bug From: Mark Millard In-Reply-To: <20190707220812.78f98dd9@zeta.dino.sk> Date: Mon, 8 Jul 2019 01:03:43 -0700 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: <74062CDB-825B-40B1-9D46-0212F932B681@yahoo.com> References: <20190707220812.78f98dd9@zeta.dino.sk> To: Milan Obuch X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 79F6191F47 X-Spamd-Bar: +++ X-Spamd-Result: default: False [3.26 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ptr:yahoo.com]; MV_CASE(0.50)[]; FREEMAIL_FROM(0.00)[yahoo.com]; RCVD_COUNT_THREE(0.00)[3]; MX_GOOD(-0.01)[cached: mta6.am0.yahoodns.net]; DKIM_TRACE(0.00)[yahoo.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[yahoo.com,reject]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[yahoo.com]; ASN(0.00)[asn:36646, ipnet:66.163.184.0/21, country:US]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[yahoo.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[yahoo.com:s=s2048]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.81)[0.807,0]; MIME_GOOD(-0.10)[text/plain]; IP_SCORE(1.30)[ip: (4.24), ipnet: 66.163.184.0/21(1.27), asn: 36646(1.02), country: US(-0.06)]; NEURAL_SPAM_MEDIUM(0.91)[0.907,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.76)[0.762,0]; RCVD_IN_DNSWL_NONE(0.00)[82.189.163.66.list.dnswl.org : 127.0.5.0] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jul 2019 08:23:59 -0000 On 2019-Jul-7, at 13:08, Milan Obuch wrote: > Hi, >=20 > on both Pine64 and Pine64-LTS I observed a problem with USB ports. = Both > board have two ports, lower one (nearer to PCB) works, but upper one > does not. Running 'usbconfig' gives me >=20 > ugen0.1: at usbus0, cfg=3D0 md=3DHOST = spd=3DHIGH (480Mbps) pwr=3DSAVE (0mA) > ugen1.1: at usbus1, cfg=3D0 md=3DHOST spd=3DFULL= (12Mbps) pwr=3DSAVE (0mA) > ugen2.1: at usbus2, cfg=3D0 md=3DHOST = spd=3DHIGH (480Mbps) pwr=3DSAVE (0mA) > ugen3.1: at usbus3, cfg=3D0 md=3DHOST spd=3DFULL= (12Mbps) pwr=3DSAVE (0mA) >=20 > so both are detected, but only one works - with USB flash put in, line >=20 > ugen2.2: at usbus2, cfg=3D0 md=3DHOST = spd=3DHIGH (480Mbps) pwr=3DON (300mA) >=20 > gets added. Upper port (probably ugen0 and ugen1 in listing above) is > enabled, at least partially - using USB meter shows there is 5 V > sourced, but looks like no data communication is taking place. >=20 > Any hint, anybody? This was FreeBSD 13.0-CURRENT r349025 GENERIC, > snapshot downloaded from ftp.freebsd.org. The following older build also only has the lower USB port working on the Pine64+ 2GB that I have access to: # uname -apKU FreeBSD Pine64OrRPI3 13.0-CURRENT FreeBSD 13.0-CURRENT #4 r343670M: Fri = Feb 1 17:04:23 PST 2019 = markmi@FBSDFSSD:/usr/obj/cortexA53_clang/arm64.aarch64/usr/src/arm64.aarch= 64/sys/GENERIC-NODBG arm64 aarch64 1300010 1300010 But, ss I remember, the 1-USB-port-usable status has been true much longer than that . . . Looking . . . Head -r324563 is where ECHI was (re-)enabled on the lower port. The note from -r323641 still applied back then: QUOTE: This (plus 323640) re-enable OHCI on Pine64 on the bottom USB port. The top USB port is routed to the OHCI0/EHCI0 which is by default in OTG = mode. While the phy code can handle the re-route to standard OHCI/EHCI we = still need a driver for musb to probe and configure it in host mode. :END QUOTE It may be that the status for the top port is still unchanged. (This is based on an old 2017-Oct-23 list message that I sent out at the time. I'd forgotten the details until I found that message.) =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)