From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Mike Frysinger" Subject: Re: [PATCH take #5] [libata] libata driver for bf548 on chip ATAPI controller. Date: Thu, 16 Aug 2007 12:27:05 -0400 Message-ID: <8bd0f97a0708160927s625fd5ax84cd6d12a693d9ad@mail.gmail.com> References: <1187169256.31383.3.camel@sevens.analog.com> <46C3F6FB.2070909@garzik.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from rv-out-0910.google.com ([209.85.198.184]:13279 "EHLO rv-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765838AbXHPQ1G (ORCPT ); Thu, 16 Aug 2007 12:27:06 -0400 Received: by rv-out-0910.google.com with SMTP id k20so243008rvb for ; Thu, 16 Aug 2007 09:27:05 -0700 (PDT) In-Reply-To: <46C3F6FB.2070909@garzik.org> Content-Disposition: inline Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Jeff Garzik Cc: Sonic Zhang , Linux IDE , Linux Kernel , Bryan Wu On 8/16/07, Jeff Garzik wrote: > Sonic Zhang wrote: > > +static void bfin_set_piomode(struct ata_port *ap, struct ata_device *adev) > > +{ > > + int mode = adev->pio_mode - XFER_PIO_0; > > + unsigned long base = (unsigned long)ap->ioaddr.ctl_addr; > > > (added Bryan Wu to CC) > > Someone needs to need fix the bfin architecture: the addresses on the > bfin_read/bfin_write functions should be 'void __iomem *' not unsigned long. there are no address pointers anymore, so there is nothing to cast ... the bfin_read/bfin_write macros are done in sexy asm: #define bfin_write8(addr,val) __asm__ __volatile__("b[%0] = %1;" :: "a"(addr), "d"(val)) or i'm misunderstanding what you mean ... where do you see (unsigned long) ? -mike