lkml.org 
[lkml]   [2012]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: [PATCH net-next 2/5] r8169: add csi_opt
Date
 Francois Romieu [mailto:romieu@fr.zoreil.com] 
[...]
> > -static void rtl_csi_access_enable_2(void __iomem *ioaddr)
> > +static void __devinit rtl_init_csi_ops(struct rtl8169_private *tp)
> > {
> > - rtl_csi_access_enable(ioaddr, 0x27000000);
> > + struct csi_ops *ops = &tp->csi_ops;
> > +
> > + switch (tp->mac_version) {
> > + default:
> > + ops->write = r8169_csi_write;
> > + ops->read = r8169_csi_read;
> > + break;
> > + }
> > }
> >
> > struct ephy_info {
> [...]
> > @@ -6199,6 +6267,7 @@ rtl_init_one(struct pci_dev *pdev,
> const struct pci_device_id *ent)
> > rtl_init_mdio_ops(tp);
> > rtl_init_pll_power_ops(tp);
> > rtl_init_jumbo_ops(tp);
> > + rtl_init_csi_ops(tp);
> >
> > rtl8169_print_mac_version(tp);
>
> It will enable the CSI read/write functions where they
> previously weren't.
>
> Is it really supposed to behave this way ?
>
> Thanks.
>

It seems to be fine, but I would modify them. Thanks.

Best Regards,
Hayes



\
 
 \ /
  Last update: 2012-03-28 04:55    [W:0.072 / U:1.420 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site