Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
2ead1aa6
Commit
2ead1aa6
authored
Sep 23, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'upstream-fixes' from master.kernel.org:/pub/scm/linux/kernel/git/jgarzik/netdev-2.6
parents
7f28f394
c8868611
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
3 deletions
+21
-3
drivers/net/8390.c
drivers/net/8390.c
+1
-1
drivers/net/skge.c
drivers/net/skge.c
+20
-2
No files found.
drivers/net/8390.c
View file @
2ead1aa6
...
@@ -1094,7 +1094,7 @@ static void NS8390_trigger_send(struct net_device *dev, unsigned int length,
...
@@ -1094,7 +1094,7 @@ static void NS8390_trigger_send(struct net_device *dev, unsigned int length,
outb_p
(
E8390_NODMA
+
E8390_PAGE0
,
e8390_base
+
E8390_CMD
);
outb_p
(
E8390_NODMA
+
E8390_PAGE0
,
e8390_base
+
E8390_CMD
);
if
(
inb_p
(
e8390_base
)
&
E8390_TRANS
)
if
(
inb_p
(
e8390_base
+
E8390_CMD
)
&
E8390_TRANS
)
{
{
printk
(
KERN_WARNING
"%s: trigger_send() called with the transmitter busy.
\n
"
,
printk
(
KERN_WARNING
"%s: trigger_send() called with the transmitter busy.
\n
"
,
dev
->
name
);
dev
->
name
);
...
...
drivers/net/skge.c
View file @
2ead1aa6
...
@@ -1643,6 +1643,22 @@ static void yukon_reset(struct skge_hw *hw, int port)
...
@@ -1643,6 +1643,22 @@ static void yukon_reset(struct skge_hw *hw, int port)
|
GM_RXCR_UCF_ENA
|
GM_RXCR_MCF_ENA
);
|
GM_RXCR_UCF_ENA
|
GM_RXCR_MCF_ENA
);
}
}
/* Apparently, early versions of Yukon-Lite had wrong chip_id? */
static
int
is_yukon_lite_a0
(
struct
skge_hw
*
hw
)
{
u32
reg
;
int
ret
;
if
(
hw
->
chip_id
!=
CHIP_ID_YUKON
)
return
0
;
reg
=
skge_read32
(
hw
,
B2_FAR
);
skge_write8
(
hw
,
B2_FAR
+
3
,
0xff
);
ret
=
(
skge_read8
(
hw
,
B2_FAR
+
3
)
!=
0
);
skge_write32
(
hw
,
B2_FAR
,
reg
);
return
ret
;
}
static
void
yukon_mac_init
(
struct
skge_hw
*
hw
,
int
port
)
static
void
yukon_mac_init
(
struct
skge_hw
*
hw
,
int
port
)
{
{
struct
skge_port
*
skge
=
netdev_priv
(
hw
->
dev
[
port
]);
struct
skge_port
*
skge
=
netdev_priv
(
hw
->
dev
[
port
]);
...
@@ -1758,9 +1774,11 @@ static void yukon_mac_init(struct skge_hw *hw, int port)
...
@@ -1758,9 +1774,11 @@ static void yukon_mac_init(struct skge_hw *hw, int port)
/* Configure Rx MAC FIFO */
/* Configure Rx MAC FIFO */
skge_write16
(
hw
,
SK_REG
(
port
,
RX_GMF_FL_MSK
),
RX_FF_FL_DEF_MSK
);
skge_write16
(
hw
,
SK_REG
(
port
,
RX_GMF_FL_MSK
),
RX_FF_FL_DEF_MSK
);
reg
=
GMF_OPER_ON
|
GMF_RX_F_FL_ON
;
reg
=
GMF_OPER_ON
|
GMF_RX_F_FL_ON
;
if
(
hw
->
chip_id
==
CHIP_ID_YUKON_LITE
&&
hw
->
chip_rev
>=
CHIP_REV_YU_LITE_A3
)
/* disable Rx GMAC FIFO Flush for YUKON-Lite Rev. A0 only */
if
(
is_yukon_lite_a0
(
hw
))
reg
&=
~
GMF_RX_F_FL_ON
;
reg
&=
~
GMF_RX_F_FL_ON
;
skge_write8
(
hw
,
SK_REG
(
port
,
RX_GMF_CTRL_T
),
GMF_RST_CLR
);
skge_write8
(
hw
,
SK_REG
(
port
,
RX_GMF_CTRL_T
),
GMF_RST_CLR
);
skge_write16
(
hw
,
SK_REG
(
port
,
RX_GMF_CTRL_T
),
reg
);
skge_write16
(
hw
,
SK_REG
(
port
,
RX_GMF_CTRL_T
),
reg
);
/*
/*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment