Skip to content

Commit 0888e08

Browse files
committed
Merge branch 'remotes/lorenzo/pci/misc'
- Add generic SZ_1T macro instead of a local one in pci-xgene.c (Christophe Leroy) * remotes/lorenzo/pci/misc: sizes.h: Add SZ_1T macro
2 parents f409855 + 0cc62ae commit 0888e08

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/pci/controller/pci-xgene.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
#define EN_REG 0x00000001
5050
#define OB_LO_IO 0x00000002
5151
#define XGENE_PCIE_DEVICEID 0xE004
52-
#define SZ_1T (SZ_1G*1024ULL)
5352
#define PIPE_PHY_RATE_RD(src) ((0xc000 & (u32)(src)) >> 0xe)
5453

5554
#define XGENE_V1_PCI_EXP_CAP 0x40

include/linux/sizes.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@
4747
#define SZ_8G _AC(0x200000000, ULL)
4848
#define SZ_16G _AC(0x400000000, ULL)
4949
#define SZ_32G _AC(0x800000000, ULL)
50+
51+
#define SZ_1T _AC(0x10000000000, ULL)
5052
#define SZ_64T _AC(0x400000000000, ULL)
5153

5254
#endif /* __LINUX_SIZES_H__ */

0 commit comments

Comments
 (0)