xhci: mem: Join string literals back
For easy grepping on debug purposes join string literals back in the messages. No functional change. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20230317154715.535523-8-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
96be93a8c8
commit
4feb07d0ad
+10
-17
@@ -607,8 +607,7 @@ struct xhci_stream_info *xhci_alloc_stream_info(struct xhci_hcd *xhci,
|
|||||||
int ret;
|
int ret;
|
||||||
struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
|
struct device *dev = xhci_to_hcd(xhci)->self.sysdev;
|
||||||
|
|
||||||
xhci_dbg(xhci, "Allocating %u streams and %u "
|
xhci_dbg(xhci, "Allocating %u streams and %u stream context array entries.\n",
|
||||||
"stream context array entries.\n",
|
|
||||||
num_streams, num_stream_ctxs);
|
num_streams, num_stream_ctxs);
|
||||||
if (xhci->cmd_ring_reserved_trbs == MAX_RSVD_CMD_TRBS) {
|
if (xhci->cmd_ring_reserved_trbs == MAX_RSVD_CMD_TRBS) {
|
||||||
xhci_dbg(xhci, "Command ring has no reserved TRBs available\n");
|
xhci_dbg(xhci, "Command ring has no reserved TRBs available\n");
|
||||||
@@ -1950,8 +1949,7 @@ static void xhci_set_hc_event_deq(struct xhci_hcd *xhci, struct xhci_interrupter
|
|||||||
deq = xhci_trb_virt_to_dma(ir->event_ring->deq_seg,
|
deq = xhci_trb_virt_to_dma(ir->event_ring->deq_seg,
|
||||||
ir->event_ring->dequeue);
|
ir->event_ring->dequeue);
|
||||||
if (!deq)
|
if (!deq)
|
||||||
xhci_warn(xhci, "WARN something wrong with SW event ring "
|
xhci_warn(xhci, "WARN something wrong with SW event ring dequeue ptr.\n");
|
||||||
"dequeue ptr.\n");
|
|
||||||
/* Update HC event ring dequeue pointer */
|
/* Update HC event ring dequeue pointer */
|
||||||
temp = xhci_read_64(xhci, &ir->ir_set->erst_dequeue);
|
temp = xhci_read_64(xhci, &ir->ir_set->erst_dequeue);
|
||||||
temp &= ERST_PTR_MASK;
|
temp &= ERST_PTR_MASK;
|
||||||
@@ -1960,8 +1958,7 @@ static void xhci_set_hc_event_deq(struct xhci_hcd *xhci, struct xhci_interrupter
|
|||||||
*/
|
*/
|
||||||
temp &= ~ERST_EHB;
|
temp &= ~ERST_EHB;
|
||||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||||
"// Write event ring dequeue pointer, "
|
"// Write event ring dequeue pointer, preserving EHB bit");
|
||||||
"preserving EHB bit");
|
|
||||||
xhci_write_64(xhci, ((u64) deq & (u64) ~ERST_PTR_MASK) | temp,
|
xhci_write_64(xhci, ((u64) deq & (u64) ~ERST_PTR_MASK) | temp,
|
||||||
&ir->ir_set->erst_dequeue);
|
&ir->ir_set->erst_dequeue);
|
||||||
}
|
}
|
||||||
@@ -1994,8 +1991,7 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
|
|||||||
} else if (major_revision <= 0x02) {
|
} else if (major_revision <= 0x02) {
|
||||||
rhub = &xhci->usb2_rhub;
|
rhub = &xhci->usb2_rhub;
|
||||||
} else {
|
} else {
|
||||||
xhci_warn(xhci, "Ignoring unknown port speed, "
|
xhci_warn(xhci, "Ignoring unknown port speed, Ext Cap %p, revision = 0x%x\n",
|
||||||
"Ext Cap %p, revision = 0x%x\n",
|
|
||||||
addr, major_revision);
|
addr, major_revision);
|
||||||
/* Ignoring port protocol we can't understand. FIXME */
|
/* Ignoring port protocol we can't understand. FIXME */
|
||||||
return;
|
return;
|
||||||
@@ -2010,9 +2006,8 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
|
|||||||
port_offset = XHCI_EXT_PORT_OFF(temp);
|
port_offset = XHCI_EXT_PORT_OFF(temp);
|
||||||
port_count = XHCI_EXT_PORT_COUNT(temp);
|
port_count = XHCI_EXT_PORT_COUNT(temp);
|
||||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||||
"Ext Cap %p, port offset = %u, "
|
"Ext Cap %p, port offset = %u, count = %u, revision = 0x%x",
|
||||||
"count = %u, revision = 0x%x",
|
addr, port_offset, port_count, major_revision);
|
||||||
addr, port_offset, port_count, major_revision);
|
|
||||||
/* Port count includes the current port offset */
|
/* Port count includes the current port offset */
|
||||||
if (port_offset == 0 || (port_offset + port_count - 1) > num_ports)
|
if (port_offset == 0 || (port_offset + port_count - 1) > num_ports)
|
||||||
/* WTF? "Valid values are ‘1’ to MaxPorts" */
|
/* WTF? "Valid values are ‘1’ to MaxPorts" */
|
||||||
@@ -2069,10 +2064,8 @@ static void xhci_add_in_port(struct xhci_hcd *xhci, unsigned int num_ports,
|
|||||||
struct xhci_port *hw_port = &xhci->hw_ports[i];
|
struct xhci_port *hw_port = &xhci->hw_ports[i];
|
||||||
/* Duplicate entry. Ignore the port if the revisions differ. */
|
/* Duplicate entry. Ignore the port if the revisions differ. */
|
||||||
if (hw_port->rhub) {
|
if (hw_port->rhub) {
|
||||||
xhci_warn(xhci, "Duplicate port entry, Ext Cap %p,"
|
xhci_warn(xhci, "Duplicate port entry, Ext Cap %p, port %u\n", addr, i);
|
||||||
" port %u\n", addr, i);
|
xhci_warn(xhci, "Port was marked as USB %u, duplicated as USB %u\n",
|
||||||
xhci_warn(xhci, "Port was marked as USB %u, "
|
|
||||||
"duplicated as USB %u\n",
|
|
||||||
hw_port->rhub->maj_rev, major_revision);
|
hw_port->rhub->maj_rev, major_revision);
|
||||||
/* Only adjust the roothub port counts if we haven't
|
/* Only adjust the roothub port counts if we haven't
|
||||||
* found a similar duplicate.
|
* found a similar duplicate.
|
||||||
@@ -2411,8 +2404,8 @@ int xhci_mem_init(struct xhci_hcd *xhci, gfp_t flags)
|
|||||||
val = readl(&xhci->cap_regs->db_off);
|
val = readl(&xhci->cap_regs->db_off);
|
||||||
val &= DBOFF_MASK;
|
val &= DBOFF_MASK;
|
||||||
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
xhci_dbg_trace(xhci, trace_xhci_dbg_init,
|
||||||
"// Doorbell array is located at offset 0x%x"
|
"// Doorbell array is located at offset 0x%x from cap regs base addr",
|
||||||
" from cap regs base addr", val);
|
val);
|
||||||
xhci->dba = (void __iomem *) xhci->cap_regs + val;
|
xhci->dba = (void __iomem *) xhci->cap_regs + val;
|
||||||
/* Set ir_set to interrupt register set 0 */
|
/* Set ir_set to interrupt register set 0 */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user