xhci-dbc.c (1136fa0c07de570dc17858745af8be169d1440ba) xhci-dbc.c (b0ae33a2d2fb6c55117b377ec4ae3f2c84eab6a2)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * xhci-dbc.c - xHCI debug capability early driver
4 *
5 * Copyright (C) 2016 Intel Corporation
6 *
7 * Author: Lu Baolu <baolu.lu@linux.intel.com>
8 */

--- 585 unchanged lines hidden (view full) ---

594
595 xdbc.flags |= XDBC_FLAGS_INITIALIZED | XDBC_FLAGS_CONFIGURED;
596
597 xdbc_bulk_transfer(NULL, XDBC_MAX_PACKET, true);
598
599 return 0;
600}
601
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * xhci-dbc.c - xHCI debug capability early driver
4 *
5 * Copyright (C) 2016 Intel Corporation
6 *
7 * Author: Lu Baolu <baolu.lu@linux.intel.com>
8 */

--- 585 unchanged lines hidden (view full) ---

594
595 xdbc.flags |= XDBC_FLAGS_INITIALIZED | XDBC_FLAGS_CONFIGURED;
596
597 xdbc_bulk_transfer(NULL, XDBC_MAX_PACKET, true);
598
599 return 0;
600}
601
602int __init early_xdbc_parse_parameter(char *s)
602int __init early_xdbc_parse_parameter(char *s, int keep_early)
603{
604 unsigned long dbgp_num = 0;
605 u32 bus, dev, func, offset;
606 int ret;
607
608 if (!early_pci_allowed())
609 return -EPERM;
610
603{
604 unsigned long dbgp_num = 0;
605 u32 bus, dev, func, offset;
606 int ret;
607
608 if (!early_pci_allowed())
609 return -EPERM;
610
611 if (strstr(s, "keep"))
612 early_console_keep = true;
611 early_console_keep = keep_early;
613
614 if (xdbc.xdbc_reg)
615 return 0;
616
617 if (*s && kstrtoul(s, 0, &dbgp_num))
618 dbgp_num = 0;
619
620 pr_notice("dbgp_num: %lu\n", dbgp_num);

--- 384 unchanged lines hidden ---
612
613 if (xdbc.xdbc_reg)
614 return 0;
615
616 if (*s && kstrtoul(s, 0, &dbgp_num))
617 dbgp_num = 0;
618
619 pr_notice("dbgp_num: %lu\n", dbgp_num);

--- 384 unchanged lines hidden ---