Commit 54bcfb29 authored by Zheng Chongzhen's avatar Zheng Chongzhen Committed by guzitao
Browse files

sw64: usb: redefine some macros

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG



--------------------------------

We define these macros ourselves instead of using common definitions.

Signed-off-by: default avatarZheng Chongzhen <zhengchongzhen@wxiat.com>
Reviewed-by: default avatarHe Sheng <hesheng@wxiat.com>
Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent ffd9c055
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -1288,12 +1288,11 @@ DECLARE_PCI_FIXUP_CLASS_FINAL(PCI_ANY_ID, PCI_ANY_ID,

#ifdef CONFIG_SW64
#include <asm/sw64io.h>

#define xhci_find_next_ext_cap	xhci_find_next_ext_cap_2	// avoid redefinition
#include "xhci.h"
#undef xhci_find_next_ext_cap

#define STS_RW1C_BITS		(STS_FATAL | STS_EINT | STS_PORT | STS_SRE)
#define XHCI_STS_FATAL	(1 << 2)
#define XHCI_STS_EINT	(1 << 3)
#define XHCI_STS_PORT	(1 << 4)
#define XHCI_STS_SRE	(1 << 10)
#define STS_RW1C_BITS	(XHCI_STS_FATAL | XHCI_STS_EINT | XHCI_STS_PORT | XHCI_STS_SRE)

static void
fixup_usb_xhci_reset(struct pci_dev *dev)