From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [PATCH 2/2] sata highbank: add bit-banged SGPIO driver support Date: Wed, 5 Jun 2013 16:15:17 -0700 Message-ID: <20130605231517.GP10693@mtj.dyndns.org> References: <1369945051-2582-2-git-send-email-mark.langsdorf@calxeda.com> <1370471508-30806-1-git-send-email-mark.langsdorf@calxeda.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1370471508-30806-1-git-send-email-mark.langsdorf@calxeda.com> Sender: linux-ide-owner@vger.kernel.org To: Mark Langsdorf Cc: linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org, grant.likely@linaro.org, rob.herring@calxeda.com, devicetree-discuss@lists.ozlabs.org List-Id: devicetree@vger.kernel.org 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