> +     /** Complete DPI init is done at firmware level. */
> +     /*cn23xx_set_dpi_regs(oct);*/
Should be removed?

> +int cn23xx_fw_lock(struct octeon_device *oct)
> +{
> +     dev_dbg(&oct->pci_dev->dev, "%s : PF = %d\n", __func__, oct-
> >pf_num);
> +     return 0;
> +}
> +
> +int cn23xx_fw_unlock(struct octeon_device *oct)
> +{
> +     dev_dbg(&oct->pci_dev->dev, "%s : PF = %d\n", __func__, oct-
> >pf_num);
> +     return 0;
> +}
A bit odd that you have lock/unlock functions that only print.
Are you later extending them?

> +             if (!(OCTEON_CN23XX_PF(oct)) ||
> +                 (OCTEON_CN23XX_PF(oct) && (oct->octeon_id == 0)))
Can simply be
                If (!(OCTEON_CN23XX_PF(oct) || !oct->octeon_id)

> +             if (!cn23xx_fw_loaded(octeon_dev)) {
> +                     fw_loaded = 0;
> +                     /* Do a soft reset of the Octeon device. */
I can never remember - are empty lines prior to comments
nice-to-have or a style requirement?

> +                     }
> +                     /*Lock again soft reset equivalent to unlock */
Likewise

> +     if ((!OCTEON_CN23XX_PF(octeon_dev)) ||
> +         (OCTEON_CN23XX_PF(octeon_dev) && !fw_loaded)) {
        If (!A || (A && !B)) == (!A || !B)

> +             if (ddr_timeout == 0) {
        If (!ddr_timeout)

> +             while (ddr_timeout == 0) {
Likewise

> +             if (octeon_wait_for_bootloader(octeon_dev, 1000) != 0) {
No need for `!= 0`

Reply via email to