Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Sep 2017 19:19:45 +0000 (UTC)
From:      Emmanuel Vadot <manu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r324020 - head/sys/arm/allwinner
Message-ID:  <201709261919.v8QJJjx1006042@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: manu
Date: Tue Sep 26 19:19:44 2017
New Revision: 324020
URL: https://svnweb.freebsd.org/changeset/base/324020

Log:
  aw_usbphy: Fix write of unknown register
  
  Some SoC require a write to a unknown register to work corectly.
  This write should be in the pmu region not in the phy ctrl one.
  
  Reported by:	Mark Millard (markmi@dsl-only.net)

Modified:
  head/sys/arm/allwinner/aw_usbphy.c

Modified: head/sys/arm/allwinner/aw_usbphy.c
==============================================================================
--- head/sys/arm/allwinner/aw_usbphy.c	Tue Sep 26 17:52:52 2017	(r324019)
+++ head/sys/arm/allwinner/aw_usbphy.c	Tue Sep 26 19:19:44 2017	(r324020)
@@ -158,7 +158,7 @@ awusbphy_configure(device_t dev, int phyno)
 		return;
 
 	if (sc->phy_conf->pmu_unk1 == true)
-		CLR4(sc->phy_ctrl, PMU_UNK_H3, PMU_UNK_H3_CLR);
+		CLR4(sc->pmu[phyno], PMU_UNK_H3, PMU_UNK_H3_CLR);
 
 	if (sc->phy_conf->phy0_route == true) {
 		if (phyno == 0)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201709261919.v8QJJjx1006042>