Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1651987

Re: [PATCH v2 24/27] thunderbolt: Add support for Internal Connection Manager (ICM)

From Andy Shevchenko <andy.shevchenko@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v2 24/27] thunderbolt: Add support for Internal Connection Manager (ICM)
Date 2017-05-27 22:50 +0200
Message-ID <tLQOS-xo-29@gated-at.bofh.it> (permalink)
References <tLq81-87A-5@gated-at.bofh.it> <tLq83-87A-65@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Fri, May 26, 2017 at 7:09 PM, Mika Westerberg
<mika.westerberg@linux.intel.com> wrote:

> +static inline u8 dual_link_from_link(u8 link)
> +{
> +       return link ? ((link - 1) ^ 0x01) + 1 : 0;
> +}

I have got better one (IIUC):

      return (link + 1) ^ 0x01) - 1;

-- 
With Best Regards,
Andy Shevchenko

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2 00/27] Thunderbolt security levels and NVM firmware upgrade Mika Westerberg <mika.westerberg@linux.intel.com> - 2017-05-26 18:20 +0200
  Re: [PATCH v2 24/27] thunderbolt: Add support for Internal Connection  Manager (ICM) Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-27 22:50 +0200
    Re: [PATCH v2 24/27] thunderbolt: Add support for Internal  Connection Manager (ICM) Mika Westerberg <mika.westerberg@linux.intel.com> - 2017-05-28 11:20 +0200
      Re: [PATCH v2 24/27] thunderbolt: Add support for Internal Connection  Manager (ICM) Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-28 12:20 +0200

csiph-web