On Tue, Jan 29, 2019 at 06:01:18PM +0300, Mika Westerberg wrote:
> +     if (enable)
> +             value |= BIT(20);

Can we have a macro for this bit?


> +int tb_port_find_cap(struct tb_port *port, enum tb_port_cap cap)
> +{
> +     int ret;
> +
> +     ret = tb_port_enable_tmu(port, true);
> +     if (ret)
> +             return ret;
> +
> +     ret = __tb_port_find_cap(port, cap);
> +
> +     tb_port_enable_tmu(port, false);
> +
> +     return ret;
> +}

Would there be a downside to setting the TMU bit on all ports all the time
(e.g. on switch enumeration)?

Thanks,

Lukas

Reply via email to