Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

phy: cadence-torrent: Constify struct cdns_torrent_vals

'struct cdns_torrent_vals' is not modified in this driver.

Constifying this structure moves some data to a read-only section, so
increase overall security.

On a x86_64, with allmodconfig:
Before:
======
text data bss dec hex filename
92234 6078 16 98328 18018 drivers/phy/cadence/phy-cadence-torrent.o

After:
=====
text data bss dec hex filename
93578 4798 16 98392 18058 drivers/phy/cadence/phy-cadence-torrent.o

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/d9d135ee9b806726766a1bc5e1404267939aa637.1720718240.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>

authored by

Christophe JAILLET and committed by
Vinod Koul
86946f25 1d7eb113

+96 -96
+96 -96
drivers/phy/cadence/phy-cadence-torrent.c
··· 428 428 429 429 struct cdns_torrent_vals_entry { 430 430 u32 key; 431 - struct cdns_torrent_vals *vals; 431 + const struct cdns_torrent_vals *vals; 432 432 }; 433 433 434 434 struct cdns_torrent_vals_table { ··· 454 454 u8 reg_offset_shift; 455 455 }; 456 456 457 - static struct cdns_torrent_vals *cdns_torrent_get_tbl_vals(const struct cdns_torrent_vals_table *tbl, 458 - enum cdns_torrent_ref_clk refclk0, 459 - enum cdns_torrent_ref_clk refclk1, 460 - enum cdns_torrent_phy_type link0, 461 - enum cdns_torrent_phy_type link1, 462 - enum cdns_torrent_ssc_mode ssc) 457 + static const struct cdns_torrent_vals *cdns_torrent_get_tbl_vals(const struct cdns_torrent_vals_table *tbl, 458 + enum cdns_torrent_ref_clk refclk0, 459 + enum cdns_torrent_ref_clk refclk1, 460 + enum cdns_torrent_phy_type link0, 461 + enum cdns_torrent_phy_type link1, 462 + enum cdns_torrent_ssc_mode ssc) 463 463 { 464 464 int i; 465 465 u32 key = CDNS_TORRENT_KEY(refclk0, refclk1, link0, link1, ssc); ··· 2306 2306 static int cdns_torrent_phy_init(struct phy *phy) 2307 2307 { 2308 2308 struct cdns_torrent_phy *cdns_phy = dev_get_drvdata(phy->dev.parent); 2309 + const struct cdns_torrent_vals *cmn_vals, *tx_ln_vals, *rx_ln_vals; 2309 2310 const struct cdns_torrent_data *init_data = cdns_phy->init_data; 2310 - struct cdns_torrent_vals *cmn_vals, *tx_ln_vals, *rx_ln_vals; 2311 + const struct cdns_torrent_vals *link_cmn_vals, *xcvr_diag_vals; 2311 2312 enum cdns_torrent_ref_clk ref_clk = cdns_phy->ref_clk_rate; 2312 - struct cdns_torrent_vals *link_cmn_vals, *xcvr_diag_vals; 2313 2313 struct cdns_torrent_inst *inst = phy_get_drvdata(phy); 2314 2314 enum cdns_torrent_phy_type phy_type = inst->phy_type; 2315 + const struct cdns_torrent_vals *phy_pma_cmn_vals; 2315 2316 enum cdns_torrent_ssc_mode ssc = inst->ssc_mode; 2316 - struct cdns_torrent_vals *phy_pma_cmn_vals; 2317 - struct cdns_torrent_vals *pcs_cmn_vals; 2317 + const struct cdns_torrent_vals *pcs_cmn_vals; 2318 2318 const struct cdns_reg_pairs *reg_pairs; 2319 2319 struct regmap *regmap; 2320 2320 u32 num_regs; ··· 2463 2463 static 2464 2464 int cdns_torrent_phy_configure_multilink(struct cdns_torrent_phy *cdns_phy) 2465 2465 { 2466 + const struct cdns_torrent_vals *cmn_vals, *tx_ln_vals, *rx_ln_vals; 2466 2467 const struct cdns_torrent_data *init_data = cdns_phy->init_data; 2467 - struct cdns_torrent_vals *cmn_vals, *tx_ln_vals, *rx_ln_vals; 2468 + const struct cdns_torrent_vals *link_cmn_vals, *xcvr_diag_vals; 2468 2469 enum cdns_torrent_ref_clk ref_clk1 = cdns_phy->ref_clk1_rate; 2469 2470 enum cdns_torrent_ref_clk ref_clk = cdns_phy->ref_clk_rate; 2470 - struct cdns_torrent_vals *link_cmn_vals, *xcvr_diag_vals; 2471 + const struct cdns_torrent_vals *phy_pma_cmn_vals; 2472 + const struct cdns_torrent_vals *pcs_cmn_vals; 2471 2473 enum cdns_torrent_phy_type phy_t1, phy_t2; 2472 - struct cdns_torrent_vals *phy_pma_cmn_vals; 2473 - struct cdns_torrent_vals *pcs_cmn_vals; 2474 2474 const struct cdns_reg_pairs *reg_pairs; 2475 2475 int i, j, node, mlane, num_lanes, ret; 2476 2476 enum cdns_torrent_ssc_mode ssc; ··· 3088 3088 {0x0113, XCVR_DIAG_PLLDRC_CTRL} 3089 3089 }; 3090 3090 3091 - static struct cdns_torrent_vals sgmii_qsgmii_link_cmn_vals = { 3091 + static const struct cdns_torrent_vals sgmii_qsgmii_link_cmn_vals = { 3092 3092 .reg_pairs = sgmii_qsgmii_link_cmn_regs, 3093 3093 .num_regs = ARRAY_SIZE(sgmii_qsgmii_link_cmn_regs), 3094 3094 }; 3095 3095 3096 - static struct cdns_torrent_vals sgmii_qsgmii_xcvr_diag_ln_vals = { 3096 + static const struct cdns_torrent_vals sgmii_qsgmii_xcvr_diag_ln_vals = { 3097 3097 .reg_pairs = sgmii_qsgmii_xcvr_diag_ln_regs, 3098 3098 .num_regs = ARRAY_SIZE(sgmii_qsgmii_xcvr_diag_ln_regs), 3099 3099 }; ··· 3171 3171 {0x0009, XCVR_DIAG_PLLDRC_CTRL} 3172 3172 }; 3173 3173 3174 - static struct cdns_torrent_vals usb_dp_link_cmn_vals = { 3174 + static const struct cdns_torrent_vals usb_dp_link_cmn_vals = { 3175 3175 .reg_pairs = usb_dp_link_cmn_regs, 3176 3176 .num_regs = ARRAY_SIZE(usb_dp_link_cmn_regs), 3177 3177 }; 3178 3178 3179 - static struct cdns_torrent_vals usb_dp_xcvr_diag_ln_vals = { 3179 + static const struct cdns_torrent_vals usb_dp_xcvr_diag_ln_vals = { 3180 3180 .reg_pairs = usb_dp_xcvr_diag_ln_regs, 3181 3181 .num_regs = ARRAY_SIZE(usb_dp_xcvr_diag_ln_regs), 3182 3182 }; 3183 3183 3184 - static struct cdns_torrent_vals dp_usb_xcvr_diag_ln_vals = { 3184 + static const struct cdns_torrent_vals dp_usb_xcvr_diag_ln_vals = { 3185 3185 .reg_pairs = dp_usb_xcvr_diag_ln_regs, 3186 3186 .num_regs = ARRAY_SIZE(dp_usb_xcvr_diag_ln_regs), 3187 3187 }; ··· 3205 3205 {0x0A9B, XCVR_DIAG_PLLDRC_CTRL} 3206 3206 }; 3207 3207 3208 - static struct cdns_torrent_vals usxgmii_sgmii_link_cmn_vals = { 3208 + static const struct cdns_torrent_vals usxgmii_sgmii_link_cmn_vals = { 3209 3209 .reg_pairs = usxgmii_sgmii_link_cmn_regs, 3210 3210 .num_regs = ARRAY_SIZE(usxgmii_sgmii_link_cmn_regs), 3211 3211 }; 3212 3212 3213 - static struct cdns_torrent_vals usxgmii_sgmii_xcvr_diag_ln_vals = { 3213 + static const struct cdns_torrent_vals usxgmii_sgmii_xcvr_diag_ln_vals = { 3214 3214 .reg_pairs = usxgmii_sgmii_xcvr_diag_ln_regs, 3215 3215 .num_regs = ARRAY_SIZE(usxgmii_sgmii_xcvr_diag_ln_regs), 3216 3216 }; 3217 3217 3218 - static struct cdns_torrent_vals sgmii_usxgmii_xcvr_diag_ln_vals = { 3218 + static const struct cdns_torrent_vals sgmii_usxgmii_xcvr_diag_ln_vals = { 3219 3219 .reg_pairs = sgmii_usxgmii_xcvr_diag_ln_regs, 3220 3220 .num_regs = ARRAY_SIZE(sgmii_usxgmii_xcvr_diag_ln_regs), 3221 3221 }; ··· 3233 3233 {0x0138, CMN_PLL0_LOCK_PLLCNT_START} 3234 3234 }; 3235 3235 3236 - static struct cdns_torrent_vals ml_usxgmii_pll0_156_25_no_ssc_cmn_vals = { 3236 + static const struct cdns_torrent_vals ml_usxgmii_pll0_156_25_no_ssc_cmn_vals = { 3237 3237 .reg_pairs = ml_usxgmii_pll0_156_25_no_ssc_cmn_regs, 3238 3238 .num_regs = ARRAY_SIZE(ml_usxgmii_pll0_156_25_no_ssc_cmn_regs), 3239 3239 }; ··· 3248 3248 {0x007F, CMN_TXPDCAL_TUNE} 3249 3249 }; 3250 3250 3251 - static struct cdns_torrent_vals ml_sgmii_pll1_100_no_ssc_cmn_vals = { 3251 + static const struct cdns_torrent_vals ml_sgmii_pll1_100_no_ssc_cmn_vals = { 3252 3252 .reg_pairs = ml_sgmii_pll1_100_no_ssc_cmn_regs, 3253 3253 .num_regs = ARRAY_SIZE(ml_sgmii_pll1_100_no_ssc_cmn_regs), 3254 3254 }; ··· 3280 3280 {0x0138, CMN_PLL0_LOCK_PLLCNT_START} 3281 3281 }; 3282 3282 3283 - static struct cdns_torrent_vals j7200_ml_usxgmii_pll0_156_25_no_ssc_cmn_vals = { 3283 + static const struct cdns_torrent_vals j7200_ml_usxgmii_pll0_156_25_no_ssc_cmn_vals = { 3284 3284 .reg_pairs = j7200_ml_usxgmii_pll0_156_25_no_ssc_cmn_regs, 3285 3285 .num_regs = ARRAY_SIZE(j7200_ml_usxgmii_pll0_156_25_no_ssc_cmn_regs), 3286 3286 }; ··· 3297 3297 {0x007F, CMN_TXPDCAL_TUNE} 3298 3298 }; 3299 3299 3300 - static struct cdns_torrent_vals j7200_ml_sgmii_pll1_100_no_ssc_cmn_vals = { 3300 + static const struct cdns_torrent_vals j7200_ml_sgmii_pll1_100_no_ssc_cmn_vals = { 3301 3301 .reg_pairs = j7200_ml_sgmii_pll1_100_no_ssc_cmn_regs, 3302 3302 .num_regs = ARRAY_SIZE(j7200_ml_sgmii_pll1_100_no_ssc_cmn_regs), 3303 3303 }; ··· 3322 3322 {0x0089, XCVR_DIAG_PLLDRC_CTRL} 3323 3323 }; 3324 3324 3325 - static struct cdns_torrent_vals pcie_usxgmii_link_cmn_vals = { 3325 + static const struct cdns_torrent_vals pcie_usxgmii_link_cmn_vals = { 3326 3326 .reg_pairs = pcie_usxgmii_link_cmn_regs, 3327 3327 .num_regs = ARRAY_SIZE(pcie_usxgmii_link_cmn_regs), 3328 3328 }; 3329 3329 3330 - static struct cdns_torrent_vals pcie_usxgmii_xcvr_diag_ln_vals = { 3330 + static const struct cdns_torrent_vals pcie_usxgmii_xcvr_diag_ln_vals = { 3331 3331 .reg_pairs = pcie_usxgmii_xcvr_diag_ln_regs, 3332 3332 .num_regs = ARRAY_SIZE(pcie_usxgmii_xcvr_diag_ln_regs), 3333 3333 }; 3334 3334 3335 - static struct cdns_torrent_vals usxgmii_pcie_xcvr_diag_ln_vals = { 3335 + static const struct cdns_torrent_vals usxgmii_pcie_xcvr_diag_ln_vals = { 3336 3336 .reg_pairs = usxgmii_pcie_xcvr_diag_ln_regs, 3337 3337 .num_regs = ARRAY_SIZE(usxgmii_pcie_xcvr_diag_ln_regs), 3338 3338 }; ··· 3381 3381 {0x018C, RX_CDRLF_CNFG} 3382 3382 }; 3383 3383 3384 - static struct cdns_torrent_vals ml_usxgmii_pll1_156_25_no_ssc_cmn_vals = { 3384 + static const struct cdns_torrent_vals ml_usxgmii_pll1_156_25_no_ssc_cmn_vals = { 3385 3385 .reg_pairs = ml_usxgmii_pll1_156_25_no_ssc_cmn_regs, 3386 3386 .num_regs = ARRAY_SIZE(ml_usxgmii_pll1_156_25_no_ssc_cmn_regs), 3387 3387 }; 3388 3388 3389 - static struct cdns_torrent_vals ml_usxgmii_156_25_no_ssc_tx_ln_vals = { 3389 + static const struct cdns_torrent_vals ml_usxgmii_156_25_no_ssc_tx_ln_vals = { 3390 3390 .reg_pairs = ml_usxgmii_156_25_no_ssc_tx_ln_regs, 3391 3391 .num_regs = ARRAY_SIZE(ml_usxgmii_156_25_no_ssc_tx_ln_regs), 3392 3392 }; 3393 3393 3394 - static struct cdns_torrent_vals ml_usxgmii_156_25_no_ssc_rx_ln_vals = { 3394 + static const struct cdns_torrent_vals ml_usxgmii_156_25_no_ssc_rx_ln_vals = { 3395 3395 .reg_pairs = ml_usxgmii_156_25_no_ssc_rx_ln_regs, 3396 3396 .num_regs = ARRAY_SIZE(ml_usxgmii_156_25_no_ssc_rx_ln_regs), 3397 3397 }; ··· 3401 3401 {0x0040, PHY_PMA_CMN_CTRL1}, 3402 3402 }; 3403 3403 3404 - static struct cdns_torrent_vals ti_usxgmii_phy_pma_cmn_vals = { 3404 + static const struct cdns_torrent_vals ti_usxgmii_phy_pma_cmn_vals = { 3405 3405 .reg_pairs = ti_usxgmii_phy_pma_cmn_regs, 3406 3406 .num_regs = ARRAY_SIZE(ti_usxgmii_phy_pma_cmn_regs), 3407 3407 }; ··· 3418 3418 {0x0001, XCVR_DIAG_PLLDRC_CTRL} 3419 3419 }; 3420 3420 3421 - static struct cdns_torrent_vals sl_usxgmii_link_cmn_vals = { 3421 + static const struct cdns_torrent_vals sl_usxgmii_link_cmn_vals = { 3422 3422 .reg_pairs = sl_usxgmii_link_cmn_regs, 3423 3423 .num_regs = ARRAY_SIZE(sl_usxgmii_link_cmn_regs), 3424 3424 }; 3425 3425 3426 - static struct cdns_torrent_vals sl_usxgmii_xcvr_diag_ln_vals = { 3426 + static const struct cdns_torrent_vals sl_usxgmii_xcvr_diag_ln_vals = { 3427 3427 .reg_pairs = sl_usxgmii_xcvr_diag_ln_regs, 3428 3428 .num_regs = ARRAY_SIZE(sl_usxgmii_xcvr_diag_ln_regs), 3429 3429 }; ··· 3498 3498 {0x018C, RX_CDRLF_CNFG} 3499 3499 }; 3500 3500 3501 - static struct cdns_torrent_vals sl_usxgmii_156_25_no_ssc_cmn_vals = { 3501 + static const struct cdns_torrent_vals sl_usxgmii_156_25_no_ssc_cmn_vals = { 3502 3502 .reg_pairs = sl_usxgmii_156_25_no_ssc_cmn_regs, 3503 3503 .num_regs = ARRAY_SIZE(sl_usxgmii_156_25_no_ssc_cmn_regs), 3504 3504 }; 3505 3505 3506 - static struct cdns_torrent_vals usxgmii_156_25_no_ssc_tx_ln_vals = { 3506 + static const struct cdns_torrent_vals usxgmii_156_25_no_ssc_tx_ln_vals = { 3507 3507 .reg_pairs = usxgmii_156_25_no_ssc_tx_ln_regs, 3508 3508 .num_regs = ARRAY_SIZE(usxgmii_156_25_no_ssc_tx_ln_regs), 3509 3509 }; 3510 3510 3511 - static struct cdns_torrent_vals usxgmii_156_25_no_ssc_rx_ln_vals = { 3511 + static const struct cdns_torrent_vals usxgmii_156_25_no_ssc_rx_ln_vals = { 3512 3512 .reg_pairs = usxgmii_156_25_no_ssc_rx_ln_regs, 3513 3513 .num_regs = ARRAY_SIZE(usxgmii_156_25_no_ssc_rx_ln_regs), 3514 3514 }; ··· 3531 3531 {0x0009, XCVR_DIAG_PLLDRC_CTRL} 3532 3532 }; 3533 3533 3534 - static struct cdns_torrent_vals pcie_dp_link_cmn_vals = { 3534 + static const struct cdns_torrent_vals pcie_dp_link_cmn_vals = { 3535 3535 .reg_pairs = pcie_dp_link_cmn_regs, 3536 3536 .num_regs = ARRAY_SIZE(pcie_dp_link_cmn_regs), 3537 3537 }; 3538 3538 3539 - static struct cdns_torrent_vals pcie_dp_xcvr_diag_ln_vals = { 3539 + static const struct cdns_torrent_vals pcie_dp_xcvr_diag_ln_vals = { 3540 3540 .reg_pairs = pcie_dp_xcvr_diag_ln_regs, 3541 3541 .num_regs = ARRAY_SIZE(pcie_dp_xcvr_diag_ln_regs), 3542 3542 }; 3543 3543 3544 - static struct cdns_torrent_vals dp_pcie_xcvr_diag_ln_vals = { 3544 + static const struct cdns_torrent_vals dp_pcie_xcvr_diag_ln_vals = { 3545 3545 .reg_pairs = dp_pcie_xcvr_diag_ln_regs, 3546 3546 .num_regs = ARRAY_SIZE(dp_pcie_xcvr_diag_ln_regs), 3547 3547 }; ··· 3569 3569 {0x0000, RX_REE_PERGCSM_CTRL} 3570 3570 }; 3571 3571 3572 - static struct cdns_torrent_vals dp_100_no_ssc_cmn_vals = { 3572 + static const struct cdns_torrent_vals dp_100_no_ssc_cmn_vals = { 3573 3573 .reg_pairs = dp_100_no_ssc_cmn_regs, 3574 3574 .num_regs = ARRAY_SIZE(dp_100_no_ssc_cmn_regs), 3575 3575 }; 3576 3576 3577 - static struct cdns_torrent_vals dp_100_no_ssc_tx_ln_vals = { 3577 + static const struct cdns_torrent_vals dp_100_no_ssc_tx_ln_vals = { 3578 3578 .reg_pairs = dp_100_no_ssc_tx_ln_regs, 3579 3579 .num_regs = ARRAY_SIZE(dp_100_no_ssc_tx_ln_regs), 3580 3580 }; 3581 3581 3582 - static struct cdns_torrent_vals dp_100_no_ssc_rx_ln_vals = { 3582 + static const struct cdns_torrent_vals dp_100_no_ssc_rx_ln_vals = { 3583 3583 .reg_pairs = dp_100_no_ssc_rx_ln_regs, 3584 3584 .num_regs = ARRAY_SIZE(dp_100_no_ssc_rx_ln_regs), 3585 3585 }; ··· 3594 3594 {0x0001, XCVR_DIAG_PLLDRC_CTRL} 3595 3595 }; 3596 3596 3597 - static struct cdns_torrent_vals sl_dp_link_cmn_vals = { 3597 + static const struct cdns_torrent_vals sl_dp_link_cmn_vals = { 3598 3598 .reg_pairs = sl_dp_link_cmn_regs, 3599 3599 .num_regs = ARRAY_SIZE(sl_dp_link_cmn_regs), 3600 3600 }; 3601 3601 3602 - static struct cdns_torrent_vals sl_dp_xcvr_diag_ln_vals = { 3602 + static const struct cdns_torrent_vals sl_dp_xcvr_diag_ln_vals = { 3603 3603 .reg_pairs = sl_dp_xcvr_diag_ln_regs, 3604 3604 .num_regs = ARRAY_SIZE(sl_dp_xcvr_diag_ln_regs), 3605 3605 }; ··· 3660 3660 {0x0000, RX_REE_PERGCSM_CTRL} 3661 3661 }; 3662 3662 3663 - static struct cdns_torrent_vals sl_dp_19_2_no_ssc_cmn_vals = { 3663 + static const struct cdns_torrent_vals sl_dp_19_2_no_ssc_cmn_vals = { 3664 3664 .reg_pairs = sl_dp_19_2_no_ssc_cmn_regs, 3665 3665 .num_regs = ARRAY_SIZE(sl_dp_19_2_no_ssc_cmn_regs), 3666 3666 }; 3667 3667 3668 - static struct cdns_torrent_vals sl_dp_19_2_no_ssc_tx_ln_vals = { 3668 + static const struct cdns_torrent_vals sl_dp_19_2_no_ssc_tx_ln_vals = { 3669 3669 .reg_pairs = sl_dp_19_2_no_ssc_tx_ln_regs, 3670 3670 .num_regs = ARRAY_SIZE(sl_dp_19_2_no_ssc_tx_ln_regs), 3671 3671 }; 3672 3672 3673 - static struct cdns_torrent_vals sl_dp_19_2_no_ssc_rx_ln_vals = { 3673 + static const struct cdns_torrent_vals sl_dp_19_2_no_ssc_rx_ln_vals = { 3674 3674 .reg_pairs = sl_dp_19_2_no_ssc_rx_ln_regs, 3675 3675 .num_regs = ARRAY_SIZE(sl_dp_19_2_no_ssc_rx_ln_regs), 3676 3676 }; ··· 3731 3731 {0x0000, RX_REE_PERGCSM_CTRL} 3732 3732 }; 3733 3733 3734 - static struct cdns_torrent_vals sl_dp_25_no_ssc_cmn_vals = { 3734 + static const struct cdns_torrent_vals sl_dp_25_no_ssc_cmn_vals = { 3735 3735 .reg_pairs = sl_dp_25_no_ssc_cmn_regs, 3736 3736 .num_regs = ARRAY_SIZE(sl_dp_25_no_ssc_cmn_regs), 3737 3737 }; 3738 3738 3739 - static struct cdns_torrent_vals sl_dp_25_no_ssc_tx_ln_vals = { 3739 + static const struct cdns_torrent_vals sl_dp_25_no_ssc_tx_ln_vals = { 3740 3740 .reg_pairs = sl_dp_25_no_ssc_tx_ln_regs, 3741 3741 .num_regs = ARRAY_SIZE(sl_dp_25_no_ssc_tx_ln_regs), 3742 3742 }; 3743 3743 3744 - static struct cdns_torrent_vals sl_dp_25_no_ssc_rx_ln_vals = { 3744 + static const struct cdns_torrent_vals sl_dp_25_no_ssc_rx_ln_vals = { 3745 3745 .reg_pairs = sl_dp_25_no_ssc_rx_ln_regs, 3746 3746 .num_regs = ARRAY_SIZE(sl_dp_25_no_ssc_rx_ln_regs), 3747 3747 }; ··· 3769 3769 {0x0000, RX_REE_PERGCSM_CTRL} 3770 3770 }; 3771 3771 3772 - static struct cdns_torrent_vals sl_dp_100_no_ssc_cmn_vals = { 3772 + static const struct cdns_torrent_vals sl_dp_100_no_ssc_cmn_vals = { 3773 3773 .reg_pairs = sl_dp_100_no_ssc_cmn_regs, 3774 3774 .num_regs = ARRAY_SIZE(sl_dp_100_no_ssc_cmn_regs), 3775 3775 }; 3776 3776 3777 - static struct cdns_torrent_vals sl_dp_100_no_ssc_tx_ln_vals = { 3777 + static const struct cdns_torrent_vals sl_dp_100_no_ssc_tx_ln_vals = { 3778 3778 .reg_pairs = sl_dp_100_no_ssc_tx_ln_regs, 3779 3779 .num_regs = ARRAY_SIZE(sl_dp_100_no_ssc_tx_ln_regs), 3780 3780 }; 3781 3781 3782 - static struct cdns_torrent_vals sl_dp_100_no_ssc_rx_ln_vals = { 3782 + static const struct cdns_torrent_vals sl_dp_100_no_ssc_rx_ln_vals = { 3783 3783 .reg_pairs = sl_dp_100_no_ssc_rx_ln_regs, 3784 3784 .num_regs = ARRAY_SIZE(sl_dp_100_no_ssc_rx_ln_regs), 3785 3785 }; ··· 3803 3803 {0x009B, XCVR_DIAG_PLLDRC_CTRL} 3804 3804 }; 3805 3805 3806 - static struct cdns_torrent_vals usb_sgmii_link_cmn_vals = { 3806 + static const struct cdns_torrent_vals usb_sgmii_link_cmn_vals = { 3807 3807 .reg_pairs = usb_sgmii_link_cmn_regs, 3808 3808 .num_regs = ARRAY_SIZE(usb_sgmii_link_cmn_regs), 3809 3809 }; 3810 3810 3811 - static struct cdns_torrent_vals usb_sgmii_xcvr_diag_ln_vals = { 3811 + static const struct cdns_torrent_vals usb_sgmii_xcvr_diag_ln_vals = { 3812 3812 .reg_pairs = usb_sgmii_xcvr_diag_ln_regs, 3813 3813 .num_regs = ARRAY_SIZE(usb_sgmii_xcvr_diag_ln_regs), 3814 3814 }; 3815 3815 3816 - static struct cdns_torrent_vals sgmii_usb_xcvr_diag_ln_vals = { 3816 + static const struct cdns_torrent_vals sgmii_usb_xcvr_diag_ln_vals = { 3817 3817 .reg_pairs = sgmii_usb_xcvr_diag_ln_regs, 3818 3818 .num_regs = ARRAY_SIZE(sgmii_usb_xcvr_diag_ln_regs), 3819 3819 }; ··· 3838 3838 {0x00C9, XCVR_DIAG_PLLDRC_CTRL} 3839 3839 }; 3840 3840 3841 - static struct cdns_torrent_vals pcie_usb_link_cmn_vals = { 3841 + static const struct cdns_torrent_vals pcie_usb_link_cmn_vals = { 3842 3842 .reg_pairs = pcie_usb_link_cmn_regs, 3843 3843 .num_regs = ARRAY_SIZE(pcie_usb_link_cmn_regs), 3844 3844 }; 3845 3845 3846 - static struct cdns_torrent_vals pcie_usb_xcvr_diag_ln_vals = { 3846 + static const struct cdns_torrent_vals pcie_usb_xcvr_diag_ln_vals = { 3847 3847 .reg_pairs = pcie_usb_xcvr_diag_ln_regs, 3848 3848 .num_regs = ARRAY_SIZE(pcie_usb_xcvr_diag_ln_regs), 3849 3849 }; 3850 3850 3851 - static struct cdns_torrent_vals usb_pcie_xcvr_diag_ln_vals = { 3851 + static const struct cdns_torrent_vals usb_pcie_xcvr_diag_ln_vals = { 3852 3852 .reg_pairs = usb_pcie_xcvr_diag_ln_regs, 3853 3853 .num_regs = ARRAY_SIZE(usb_pcie_xcvr_diag_ln_regs), 3854 3854 }; ··· 3907 3907 {0x007F, CMN_TXPDCAL_TUNE} 3908 3908 }; 3909 3909 3910 - static struct cdns_torrent_vals usb_100_int_ssc_cmn_vals = { 3910 + static const struct cdns_torrent_vals usb_100_int_ssc_cmn_vals = { 3911 3911 .reg_pairs = usb_100_int_ssc_cmn_regs, 3912 3912 .num_regs = ARRAY_SIZE(usb_100_int_ssc_cmn_regs), 3913 3913 }; ··· 3924 3924 {0x0041, XCVR_DIAG_PLLDRC_CTRL} 3925 3925 }; 3926 3926 3927 - static struct cdns_torrent_vals sl_usb_link_cmn_vals = { 3927 + static const struct cdns_torrent_vals sl_usb_link_cmn_vals = { 3928 3928 .reg_pairs = sl_usb_link_cmn_regs, 3929 3929 .num_regs = ARRAY_SIZE(sl_usb_link_cmn_regs), 3930 3930 }; 3931 3931 3932 - static struct cdns_torrent_vals sl_usb_xcvr_diag_ln_vals = { 3932 + static const struct cdns_torrent_vals sl_usb_xcvr_diag_ln_vals = { 3933 3933 .reg_pairs = sl_usb_xcvr_diag_ln_regs, 3934 3934 .num_regs = ARRAY_SIZE(sl_usb_xcvr_diag_ln_regs), 3935 3935 }; ··· 3941 3941 {0x0010, PHY_PIPE_USB3_GEN2_POST_CFG1} 3942 3942 }; 3943 3943 3944 - static struct cdns_torrent_vals usb_phy_pcs_cmn_vals = { 3944 + static const struct cdns_torrent_vals usb_phy_pcs_cmn_vals = { 3945 3945 .reg_pairs = usb_phy_pcs_cmn_regs, 3946 3946 .num_regs = ARRAY_SIZE(usb_phy_pcs_cmn_regs), 3947 3947 }; ··· 3957 3957 {0x8200, CMN_CDIAG_XCVRC_PWRI_OVRD} 3958 3958 }; 3959 3959 3960 - static struct cdns_torrent_vals sl_usb_100_no_ssc_cmn_vals = { 3960 + static const struct cdns_torrent_vals sl_usb_100_no_ssc_cmn_vals = { 3961 3961 .reg_pairs = sl_usb_100_no_ssc_cmn_regs, 3962 3962 .num_regs = ARRAY_SIZE(sl_usb_100_no_ssc_cmn_regs), 3963 3963 }; ··· 4002 4002 {0x0003, RX_CDRLF_CNFG3} 4003 4003 }; 4004 4004 4005 - static struct cdns_torrent_vals usb_100_no_ssc_cmn_vals = { 4005 + static const struct cdns_torrent_vals usb_100_no_ssc_cmn_vals = { 4006 4006 .reg_pairs = usb_100_no_ssc_cmn_regs, 4007 4007 .num_regs = ARRAY_SIZE(usb_100_no_ssc_cmn_regs), 4008 4008 }; 4009 4009 4010 - static struct cdns_torrent_vals usb_100_no_ssc_tx_ln_vals = { 4010 + static const struct cdns_torrent_vals usb_100_no_ssc_tx_ln_vals = { 4011 4011 .reg_pairs = usb_100_no_ssc_tx_ln_regs, 4012 4012 .num_regs = ARRAY_SIZE(usb_100_no_ssc_tx_ln_regs), 4013 4013 }; 4014 4014 4015 - static struct cdns_torrent_vals usb_100_no_ssc_rx_ln_vals = { 4015 + static const struct cdns_torrent_vals usb_100_no_ssc_rx_ln_vals = { 4016 4016 .reg_pairs = usb_100_no_ssc_rx_ln_regs, 4017 4017 .num_regs = ARRAY_SIZE(usb_100_no_ssc_rx_ln_regs), 4018 4018 }; ··· 4059 4059 {0x8200, CMN_CDIAG_XCVRC_PWRI_OVRD} 4060 4060 }; 4061 4061 4062 - static struct cdns_torrent_vals sl_usb_100_int_ssc_cmn_vals = { 4062 + static const struct cdns_torrent_vals sl_usb_100_int_ssc_cmn_vals = { 4063 4063 .reg_pairs = sl_usb_100_int_ssc_cmn_regs, 4064 4064 .num_regs = ARRAY_SIZE(sl_usb_100_int_ssc_cmn_regs), 4065 4065 }; ··· 4084 4084 {0x009B, XCVR_DIAG_PLLDRC_CTRL} 4085 4085 }; 4086 4086 4087 - static struct cdns_torrent_vals pcie_sgmii_link_cmn_vals = { 4087 + static const struct cdns_torrent_vals pcie_sgmii_link_cmn_vals = { 4088 4088 .reg_pairs = pcie_sgmii_link_cmn_regs, 4089 4089 .num_regs = ARRAY_SIZE(pcie_sgmii_link_cmn_regs), 4090 4090 }; 4091 4091 4092 - static struct cdns_torrent_vals pcie_sgmii_xcvr_diag_ln_vals = { 4092 + static const struct cdns_torrent_vals pcie_sgmii_xcvr_diag_ln_vals = { 4093 4093 .reg_pairs = pcie_sgmii_xcvr_diag_ln_regs, 4094 4094 .num_regs = ARRAY_SIZE(pcie_sgmii_xcvr_diag_ln_regs), 4095 4095 }; 4096 4096 4097 - static struct cdns_torrent_vals sgmii_pcie_xcvr_diag_ln_vals = { 4097 + static const struct cdns_torrent_vals sgmii_pcie_xcvr_diag_ln_vals = { 4098 4098 .reg_pairs = sgmii_pcie_xcvr_diag_ln_regs, 4099 4099 .num_regs = ARRAY_SIZE(sgmii_pcie_xcvr_diag_ln_regs), 4100 4100 }; ··· 4108 4108 {0x0003, CMN_PLL1_VCOCAL_TCTRL} 4109 4109 }; 4110 4110 4111 - static struct cdns_torrent_vals sl_sgmii_100_no_ssc_cmn_vals = { 4111 + static const struct cdns_torrent_vals sl_sgmii_100_no_ssc_cmn_vals = { 4112 4112 .reg_pairs = sl_sgmii_100_no_ssc_cmn_regs, 4113 4113 .num_regs = ARRAY_SIZE(sl_sgmii_100_no_ssc_cmn_regs), 4114 4114 }; ··· 4155 4155 {0x018C, RX_CDRLF_CNFG}, 4156 4156 }; 4157 4157 4158 - static struct cdns_torrent_vals sgmii_100_no_ssc_cmn_vals = { 4158 + static const struct cdns_torrent_vals sgmii_100_no_ssc_cmn_vals = { 4159 4159 .reg_pairs = sgmii_100_no_ssc_cmn_regs, 4160 4160 .num_regs = ARRAY_SIZE(sgmii_100_no_ssc_cmn_regs), 4161 4161 }; 4162 4162 4163 - static struct cdns_torrent_vals sgmii_100_no_ssc_tx_ln_vals = { 4163 + static const struct cdns_torrent_vals sgmii_100_no_ssc_tx_ln_vals = { 4164 4164 .reg_pairs = sgmii_100_no_ssc_tx_ln_regs, 4165 4165 .num_regs = ARRAY_SIZE(sgmii_100_no_ssc_tx_ln_regs), 4166 4166 }; 4167 4167 4168 - static struct cdns_torrent_vals ti_sgmii_100_no_ssc_tx_ln_vals = { 4168 + static const struct cdns_torrent_vals ti_sgmii_100_no_ssc_tx_ln_vals = { 4169 4169 .reg_pairs = ti_sgmii_100_no_ssc_tx_ln_regs, 4170 4170 .num_regs = ARRAY_SIZE(ti_sgmii_100_no_ssc_tx_ln_regs), 4171 4171 }; 4172 4172 4173 - static struct cdns_torrent_vals sgmii_100_no_ssc_rx_ln_vals = { 4173 + static const struct cdns_torrent_vals sgmii_100_no_ssc_rx_ln_vals = { 4174 4174 .reg_pairs = sgmii_100_no_ssc_rx_ln_regs, 4175 4175 .num_regs = ARRAY_SIZE(sgmii_100_no_ssc_rx_ln_regs), 4176 4176 }; ··· 4187 4187 {0x4000, XCVR_DIAG_RXCLK_CTRL} 4188 4188 }; 4189 4189 4190 - static struct cdns_torrent_vals j7200_sgmii_100_no_ssc_tx_ln_vals = { 4190 + static const struct cdns_torrent_vals j7200_sgmii_100_no_ssc_tx_ln_vals = { 4191 4191 .reg_pairs = j7200_sgmii_100_no_ssc_tx_ln_regs, 4192 4192 .num_regs = ARRAY_SIZE(j7200_sgmii_100_no_ssc_tx_ln_regs), 4193 4193 }; ··· 4214 4214 {0x018C, RX_CDRLF_CNFG} 4215 4215 }; 4216 4216 4217 - static struct cdns_torrent_vals j7200_sgmii_100_no_ssc_rx_ln_vals = { 4217 + static const struct cdns_torrent_vals j7200_sgmii_100_no_ssc_rx_ln_vals = { 4218 4218 .reg_pairs = j7200_sgmii_100_no_ssc_rx_ln_regs, 4219 4219 .num_regs = ARRAY_SIZE(j7200_sgmii_100_no_ssc_rx_ln_regs), 4220 4220 }; ··· 4271 4271 {0x007F, CMN_TXPDCAL_TUNE} 4272 4272 }; 4273 4273 4274 - static struct cdns_torrent_vals sgmii_100_int_ssc_cmn_vals = { 4274 + static const struct cdns_torrent_vals sgmii_100_int_ssc_cmn_vals = { 4275 4275 .reg_pairs = sgmii_100_int_ssc_cmn_regs, 4276 4276 .num_regs = ARRAY_SIZE(sgmii_100_int_ssc_cmn_regs), 4277 4277 }; ··· 4285 4285 {0x0003, CMN_PLL1_VCOCAL_TCTRL} 4286 4286 }; 4287 4287 4288 - static struct cdns_torrent_vals sl_qsgmii_100_no_ssc_cmn_vals = { 4288 + static const struct cdns_torrent_vals sl_qsgmii_100_no_ssc_cmn_vals = { 4289 4289 .reg_pairs = sl_qsgmii_100_no_ssc_cmn_regs, 4290 4290 .num_regs = ARRAY_SIZE(sl_qsgmii_100_no_ssc_cmn_regs), 4291 4291 }; ··· 4334 4334 {0x018C, RX_CDRLF_CNFG}, 4335 4335 }; 4336 4336 4337 - static struct cdns_torrent_vals qsgmii_100_no_ssc_cmn_vals = { 4337 + static const struct cdns_torrent_vals qsgmii_100_no_ssc_cmn_vals = { 4338 4338 .reg_pairs = qsgmii_100_no_ssc_cmn_regs, 4339 4339 .num_regs = ARRAY_SIZE(qsgmii_100_no_ssc_cmn_regs), 4340 4340 }; 4341 4341 4342 - static struct cdns_torrent_vals qsgmii_100_no_ssc_tx_ln_vals = { 4342 + static const struct cdns_torrent_vals qsgmii_100_no_ssc_tx_ln_vals = { 4343 4343 .reg_pairs = qsgmii_100_no_ssc_tx_ln_regs, 4344 4344 .num_regs = ARRAY_SIZE(qsgmii_100_no_ssc_tx_ln_regs), 4345 4345 }; 4346 4346 4347 - static struct cdns_torrent_vals ti_qsgmii_100_no_ssc_tx_ln_vals = { 4347 + static const struct cdns_torrent_vals ti_qsgmii_100_no_ssc_tx_ln_vals = { 4348 4348 .reg_pairs = ti_qsgmii_100_no_ssc_tx_ln_regs, 4349 4349 .num_regs = ARRAY_SIZE(ti_qsgmii_100_no_ssc_tx_ln_regs), 4350 4350 }; 4351 4351 4352 - static struct cdns_torrent_vals qsgmii_100_no_ssc_rx_ln_vals = { 4352 + static const struct cdns_torrent_vals qsgmii_100_no_ssc_rx_ln_vals = { 4353 4353 .reg_pairs = qsgmii_100_no_ssc_rx_ln_regs, 4354 4354 .num_regs = ARRAY_SIZE(qsgmii_100_no_ssc_rx_ln_regs), 4355 4355 }; ··· 4367 4367 {0x4000, XCVR_DIAG_RXCLK_CTRL} 4368 4368 }; 4369 4369 4370 - static struct cdns_torrent_vals j7200_qsgmii_100_no_ssc_tx_ln_vals = { 4370 + static const struct cdns_torrent_vals j7200_qsgmii_100_no_ssc_tx_ln_vals = { 4371 4371 .reg_pairs = j7200_qsgmii_100_no_ssc_tx_ln_regs, 4372 4372 .num_regs = ARRAY_SIZE(j7200_qsgmii_100_no_ssc_tx_ln_regs), 4373 4373 }; ··· 4394 4394 {0x018C, RX_CDRLF_CNFG} 4395 4395 }; 4396 4396 4397 - static struct cdns_torrent_vals j7200_qsgmii_100_no_ssc_rx_ln_vals = { 4397 + static const struct cdns_torrent_vals j7200_qsgmii_100_no_ssc_rx_ln_vals = { 4398 4398 .reg_pairs = j7200_qsgmii_100_no_ssc_rx_ln_regs, 4399 4399 .num_regs = ARRAY_SIZE(j7200_qsgmii_100_no_ssc_rx_ln_regs), 4400 4400 }; ··· 4451 4451 {0x007F, CMN_TXPDCAL_TUNE} 4452 4452 }; 4453 4453 4454 - static struct cdns_torrent_vals qsgmii_100_int_ssc_cmn_vals = { 4454 + static const struct cdns_torrent_vals qsgmii_100_int_ssc_cmn_vals = { 4455 4455 .reg_pairs = qsgmii_100_int_ssc_cmn_regs, 4456 4456 .num_regs = ARRAY_SIZE(qsgmii_100_int_ssc_cmn_regs), 4457 4457 }; ··· 4468 4468 {0x0013, XCVR_DIAG_PLLDRC_CTRL} 4469 4469 }; 4470 4470 4471 - static struct cdns_torrent_vals sl_sgmii_link_cmn_vals = { 4471 + static const struct cdns_torrent_vals sl_sgmii_link_cmn_vals = { 4472 4472 .reg_pairs = sl_sgmii_link_cmn_regs, 4473 4473 .num_regs = ARRAY_SIZE(sl_sgmii_link_cmn_regs), 4474 4474 }; 4475 4475 4476 - static struct cdns_torrent_vals sl_sgmii_xcvr_diag_ln_vals = { 4476 + static const struct cdns_torrent_vals sl_sgmii_xcvr_diag_ln_vals = { 4477 4477 .reg_pairs = sl_sgmii_xcvr_diag_ln_regs, 4478 4478 .num_regs = ARRAY_SIZE(sl_sgmii_xcvr_diag_ln_regs), 4479 4479 }; ··· 4528 4528 {0x0005, CMN_PLL1_LOCK_PLLCNT_THR} 4529 4529 }; 4530 4530 4531 - static struct cdns_torrent_vals pcie_100_int_ssc_cmn_vals = { 4531 + static const struct cdns_torrent_vals pcie_100_int_ssc_cmn_vals = { 4532 4532 .reg_pairs = pcie_100_int_ssc_cmn_regs, 4533 4533 .num_regs = ARRAY_SIZE(pcie_100_int_ssc_cmn_regs), 4534 4534 }; ··· 4583 4583 {0x0005, CMN_PLL1_LOCK_PLLCNT_THR} 4584 4584 }; 4585 4585 4586 - static struct cdns_torrent_vals sl_pcie_100_int_ssc_cmn_vals = { 4586 + static const struct cdns_torrent_vals sl_pcie_100_int_ssc_cmn_vals = { 4587 4587 .reg_pairs = sl_pcie_100_int_ssc_cmn_regs, 4588 4588 .num_regs = ARRAY_SIZE(sl_pcie_100_int_ssc_cmn_regs), 4589 4589 }; ··· 4601 4601 {0x0001, RX_DIAG_ACYA} 4602 4602 }; 4603 4603 4604 - static struct cdns_torrent_vals pcie_100_no_ssc_cmn_vals = { 4604 + static const struct cdns_torrent_vals pcie_100_no_ssc_cmn_vals = { 4605 4605 .reg_pairs = pcie_100_ext_no_ssc_cmn_regs, 4606 4606 .num_regs = ARRAY_SIZE(pcie_100_ext_no_ssc_cmn_regs), 4607 4607 }; 4608 4608 4609 - static struct cdns_torrent_vals pcie_100_no_ssc_rx_ln_vals = { 4609 + static const struct cdns_torrent_vals pcie_100_no_ssc_rx_ln_vals = { 4610 4610 .reg_pairs = pcie_100_ext_no_ssc_rx_ln_regs, 4611 4611 .num_regs = ARRAY_SIZE(pcie_100_ext_no_ssc_rx_ln_regs), 4612 4612 };