Commit d1531319 authored by John Youn's avatar John Youn Committed by Felipe Balbi

usb: dwc2: Rename host_rx_fifo_size hardware parameter

This hardware parameter is not host specific. It also applies to device
mode. Drop the "host" from the name to make that clear.
Signed-off-by: default avatarJohn Youn <johnyoun@synopsys.com>
Signed-off-by: default avatarFelipe Balbi <felipe.balbi@linux.intel.com>
parent c1d286cf
...@@ -536,7 +536,7 @@ struct dwc2_hw_params { ...@@ -536,7 +536,7 @@ struct dwc2_hw_params {
unsigned dma_desc_enable:1; unsigned dma_desc_enable:1;
unsigned enable_dynamic_fifo:1; unsigned enable_dynamic_fifo:1;
unsigned en_multiple_tx_fifo:1; unsigned en_multiple_tx_fifo:1;
unsigned host_rx_fifo_size:16; unsigned rx_fifo_size:16;
unsigned host_nperio_tx_fifo_size:16; unsigned host_nperio_tx_fifo_size:16;
unsigned dev_nperio_tx_fifo_size:16; unsigned dev_nperio_tx_fifo_size:16;
unsigned host_perio_tx_fifo_size:16; unsigned host_perio_tx_fifo_size:16;
......
...@@ -417,7 +417,7 @@ static void dwc2_set_param_host_rx_fifo_size(struct dwc2_hsotg *hsotg, int val) ...@@ -417,7 +417,7 @@ static void dwc2_set_param_host_rx_fifo_size(struct dwc2_hsotg *hsotg, int val)
{ {
int valid = 1; int valid = 1;
if (val < 16 || val > hsotg->hw_params.host_rx_fifo_size) if (val < 16 || val > hsotg->hw_params.rx_fifo_size)
valid = 0; valid = 0;
if (!valid) { if (!valid) {
...@@ -425,7 +425,7 @@ static void dwc2_set_param_host_rx_fifo_size(struct dwc2_hsotg *hsotg, int val) ...@@ -425,7 +425,7 @@ static void dwc2_set_param_host_rx_fifo_size(struct dwc2_hsotg *hsotg, int val)
dev_err(hsotg->dev, dev_err(hsotg->dev,
"%d invalid for host_rx_fifo_size. Check HW configuration.\n", "%d invalid for host_rx_fifo_size. Check HW configuration.\n",
val); val);
val = hsotg->hw_params.host_rx_fifo_size; val = hsotg->hw_params.rx_fifo_size;
dev_dbg(hsotg->dev, "Setting host_rx_fifo_size to %d\n", val); dev_dbg(hsotg->dev, "Setting host_rx_fifo_size to %d\n", val);
} }
...@@ -1100,7 +1100,7 @@ int dwc2_get_hwparams(struct dwc2_hsotg *hsotg) ...@@ -1100,7 +1100,7 @@ int dwc2_get_hwparams(struct dwc2_hsotg *hsotg)
GHWCFG4_UTMI_PHY_DATA_WIDTH_SHIFT; GHWCFG4_UTMI_PHY_DATA_WIDTH_SHIFT;
/* fifo sizes */ /* fifo sizes */
hw->host_rx_fifo_size = (grxfsiz & GRXFSIZ_DEPTH_MASK) >> hw->rx_fifo_size = (grxfsiz & GRXFSIZ_DEPTH_MASK) >>
GRXFSIZ_DEPTH_SHIFT; GRXFSIZ_DEPTH_SHIFT;
dev_dbg(hsotg->dev, "Detected values from hardware:\n"); dev_dbg(hsotg->dev, "Detected values from hardware:\n");
...@@ -1142,8 +1142,8 @@ int dwc2_get_hwparams(struct dwc2_hsotg *hsotg) ...@@ -1142,8 +1142,8 @@ int dwc2_get_hwparams(struct dwc2_hsotg *hsotg)
hw->en_multiple_tx_fifo); hw->en_multiple_tx_fifo);
dev_dbg(hsotg->dev, " total_fifo_size=%d\n", dev_dbg(hsotg->dev, " total_fifo_size=%d\n",
hw->total_fifo_size); hw->total_fifo_size);
dev_dbg(hsotg->dev, " host_rx_fifo_size=%d\n", dev_dbg(hsotg->dev, " rx_fifo_size=%d\n",
hw->host_rx_fifo_size); hw->rx_fifo_size);
dev_dbg(hsotg->dev, " host_nperio_tx_fifo_size=%d\n", dev_dbg(hsotg->dev, " host_nperio_tx_fifo_size=%d\n",
hw->host_nperio_tx_fifo_size); hw->host_nperio_tx_fifo_size);
dev_dbg(hsotg->dev, " host_perio_tx_fifo_size=%d\n", dev_dbg(hsotg->dev, " host_perio_tx_fifo_size=%d\n",
......
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