Commit 91fa0cbc authored by Sjur Brændeland's avatar Sjur Brændeland Committed by David S. Miller

caif-hsi: Remove use of module parameters

Remove use of module parameters on caif hsi device, as
rtnl configuration parameters are already supported.

All caif hsi configuration data is put in cfhsi_config,
and default values in hsi_default_config.
Signed-off-by: default avatarSjur Brændeland <sjur.brandeland@stericsson.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1c385f1f
This diff is collapsed.
...@@ -132,6 +132,15 @@ enum { ...@@ -132,6 +132,15 @@ enum {
CFHSI_PRIO_LAST, CFHSI_PRIO_LAST,
}; };
struct cfhsi_config {
u32 inactivity_timeout;
u32 aggregation_timeout;
u32 head_align;
u32 tail_align;
u32 q_high_mark;
u32 q_low_mark;
};
/* Structure implemented by CAIF HSI drivers. */ /* Structure implemented by CAIF HSI drivers. */
struct cfhsi { struct cfhsi {
struct caif_dev_common cfdev; struct caif_dev_common cfdev;
...@@ -142,7 +151,7 @@ struct cfhsi { ...@@ -142,7 +151,7 @@ struct cfhsi {
struct cfhsi_ops *ops; struct cfhsi_ops *ops;
int tx_state; int tx_state;
struct cfhsi_rx_state rx_state; struct cfhsi_rx_state rx_state;
unsigned long inactivity_timeout; struct cfhsi_config cfg;
int rx_len; int rx_len;
u8 *rx_ptr; u8 *rx_ptr;
u8 *tx_buf; u8 *tx_buf;
...@@ -150,8 +159,6 @@ struct cfhsi { ...@@ -150,8 +159,6 @@ struct cfhsi {
u8 *rx_flip_buf; u8 *rx_flip_buf;
spinlock_t lock; spinlock_t lock;
int flow_off_sent; int flow_off_sent;
u32 q_low_mark;
u32 q_high_mark;
struct list_head list; struct list_head list;
struct work_struct wake_up_work; struct work_struct wake_up_work;
struct work_struct wake_down_work; struct work_struct wake_down_work;
...@@ -164,7 +171,6 @@ struct cfhsi { ...@@ -164,7 +171,6 @@ struct cfhsi {
struct timer_list rx_slowpath_timer; struct timer_list rx_slowpath_timer;
/* TX aggregation */ /* TX aggregation */
unsigned long aggregation_timeout;
int aggregation_len; int aggregation_len;
struct timer_list aggregation_timer; struct timer_list aggregation_timer;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment