From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: question about arch/powerpc/platforms/cell/celleb_scc_uhc.c From: Joe Perches To: Julia Lawall In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Date: Wed, 01 Sep 2010 09:02:30 -0700 Message-ID: <1283356950.1797.159.camel@Joe-Laptop> Mime-Version: 1.0 Cc: cbe-oss-dev@lists.ozlabs.org, Paul Mackerras , linuxppc-dev@lists.ozlabs.org, Arnd Bergmann List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2010-09-01 at 17:51 +0200, Julia Lawall wrote: > The file arch/powerpc/platforms/cell/celleb_scc_uhc.c contains the > following function: > static inline int uhc_clkctrl_ready(u32 val) > { > const u32 mask = SCC_UHC_USBCEN | SCC_UHC_USBCEN; > return((val & mask) == mask); > } > The variable mask is a bit or of two identical constants. Later in the > same file in the function enable_scc_uhc, I see the code: > val |= (SCC_UHC_USBCEN | SCC_UHC_USBEN); > Should the code in uhc_clkctrl_ready also be SCC_UHC_USBCEN | SCC_UHC_USBEN? > Or something else? Thanks Julia. This was also noticed a couple of years ago and not applied http://lkml.indiana.edu/hypermail/linux/kernel/0808.2/1428.html One day...