RE: [PATCH net-next] lan78xx: Use irq_domain for phy interrupt from USB Int. EP

2016-10-28 Thread Woojung.Huh
> > +static void lan78xx_irq_mask(struct irq_data *irqd) > > +{ > > + struct irq_domain_data *data = irq_data_get_irq_chip_data(irqd); > > + struct lan78xx_net *dev = > > + container_of(data, struct lan78xx_net, domain_data); > > + u32 buf; > > + > > + lan78xx_read_reg(dev

Re: [PATCH net-next] lan78xx: Use irq_domain for phy interrupt from USB Int. EP

2016-10-28 Thread Florian Fainelli
On 10/28/2016 11:54 AM, woojung@microchip.com wrote: > From: Woojung Huh > > To utilize phylib with interrupt fully than handling some of phy stuff in the > MAC driver, > create irq_domain for USB interrupt EP of phy interrupt and > pass the irq number to phy_connect_direct() instead of PHY_

[PATCH net-next] lan78xx: Use irq_domain for phy interrupt from USB Int. EP

2016-10-28 Thread Woojung.Huh
From: Woojung Huh To utilize phylib with interrupt fully than handling some of phy stuff in the MAC driver, create irq_domain for USB interrupt EP of phy interrupt and pass the irq number to phy_connect_direct() instead of PHY_IGNORE_INTERRUPT. Idea comes from drivers/gpio/gpio-dl2.c Signed-of