Skip to contentSkip to conversation

SMC91111 Tx interrupt handling and ethaddr handling

PATCH New Paul Ruhland 2 participants 2 messages May 17, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 SMC91111 Tx interrupt handling and ethaddr handling

This patch contains several fixes/changes:

1) proper tx interrupt handling
- packets must still be freed/releases manually on error even with autorelease enabled).
- Tx int timeout is 100ms according to the manual.
2) reverts CTL_DEFAULT back to register default. AUTORELEASE is not the default...or this with default at init
3) removes 'getenv' and 'setenv' calls from 'smc_get_ethaddr'
- don't think the ethernet driver should need to know about the environment, the data need is already passed to function via board info.
- don't think ethernet driver should change environment, changing info is fine.

Signature · 11 lines
Paul Ruhland <[email protected]>
Software Engineer
Microwave Data Systems
Rochester, NY 16420
-------------- next part --------------
A non-text attachment was scrubbed...
Name: u-boot-smc91111-txint_env.patch
Type: text/x-diff
Size: 12657 bytes
Desc: not available
Url : http://lists.denx.de/pipermail/u-boot/attachments/20040517/3fc816ed/attachment.patch 
#1 lore raw

PATCH 1/1 SMC91111 Tx interrupt handling and ethaddr handling

Quoted 13 lines · In message <[email protected]> you wrote:

1) proper tx interrupt handling
- packets must still be freed/releases manually on error even with autorelease enabled).
- Tx int timeout is 100ms according to the manual.
2) reverts CTL_DEFAULT back to register default. AUTORELEASE is not the default...or this with default at init
3) removes 'getenv' and 'setenv' calls from 'smc_get_ethaddr'
- don't think the ethernet driver should need to know about the environment, the data need is already passed to function via board info.
- don't think ethernet driver should change environment, changing info is fine.

Please split this into separate patches. I may apply the first 2 parts, but will probably reject the third part. The current behaviour (as far as I can see) is exactly as documented. I don't see anything wrong there. YMMV.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
If you hear an onion ring, answer it.