Skip to content

Commit c8e4e5b

Browse files
mannamsFelipe Balbi
authored andcommitted
usb: gadget: bdc: 64-bit pointer capability check
Corrected the register to check the 64-bit pointer capability state. 64-bit pointer implementation capability was checking in wrong register, which causes the BDC enumeration failure in 64-bit memory address. Fixes: efed421 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC") Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Srinath Mannam <[email protected]> Signed-off-by: Felipe Balbi <[email protected]>
1 parent ece7af5 commit c8e4e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/gadget/udc/bdc/bdc_core.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ static int bdc_probe(struct platform_device *pdev)
475475
bdc->dev = dev;
476476
dev_dbg(bdc->dev, "bdc->regs: %p irq=%d\n", bdc->regs, bdc->irq);
477477

478-
temp = bdc_readl(bdc->regs, BDC_BDCSC);
478+
temp = bdc_readl(bdc->regs, BDC_BDCCAP1);
479479
if ((temp & BDC_P64) &&
480480
!dma_set_mask_and_coherent(dev, DMA_BIT_MASK(64))) {
481481
dev_dbg(bdc->dev, "Using 64-bit address\n");

0 commit comments

Comments
 (0)