Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 72437 Details for
Bug 100258
Using the SKGE driver from 2.6.12-gentoo-r6 makes it impossible for any older driver (sk98lin included) to bring the network card up.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Please try this patch
skge.patch (text/plain), 1.79 KB, created by
Daniel Drake (RETIRED)
on 2005-11-08 02:47:07 UTC
(
hide
)
Description:
Please try this patch
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2005-11-08 02:47:07 UTC
Size:
1.79 KB
patch
obsolete
>Date: Mon, 7 Nov 2005 23:08:35 -0800 >From: Stephen Hemminger <shemminger@osdl.org> >To: Daniel Drake <dsd@gentoo.org> >Subject: Re: skge issues and questions >Message-ID: <20051107230835.015c4366@localhost.localdomain> >In-Reply-To: <42C0854C.2030601@gentoo.org> >References: <42C02772.1000806@gentoo.org> > <20050627151512.0841bc31@dxpl.pdx.osdl.net> > <42C0854C.2030601@gentoo.org> > >If anyone is having shutdown issues with skge try this. > >Go into power down mode on shutdown. > >Signed-off-by: Stephen Hemminger <shemminger@osdl.org> > > >--- skge-2.6.orig/drivers/net/skge.c >+++ skge-2.6/drivers/net/skge.c >@@ -1804,6 +1804,25 @@ static void yukon_mac_init(struct skge_h > skge_write16(hw, SK_REG(port, TX_GMF_CTRL_T), GMF_OPER_ON); > } > >+/* Go into power down mode */ >+static void yukon_suspend(struct skge_hw *hw, int port) >+{ >+ u16 ctrl; >+ >+ ctrl = gm_phy_read(hw, port, PHY_MARV_PHY_CTRL); >+ ctrl |= PHY_M_PC_POL_R_DIS; >+ gm_phy_write(hw, port, PHY_MARV_PHY_CTRL, ctrl); >+ >+ ctrl = gm_phy_read(hw, port, PHY_MARV_CTRL); >+ ctrl |= PHY_CT_RESET; >+ gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl); >+ >+ /* switch IEEE compatible power down mode on */ >+ ctrl = gm_phy_read(hw, port, PHY_MARV_CTRL); >+ ctrl |= PHY_CT_PDOWN; >+ gm_phy_write(hw, port, PHY_MARV_CTRL, ctrl); >+} >+ > static void yukon_stop(struct skge_port *skge) > { > struct skge_hw *hw = skge->hw; >@@ -1817,14 +1836,7 @@ static void yukon_stop(struct skge_port > & ~(GM_GPCR_TX_ENA|GM_GPCR_RX_ENA)); > gma_read16(hw, port, GM_GP_CTRL); > >- if (hw->chip_id == CHIP_ID_YUKON_LITE && >- hw->chip_rev >= CHIP_REV_YU_LITE_A3) { >- u32 io = skge_read32(hw, B2_GP_IO); >- >- io |= GP_DIR_9 | GP_IO_9; >- skge_write32(hw, B2_GP_IO, io); >- skge_read32(hw, B2_GP_IO); >- } >+ yukon_suspend(hw, port); > > /* set GPHY Control reset */ > skge_write8(hw, SK_REG(port, GPHY_CTRL), GPC_RST_SET); >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 100258
:
68179
| 72437