@@ -364,15 +364,17 @@ static int dptx_phy_set_link_rate(struct apple_dptx_phy *phy, u32 link_rate)
364
364
365
365
// MMIO: R.4 0x23c541014 (dptx-phy[0], offset 0x1014) = 0x1
366
366
sts_1014 = readl (phy -> regs .dptx + 0x1014 );
367
- /* TODO: assert(sts_1014 == 0x1); */
367
+ if (sts_1014 != 0x1 )
368
+ dev_dbg (phy -> dev , "unexpected?: dptx[0x1014]: %02x\n" , sts_1014 );
368
369
369
370
// MMIO: R.4 0x23c54100c (dptx-phy[0], offset 0x100c) = 0xf008
370
371
// MMIO: W.4 0x23c54100c (dptx-phy[0], offset 0x100c) = 0xf000
371
372
clear32 (phy -> regs .dptx + 0x100c , 0x0008 );
372
373
373
374
// MMIO: R.4 0x23c541008 (dptx-phy[0], offset 0x1008) = 0x1
374
375
sts_1008 = readl (phy -> regs .dptx + 0x1008 );
375
- /* TODO: assert(sts_1008 == 0x1); */
376
+ if (sts_1008 != 0x1 )
377
+ dev_dbg (phy -> dev , "unexpected?: dptx[0x1008]: %02x\n" , sts_1008 );
376
378
377
379
// MMIO: R.4 0x23c542220 (dptx-phy[0], offset 0x2220) = 0x11090a0
378
380
// MMIO: W.4 0x23c542220 (dptx-phy[0], offset 0x2220) = 0x1109020
@@ -469,15 +471,17 @@ static int dptx_phy_set_link_rate(struct apple_dptx_phy *phy, u32 link_rate)
469
471
470
472
// MMIO: R.4 0x23c541014 (dptx-phy[0], offset 0x1014) = 0x38f
471
473
sts_1014 = readl (phy -> regs .dptx + 0x1014 );
472
- /* TODO: assert(sts_1014 == 0x38f); */
474
+ if (sts_1014 != 0x38f )
475
+ dev_dbg (phy -> dev , "unexpected?: dptx[0x1014]: %02x\n" , sts_1014 );
473
476
474
477
// MMIO: R.4 0x23c54100c (dptx-phy[0], offset 0x100c) = 0xf00f
475
478
// MMIO: W.4 0x23c54100c (dptx-phy[0], offset 0x100c) = 0xf007
476
479
clear32 (phy -> regs .dptx + 0x100c , 0x0008 );
477
480
478
481
// MMIO: R.4 0x23c541008 (dptx-phy[0], offset 0x1008) = 0x9
479
482
sts_1008 = readl (phy -> regs .dptx + 0x1008 );
480
- /* TODO: assert(sts_1008 == 0x9); */
483
+ if (sts_1008 != 0x9 )
484
+ dev_dbg (phy -> dev , "unexpected?: dptx[0x1008]: %02x\n" , sts_1008 );
481
485
482
486
// MMIO: R.4 0x23c542200 (dptx-phy[0], offset 0x2200) = 0x2000
483
487
// MMIO: W.4 0x23c542200 (dptx-phy[0], offset 0x2200) = 0x2002
0 commit comments