[Prism54-users] Can't make a SMC2802W work. Maybe it's my hardware setup? Doing something wrong?

Jens Maurer Jens.Maurer@gmx.net
Sat, 17 Jan 2004 15:34:04 +0100


This is a multi-part message in MIME format.
--------------050106000706060904010500
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit



bapm wrote:
> I tested this after and before your patch.
> 
> I was really happy to see new code in CVS hopping it would solve my problem
 > but no it didn't solve and I think ifup yields a new error message
 > with the current CVS version:

Could you please try the attached patch?
It will output the interrupt number that we *think* the card
is using (compare this to lspci -v output) and it will retry
the soft device reset ten times, probably just the first
reset gets lost.  Please send me /proc/interrupts from just
after boot, then insert and "ifup" the card, then snapshot
/proc/interrupts again.  (The interrupt might be delivered
somewhere else (unlikely)).

Also, please try increasing the "mdelay" value in  isl_38xx.c
to 500, in case your card is somehow really slow doing a reset.

Jens Maurer



--------------050106000706060904010500
Content-Type: text/plain;
 name="repeat-reset.patch"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
 filename="repeat-reset.patch"

SW5kZXg6IGlzbHBjaV9kZXYuYwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09ClJDUyBmaWxlOiAvdmFyL2xpYi9j
dnMvcHJpc201NC1uZy9rc3JjL2lzbHBjaV9kZXYuYyx2CnJldHJpZXZpbmcgcmV2aXNpb24g
MS40OApkaWZmIC11IC1yMS40OCBpc2xwY2lfZGV2LmMKLS0tIGlzbHBjaV9kZXYuYwkxMyBK
YW4gMjAwNCAyMToyNDowNSAtMDAwMAkxLjQ4CisrKyBpc2xwY2lfZGV2LmMJMTcgSmFuIDIw
MDQgMTQ6MzI6MTkgLTAwMDAKQEAgLTMzNSwxOSArMzM1LDI3IEBACiBpc2xwY2lfcmVzZXRf
aWYoaXNscGNpX3ByaXZhdGUgKnByaXYpCiB7CiAJbG9uZyByZW1haW5pbmc7Ci0JLyogbm93
IHRoZSBsYXN0IHN0ZXAgaXM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