diff options
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/stmmac_main.c')
| -rw-r--r-- | drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c index a9856a8bf8ad..9f983dd069d5 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | |||
| @@ -57,36 +57,36 @@ | |||
| 57 | /* Module parameters */ | 57 | /* Module parameters */ |
| 58 | #define TX_TIMEO 5000 | 58 | #define TX_TIMEO 5000 |
| 59 | static int watchdog = TX_TIMEO; | 59 | static int watchdog = TX_TIMEO; |
| 60 | module_param(watchdog, int, S_IRUGO | S_IWUSR); | 60 | module_param(watchdog, int, 0644); |
| 61 | MODULE_PARM_DESC(watchdog, "Transmit timeout in milliseconds (default 5s)"); | 61 | MODULE_PARM_DESC(watchdog, "Transmit timeout in milliseconds (default 5s)"); |
| 62 | 62 | ||
| 63 | static int debug = -1; | 63 | static int debug = -1; |
| 64 | module_param(debug, int, S_IRUGO | S_IWUSR); | 64 | module_param(debug, int, 0644); |
| 65 | MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)"); | 65 | MODULE_PARM_DESC(debug, "Message Level (-1: default, 0: no output, 16: all)"); |
| 66 | 66 | ||
| 67 | static int phyaddr = -1; | 67 | static int phyaddr = -1; |
| 68 | module_param(phyaddr, int, S_IRUGO); | 68 | module_param(phyaddr, int, 0444); |
| 69 | MODULE_PARM_DESC(phyaddr, "Physical device address"); | 69 | MODULE_PARM_DESC(phyaddr, "Physical device address"); |
| 70 | 70 | ||
| 71 | #define STMMAC_TX_THRESH (DMA_TX_SIZE / 4) | 71 | #define STMMAC_TX_THRESH (DMA_TX_SIZE / 4) |
| 72 | #define STMMAC_RX_THRESH (DMA_RX_SIZE / 4) | 72 | #define STMMAC_RX_THRESH (DMA_RX_SIZE / 4) |
| 73 | 73 | ||
| 74 | static int flow_ctrl = FLOW_OFF; | 74 | static int flow_ctrl = FLOW_OFF; |
| 75 | module_param(flow_ctrl, int, S_IRUGO | S_IWUSR); | 75 | module_param(flow_ctrl, int, 0644); |
| 76 | MODULE_PARM_DESC(flow_ctrl, "Flow control ability [on/off]"); | 76 | MODULE_PARM_DESC(flow_ctrl, "Flow control ability [on/off]"); |
| 77 | 77 | ||
| 78 | static int pause = PAUSE_TIME; | 78 | static int pause = PAUSE_TIME; |
| 79 | module_param(pause, int, S_IRUGO | S_IWUSR); | 79 | module_param(pause, int, 0644); |
| 80 | MODULE_PARM_DESC(pause, "Flow Control Pause Time"); | 80 | MODULE_PARM_DESC(pause, "Flow Control Pause Time"); |
| 81 | 81 | ||
| 82 | #define TC_DEFAULT 64 | 82 | #define TC_DEFAULT 64 |
| 83 | static int tc = TC_DEFAULT; | 83 | static int tc = TC_DEFAULT; |
| 84 | module_param(tc, int, S_IRUGO | S_IWUSR); | 84 | module_param(tc, int, 0644); |
| 85 | MODULE_PARM_DESC(tc, "DMA threshold control value"); | 85 | MODULE_PARM_DESC(tc, "DMA threshold control value"); |
| 86 | 86 | ||
| 87 | #define DEFAULT_BUFSIZE 1536 | 87 | #define DEFAULT_BUFSIZE 1536 |
| 88 | static int buf_sz = DEFAULT_BUFSIZE; | 88 | static int buf_sz = DEFAULT_BUFSIZE; |
| 89 | module_param(buf_sz, int, S_IRUGO | S_IWUSR); | 89 | module_param(buf_sz, int, 0644); |
| 90 | MODULE_PARM_DESC(buf_sz, "DMA buffer size"); | 90 | MODULE_PARM_DESC(buf_sz, "DMA buffer size"); |
| 91 | 91 | ||
| 92 | #define STMMAC_RX_COPYBREAK 256 | 92 | #define STMMAC_RX_COPYBREAK 256 |
| @@ -97,7 +97,7 @@ static const u32 default_msg_level = (NETIF_MSG_DRV | NETIF_MSG_PROBE | | |||
| 97 | 97 | ||
| 98 | #define STMMAC_DEFAULT_LPI_TIMER 1000 | 98 | #define STMMAC_DEFAULT_LPI_TIMER 1000 |
| 99 | static int eee_timer = STMMAC_DEFAULT_LPI_TIMER; | 99 | static int eee_timer = STMMAC_DEFAULT_LPI_TIMER; |
| 100 | module_param(eee_timer, int, S_IRUGO | S_IWUSR); | 100 | module_param(eee_timer, int, 0644); |
| 101 | MODULE_PARM_DESC(eee_timer, "LPI tx expiration time in msec"); | 101 | MODULE_PARM_DESC(eee_timer, "LPI tx expiration time in msec"); |
| 102 | #define STMMAC_LPI_T(x) (jiffies + msecs_to_jiffies(x)) | 102 | #define STMMAC_LPI_T(x) (jiffies + msecs_to_jiffies(x)) |
| 103 | 103 | ||
| @@ -105,7 +105,7 @@ MODULE_PARM_DESC(eee_timer, "LPI tx expiration time in msec"); | |||
| 105 | * but allow user to force to use the chain instead of the ring | 105 | * but allow user to force to use the chain instead of the ring |
| 106 | */ | 106 | */ |
| 107 | static unsigned int chain_mode; | 107 | static unsigned int chain_mode; |
| 108 | module_param(chain_mode, int, S_IRUGO); | 108 | module_param(chain_mode, int, 0444); |
| 109 | MODULE_PARM_DESC(chain_mode, "To use chain instead of ring mode"); | 109 | MODULE_PARM_DESC(chain_mode, "To use chain instead of ring mode"); |
| 110 | 110 | ||
| 111 | static irqreturn_t stmmac_interrupt(int irq, void *dev_id); | 111 | static irqreturn_t stmmac_interrupt(int irq, void *dev_id); |
| @@ -4001,7 +4001,7 @@ static int stmmac_init_fs(struct net_device *dev) | |||
| 4001 | 4001 | ||
| 4002 | /* Entry to report DMA RX/TX rings */ | 4002 | /* Entry to report DMA RX/TX rings */ |
| 4003 | priv->dbgfs_rings_status = | 4003 | priv->dbgfs_rings_status = |
| 4004 | debugfs_create_file("descriptors_status", S_IRUGO, | 4004 | debugfs_create_file("descriptors_status", 0444, |
| 4005 | priv->dbgfs_dir, dev, | 4005 | priv->dbgfs_dir, dev, |
| 4006 | &stmmac_rings_status_fops); | 4006 | &stmmac_rings_status_fops); |
| 4007 | 4007 | ||
| @@ -4013,9 +4013,9 @@ static int stmmac_init_fs(struct net_device *dev) | |||
| 4013 | } | 4013 | } |
| 4014 | 4014 | ||
| 4015 | /* Entry to report the DMA HW features */ | 4015 | /* Entry to report the DMA HW features */ |
| 4016 | priv->dbgfs_dma_cap = debugfs_create_file("dma_cap", S_IRUGO, | 4016 | priv->dbgfs_dma_cap = debugfs_create_file("dma_cap", 0444, |
| 4017 | priv->dbgfs_dir, | 4017 | priv->dbgfs_dir, |
| 4018 | dev, &stmmac_dma_cap_fops); | 4018 | dev, &stmmac_dma_cap_fops); |
| 4019 | 4019 | ||
| 4020 | if (!priv->dbgfs_dma_cap || IS_ERR(priv->dbgfs_dma_cap)) { | 4020 | if (!priv->dbgfs_dma_cap || IS_ERR(priv->dbgfs_dma_cap)) { |
| 4021 | netdev_err(priv->dev, "ERROR creating stmmac MMC debugfs file\n"); | 4021 | netdev_err(priv->dev, "ERROR creating stmmac MMC debugfs file\n"); |
