Skip to content

Commit

Permalink
net: qcom/emac: remove extraneous wake-on-lan code
Browse files Browse the repository at this point in the history
The EMAC driver does not support wake-on-lan, but there is still
code left-over that partially enables it.  Remove that code and a few
macros that support it.

Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Timur Tabi authored and David S. Miller committed Jan 30, 2017
1 parent 0f20276 commit e7e7454
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions drivers/net/ethernet/qualcomm/emac/emac-mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,14 +103,6 @@
#define RXEN 0x00000002
#define TXEN 0x00000001


/* EMAC_WOL_CTRL0 */
#define LK_CHG_PME 0x20
#define LK_CHG_EN 0x10
#define MG_FRAME_PME 0x8
#define MG_FRAME_EN 0x4
#define WK_FRAME_EN 0x1

/* EMAC_DESC_CTRL_3 */
#define RFD_RING_SIZE_BMSK 0xfff

Expand Down Expand Up @@ -619,8 +611,6 @@ static void emac_mac_start(struct emac_adapter *adpt)

emac_reg_update32(adpt->base + EMAC_ATHR_HEADER_CTRL,
(HEADER_ENABLE | HEADER_CNT_EN), 0);

emac_reg_update32(adpt->csr + EMAC_EMAC_WRAPPER_CSR2, 0, WOL_EN);
}

void emac_mac_stop(struct emac_adapter *adpt)
Expand Down
4 changes: 0 additions & 4 deletions drivers/net/ethernet/qualcomm/emac/emac.h
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@ enum emac_clk_id {

#define EMAC_MAX_SETUP_LNK_CYCLE 100

/* Wake On Lan */
#define EMAC_WOL_PHY 0x00000001 /* PHY Status Change */
#define EMAC_WOL_MAGIC 0x00000002 /* Magic Packet */

struct emac_stats {
/* rx */
u64 rx_ok; /* good packets */
Expand Down

0 comments on commit e7e7454

Please sign in to comment.