All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH] phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar
       [not found]   ` <CAC3K-4pA+O3hcLMGN7jYLCLS03+5Q5GAH9o-Z1woYdZDt2hhcQ@mail.gmail.com>
@ 2016-04-07 16:33     ` Hauke Mehrtens
  2016-04-10 17:44     ` Rafał Miłecki
  1 sibling, 0 replies; 3+ messages in thread
From: Hauke Mehrtens @ 2016-04-07 16:33 UTC (permalink / raw)
  To: Jon Mason, Rafał Miłecki
  Cc: Kishon Vijay Abraham I, linux-kernel, Felix Fietkau,
	Florian Fainelli, linux-usb, >

On 04/05/2016 09:34 PM, Jon Mason wrote:
> 
> 
> On Wed, Mar 30, 2016 at 5:32 PM, Jon Mason <jon.mason@broadcom.com
> <mailto:jon.mason@broadcom.com>> wrote:
> 
>     On Tue, Mar 29, 2016 at 10:01 AM, Rafał Miłecki <zajec5@gmail.com
>     <mailto:zajec5@gmail.com>> wrote:
> 
>         Northstar is a family of SoCs used in home routers. They have
>         USB 2.0
>         and 3.0 controllers with PHYs that need to be properly initialized.
>         This driver provides PHY init support in a generic way and can
>         be bound
>         with an EHCI controller driver.
> 
> 
>     Like the USB3 patch you just submitted for NS, this is a common IP
>     block with NSP.  I believe with some minor changes it can support
>     both.  Please allow me 1-2 days to look at these in more detail and
>     see if I can get these patches working on NSP.
> 
>     Thanks,
>     Jon
> 
> 
> After some internal discussion, I don't think this is going to work. 
> This IP block is common for NS, NSP, and a few others.  So binding it to
> BMCA is going to prevent us from being able to use it on any other
> platforms.  However, a non-BMCA driver would still be usable by NS.  So,
> I think that is a superior solution.
> 
> We are currently in the process of getting a Phy driver out which would
> cover all the iProc SoCs.  I think it is 1-2 weeks away from being
> submitted.  So, I think to go forward we should use that one for NS. 
> However, that does not bridge the gap until it is accepted.
> 
> So, I think we have 2 options.
> 1.  Wait for BCM to submit the iProc phy driver
> 2.  Push this now, and remove it after the iProc phy driver is accepted.
> 
> Thoughts?
> 
> Thanks,
> Jon
> 
Hi Jon,

As far as I see this does not have any build time dependency to bcma, it
only uses some header from bcma. Does this not build and run on your
devices without bcma?

Hauke

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar
       [not found]   ` <CAC3K-4pA+O3hcLMGN7jYLCLS03+5Q5GAH9o-Z1woYdZDt2hhcQ@mail.gmail.com>
  2016-04-07 16:33     ` [PATCH] phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar Hauke Mehrtens
@ 2016-04-10 17:44     ` Rafał Miłecki
  1 sibling, 0 replies; 3+ messages in thread
From: Rafał Miłecki @ 2016-04-10 17:44 UTC (permalink / raw)
  To: Jon Mason
  Cc: Kishon Vijay Abraham I, Linux Kernel Mailing List,
	Hauke Mehrtens, Felix Fietkau, Florian Fainelli, linux-usb, >

On 5 April 2016 at 21:34, Jon Mason <jon.mason@broadcom.com> wrote:
> On Wed, Mar 30, 2016 at 5:32 PM, Jon Mason <jon.mason@broadcom.com> wrote:
>> On Tue, Mar 29, 2016 at 10:01 AM, Rafał Miłecki <zajec5@gmail.com> wrote:
>>> Northstar is a family of SoCs used in home routers. They have USB 2.0
>>> and 3.0 controllers with PHYs that need to be properly initialized.
>>> This driver provides PHY init support in a generic way and can be bound
>>> with an EHCI controller driver.
>>
>> Like the USB3 patch you just submitted for NS, this is a common IP block
>> with NSP.  I believe with some minor changes it can support both.  Please
>> allow me 1-2 days to look at these in more detail and see if I can get these
>> patches working on NSP.
>>
>
> After some internal discussion, I don't think this is going to work.  This
> IP block is common for NS, NSP, and a few others.  So binding it to BMCA is
> going to prevent us from being able to use it on any other platforms.
> However, a non-BMCA driver would still be usable by NS.  So, I think that is
> a superior solution.
>
> We are currently in the process of getting a Phy driver out which would
> cover all the iProc SoCs.  I think it is 1-2 weeks away from being
> submitted.  So, I think to go forward we should use that one for NS.
> However, that does not bridge the gap until it is accepted.
>
> So, I think we have 2 options.
> 1.  Wait for BCM to submit the iProc phy driver
> 2.  Push this now, and remove it after the iProc phy driver is accepted.
>
> Thoughts?

As Hauke noticed, there isn't any real bcma dependency in the
submitted driver. I put (very few) register defines in
include/linux/bcma/ just to make them re-usable e.g. in PCIe
controller/PHY driver. I think at some point we may also need some CRU
regs in clock driver for BCM53573 chipset, so some common place is
needed to avoid code duplication.

That said, I'm sorry but I'm uncomfortable with your idea of this PHY
driver development. I'm open to comments & suggestions. You can freely
point parts of code you think are badly designed. I'll try to improve
them.
I don't like that idea of dropping my driver just to replace it with
the one developed at BCM doing the same.

Could you review it once again and see if you can change your mind, please?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar
       [not found] <1459512003-565-1-git-send-email-zajec5@gmail.com>
@ 2016-04-01 12:04 ` Rafał Miłecki
  0 siblings, 0 replies; 3+ messages in thread
From: Rafał Miłecki @ 2016-04-01 12:04 UTC (permalink / raw)
  To: Kishon Vijay Abraham I, Linux Kernel Mailing List
  Cc: Hauke Mehrtens, Felix Fietkau, Florian Fainelli, Jon Mason,
	linux-usb, >,
	Felipe Balbi, Rafał Miłecki

On 1 April 2016 at 14:00, Rafał Miłecki <zajec5@gmail.com> wrote:
> Northstar is a family of SoCs used in home routers. They have USB 2.0
> and 3.0 controllers with PHYs that need to be properly initialized.
> This driver provides PHY init support in a generic way and can be bound
> with an EHCI controller driver.
>
> Signed-off-by: Rafał Miłecki <zajec5@gmail.com>

I didn't mean to resend the same patch, my mistake, sorry. I didn't
mean to hurrry or anything, just used wrong git command.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-10 17:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1459260114-10853-1-git-send-email-zajec5@gmail.com>
     [not found] ` <CAC3K-4rVr2Bs1_=0-8y9pHJnc6-qD=V0DjKRxqdhLTuDUWXgrg@mail.gmail.com>
     [not found]   ` <CAC3K-4pA+O3hcLMGN7jYLCLS03+5Q5GAH9o-Z1woYdZDt2hhcQ@mail.gmail.com>
2016-04-07 16:33     ` [PATCH] phy: bcm-ns-usb2: new driver for USB 2.0 PHY on Northstar Hauke Mehrtens
2016-04-10 17:44     ` Rafał Miłecki
     [not found] <1459512003-565-1-git-send-email-zajec5@gmail.com>
2016-04-01 12:04 ` Rafał Miłecki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.