lkml.org 
[lkml]   [2006]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] PCI Error Recovery: e100 network device driver
    On Fri, Apr 07, 2006 at 06:11:34PM -0500, Linas Vepstas wrote:
    > --- linux-2.6.17-rc1.orig/drivers/net/e100.c
    > +++ linux-2.6.17-rc1/drivers/net/e100.c

    > + * @state: The current pci conneection state

    connection

    > +static pci_ers_result_t e100_io_error_detected(struct pci_dev *pdev, pci_channel_state_t state)
    > +{
    > + struct net_device *netdev = pci_get_drvdata(pdev);
    > +
    > + /* Similar to calling e100_down(), but avoids adpater I/O. */

    adapter

    > +static pci_ers_result_t e100_io_slot_reset(struct pci_dev *pdev)
    > +{
    > + struct net_device *netdev = pci_get_drvdata(pdev);
    > + struct nic *nic = netdev_priv(netdev);
    > +
    > + if (pci_enable_device(pdev)) {
    > + printk(KERN_ERR "e100: Cannot re-enable PCI device after reset.\n");
    > + return PCI_ERS_RESULT_DISCONNECT;
    > + }
    > + pci_set_master(pdev);
    > +
    > + /* Only one device per card can do a reset */
    > + if (0 != PCI_FUNC(pdev->devfn))

    Wrong order.

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-04-08 02:05    [W:0.024 / U:93.184 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site