From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Mon, 04 May 2015 16:16:39 +0200 Subject: [U-Boot] [PATCH 8/8] sunxi: ehci: Convert to the driver-model In-Reply-To: <1430575410.15640.123.camel@hellion.org.uk> References: <1430404524-31413-1-git-send-email-hdegoede@redhat.com> <1430404524-31413-9-git-send-email-hdegoede@redhat.com> <1430575410.15640.123.camel@hellion.org.uk> Message-ID: <55477F47.8010305@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 05/02/2015 04:03 PM, Ian Campbell wrote: > On Thu, 2015-04-30 at 16:35 +0200, Hans de Goede wrote: >> + if (hccr == (void *)SUNXI_USB1_BASE) { >> + priv->ahb_gate_mask = 1 << AHB_GATE_OFFSET_USB_EHCI0; >> + priv->phy_index = 1; > > Inferring these from the base address is a bit unfortunate, should we > not get told this by the DT, or from something higher up? > > I have a feeling the answer will be "this can go away when X, Y & X have > happened", in which case perhaps a comment to that affect? Yes getting rid of this this requires us to move to the driver-model for the phys reps. clocks. I'll add a comment to this extend. Regards, Hans