From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3F0B94B2.5090607@earthlink.net> Date: Tue, 08 Jul 2003 21:06:10 -0700 From: Dean Matsen To: linuxppc-embedded@lists.linuxppc.org Subject: [PATCH] Solves problems when PHY has no interrupts MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MIMEStream=_0+106105_563697124402_802731020411" Sender: owner-linuxppc-embedded@lists.linuxppc.org List-Id: This is a multi-part message in MIME format. --MIMEStream=_0+106105_563697124402_802731020411 Content-Type: text/plain; charset="us-ascii"; format="flowed" Content-Transfer-Encoding: 7bit Hello all, the enclosed patch applies to the Monta Vista 2.4.22-pre3 kernel or thereabouts. Our PPC implementations have no PHY IRQ support. I notice that the file arch/ppc/8xx_io/fec.c now has a variable HAVE_PHY_INTERRUPT, which is something like what I originally did. But, I had to make another change as well. Specifically, I had to move some initialization code around for the Ethernet to work properly after "ifconfig eth0 down ; ifconfig eth0 up". Without these changes, the Ethernet doesn't come back "up" :( The changes in this patch are done so that people WITH a PHY interrupt have things done in the original order (I can't verify my change against a system WITH PHY interrupts, so I preserved the order). In short, this fix should be safe for all systems, but maybe overly paranoid. Anyone care to inspect and comment on the viability of this patch? TIA Dean Matsen --MIMEStream=_0+106105_563697124402_802731020411 Content-Type: application/x-bzip2; name="fec.patch.bz2" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="fec.patch.bz2" QlpoOTFBWSZTWUfrSxYAAW1fgGgwW//////3/+6/7///UAUZ5hram7gAABwlTQpgInkBqNqA DQ0YjI0AAANAaZADSUA0BoA0AAAAaBkAANAaAANMoJNDSaNqGg0BkAaAAADQAAABzTEZGTTJ oBkNGQyZAAADI0yNAwhkCSQE0ARoNEKY0jR6jR6g0ZGj0gPUxBkAxqQAFbnCiC1UAE3hKDjc Yve8awgBzh8AYpkSSmQiC4pwVn7s33xgrNkggqMjnj9M1hzm96EszwfL2js3wzdnaPpYz+oc 2OBhAdFwqpjy/22xhZbOZqo5mZVBR45BxATAG0DuBL0EK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QTlQmMQUEQEw87jybIMd ibR4wyxyCo02kCOMweiRqxduOJxkrqtRvLXAsqBwM9FliMsGI67AqdE7ZB3AmVEFa4YLLxwM xC4g9RLKA5KkDwwiKqAqhVMm3BoojsnsRbnORxrUx0ca7cGZiI8HDJv3gYj+0xt4YA6Vu86Y ljzNh044xxnIZMtHMhPB5ZUjEfcIcbCSiQUwo04k6B3SAdnsGN/Zn2GGKtwOQML12rFEs1GC SyGYtSGLFxnBFVygBqVx12x3iUVqiVlgKKFQIYpYn/F3JFOFCQR+tLFg --MIMEStream=_0+106105_563697124402_802731020411-- ** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/