From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ch1outboundpool.messaging.microsoft.com (ch1ehsobe004.messaging.microsoft.com [216.32.181.184]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client CN "mail.global.frontbridge.com", Issuer "Microsoft Secure Server Authority" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 92401B6EE8 for ; Tue, 8 Nov 2011 05:42:12 +1100 (EST) Message-ID: <4EB82657.4090204@freescale.com> Date: Mon, 7 Nov 2011 12:41:27 -0600 From: Scott Wood MIME-Version: 1.0 To: Tabi Timur-B04825 Subject: Re: [PATCH 6/7] fsl_pmc: Add API to enable device as wakeup event source References: <1320410349-14600-1-git-send-email-chenhui.zhao@freescale.com> In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Cc: "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Li Yang-R58472 , Zhao Chenhui-B35336 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 11/04/2011 07:08 PM, Tabi Timur-B04825 wrote: > On Fri, Nov 4, 2011 at 7:39 AM, Zhao Chenhui wrote: >> + /* clear to enable clock in low power mode */ >> + if (enable) >> + clrbits32(&pmc_regs->pmcdr, *pmcdr_mask); >> + else >> + setbits32(&pmc_regs->pmcdr, *pmcdr_mask); > > You need to use be32_to_cpup() when dereferencing a pointer to a > device tree property. Or just use of_property_read_u32(). -Scott