lkml.org 
[lkml]   [2013]   [Jun]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] sata highbank: add bit-banged SGPIO driver support
Hello,

On Wed, Jun 05, 2013 at 05:31:48PM -0500, Mark Langsdorf wrote:
> +static void ecx_parse_sgpio(struct ecx_plat_data *pdata, u32 port, u32 state)
> +{
> + if (state & ECX_ACTIVITY_BITS)
> + pdata->sgpio_pattern |= sgpio_bit_shift(pdata, port,
> + ECX_ACTIVITY_SHIFT);
> + else
> + pdata->sgpio_pattern &= sgpio_bit_shift(pdata, port,
> + ECX_ACTIVITY_SHIFT);

Shouldn't it be "&= ~" instead of "&="? You're trying to turn the bit
off, right?

Looks okay to me otherwise.

Thanks.

--
tejun


\
 
 \ /
  Last update: 2013-06-06 02:01    [W:0.063 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site