From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Date: Sat, 02 May 2015 14:45:11 +0100 Subject: [U-Boot] [PATCH 5/6] sunxi: usb: Do not call phy_probe from hcd code In-Reply-To: <1430203271-3130-6-git-send-email-hdegoede@redhat.com> References: <1430203271-3130-1-git-send-email-hdegoede@redhat.com> <1430203271-3130-6-git-send-email-hdegoede@redhat.com> Message-ID: <1430574311.15640.111.camel@hellion.org.uk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, 2015-04-28 at 08:41 +0200, Hans de Goede wrote: > The 2/3 usb-phys on the sunxi SoCs are really a single separate functional > block, and are modelled as such in devicetree. So once we've moved all the > sunxi usb code to the driver-model then phy_probe will be called once > for the entire block from the driver-model enumeration code. > > Move to this now as this also avoids problems with phy_probe being called > multiple times once we introduce ohci support. This allows us to get rid > of the sunxi_usb_phy_enabled_count variable as phy_probe now is guaranteed > to be called only once. > > Since we're effectively rewriting the probe / remove functions, move them > to the end of the file while we are at it, as that is the most logical place > for them. > > Signed-off-by: Hans de Goede Acked-by: Ian Campbell