lkml.org 
[lkml]   [2006]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] pci: gt96100eth use pci probing
Cc: stevel@mvista.com

Jeff Garzik napsal(a):
> Jiri Slaby wrote:
>> Jiri Slaby napsal(a):
>>> Jeff Garzik napsal(a):
>>>> Jiri Slaby wrote:
>>>>> +static int __init gt96100_probe1(struct pci_dev *pdev, int port_num)
>>>>> {
>>>>> struct gt96100_private *gp = NULL;
>>>>> - struct gt96100_if_t *gtif = &gt96100_iflist[port_num];
>>>>> + struct gt96100_if_t *gtifs = pci_get_drvdata(pdev);
>>>>> + struct gt96100_if_t *gtif = &gtifs[port_num];
>>>>> int phy_addr, phy_id1, phy_id2;
>>>>> u32 phyAD;
>>>>> - int retval;
>>>>> + int retval = -ENOMEM;
>>>>> unsigned char chip_rev;
>>>>> struct net_device *dev = NULL;
>>>>> if (gtif->irq < 0) {
>>>>> - printk(KERN_ERR "%s: irq unknown - probing not supported\n",
>>>>> - __FUNCTION__);
>>>>> + dev_err(&pdev->dev, "irq unknown - probing not supported\n");
>>>>> return -ENODEV;
>>>>> }
>>>>> +
>>>>> + retval = pci_enable_device(pdev);
>>>>> + if (retval) {
>>>>> + dev_err(&pdev->dev, "cannot enable pci device\n");
>>>>> + return retval;
>>>>> + }
>>>> bug #1: please confirm pci_enable_device() is OK on this embedded
>>>> hardware
>>> I do not understand too much, did you mean something like this:
>>> } else
>>> dev_info(..., "pci device is enabled now\n");
>>> or?
>> Or..., aha, I got it now. How can I confirm?
>
> Asking the maintainer would be a good first step.
Hello,

can you confirm, if calling pci_enable_device is safe for this (gt96100eth) device?

thanks,
--
Jiri Slaby www.fi.muni.cz/~xslaby
\_.-^-._ jirislaby@gmail.com _.-^-._/
B67499670407CE62ACC8 22A032CC55C339D47A7E
-
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-05-25 12:37    [W:0.031 / U:1.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site