Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 294350 Details for
Bug 233255
Megahertz EM1144-T pcmcia ethernet adapter doesn't work
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
Diff between 2.6.19 and 2.6.20
git_diff_2.6.19_and_2.6.20.diff (text/plain), 3.56 KB, created by
Christopher Brown
on 2008-02-08 13:37:07 UTC
(
hide
)
Description:
Diff between 2.6.19 and 2.6.20
Filename:
MIME Type:
Creator:
Christopher Brown
Created:
2008-02-08 13:37:07 UTC
Size:
3.56 KB
patch
obsolete
>diff --git a/drivers/net/pcmcia/smc91c92_cs.c b/drivers/net/pcmcia/smc91c92_cs.c >index 20fcc35..2561f76 100644 >--- a/drivers/net/pcmcia/smc91c92_cs.c >+++ b/drivers/net/pcmcia/smc91c92_cs.c >@@ -560,16 +560,8 @@ static int mhz_setup(struct pcmcia_device *link) > > /* Read the station address from the CIS. It is stored as the last > (fourth) string in the Version 1 Version/ID tuple. */ >- tuple->DesiredTuple = CISTPL_VERS_1; >- if (first_tuple(link, tuple, parse) != CS_SUCCESS) { >- rc = -1; >- goto free_cfg_mem; >- } >- /* Ugh -- the EM1144 card has two VERS_1 tuples!?! */ >- if (next_tuple(link, tuple, parse) != CS_SUCCESS) >- first_tuple(link, tuple, parse); >- if (parse->version_1.ns > 3) { >- station_addr = parse->version_1.str + parse->version_1.ofs[3]; >+ if (link->prod_id[3]) { >+ station_addr = link->prod_id[3]; > if (cvt_ascii_address(dev, station_addr) == 0) { > rc = 0; > goto free_cfg_mem; >@@ -744,15 +736,12 @@ static int smc_setup(struct pcmcia_device *link) > } > } > /* Try the third string in the Version 1 Version/ID tuple. */ >- tuple->DesiredTuple = CISTPL_VERS_1; >- if (first_tuple(link, tuple, parse) != CS_SUCCESS) { >- rc = -1; >- goto free_cfg_mem; >- } >- station_addr = parse->version_1.str + parse->version_1.ofs[2]; >- if (cvt_ascii_address(dev, station_addr) == 0) { >- rc = 0; >- goto free_cfg_mem; >+ if (link->prod_id[2]) { >+ station_addr = link->prod_id[2]; >+ if (cvt_ascii_address(dev, station_addr) == 0) { >+ rc = 0; >+ goto free_cfg_mem; >+ } > } > > rc = -1; >@@ -970,10 +959,6 @@ static int smc91c92_config(struct pcmcia_device *link) > { > struct net_device *dev = link->priv; > struct smc_private *smc = netdev_priv(dev); >- struct smc_cfg_mem *cfg_mem; >- tuple_t *tuple; >- cisparse_t *parse; >- u_char *buf; > char *name; > int i, j, rev; > kio_addr_t ioaddr; >@@ -981,30 +966,8 @@ static int smc91c92_config(struct pcmcia_device *link) > > DEBUG(0, "smc91c92_config(0x%p)\n", link); > >- cfg_mem = kmalloc(sizeof(struct smc_cfg_mem), GFP_KERNEL); >- if (!cfg_mem) >- goto config_failed; >- >- tuple = &cfg_mem->tuple; >- parse = &cfg_mem->parse; >- buf = cfg_mem->buf; >- >- tuple->Attributes = tuple->TupleOffset = 0; >- tuple->TupleData = (cisdata_t *)buf; >- tuple->TupleDataMax = 64; >- >- tuple->DesiredTuple = CISTPL_CONFIG; >- i = first_tuple(link, tuple, parse); >- CS_EXIT_TEST(i, ParseTuple, config_failed); >- link->conf.ConfigBase = parse->config.base; >- link->conf.Present = parse->config.rmask[0]; >- >- tuple->DesiredTuple = CISTPL_MANFID; >- tuple->Attributes = TUPLE_RETURN_COMMON; >- if (first_tuple(link, tuple, parse) == CS_SUCCESS) { >- smc->manfid = parse->manfid.manf; >- smc->cardid = parse->manfid.card; >- } >+ smc->manfid = link->manf_id; >+ smc->cardid = link->card_id; > > if ((smc->manfid == MANFID_OSITECH) && > (smc->cardid != PRODID_OSITECH_SEVEN)) { >@@ -1134,14 +1097,12 @@ static int smc91c92_config(struct pcmcia_device *link) > printk(KERN_NOTICE " No MII transceivers found!\n"); > } > } >- kfree(cfg_mem); > return 0; > > config_undo: > unregister_netdev(dev); > config_failed: /* CS_EXIT_TEST() calls jump to here... */ > smc91c92_release(link); >- kfree(cfg_mem); > return -ENODEV; > } /* smc91c92_config */ > >@@ -1966,7 +1927,7 @@ static void media_check(u_long arg) > if (smc->watchdog++ && ((i>>8) & i)) { > if (!smc->fast_poll) > printk(KERN_INFO "%s: interrupt(s) dropped!\n", dev->name); >- smc_interrupt(dev->irq, smc); >+ smc_interrupt(dev->irq, dev); > smc->fast_poll = HZ; > } > if (smc->fast_poll) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 233255
:
293878
|
293879
|
294330
|
294348
| 294350