From: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= Subject: Re: [PATCH 1/3] ata: sata_dwc_460ex: use "dmas" DT property to find dma channel Date: Fri, 08 Jan 2016 10:57:44 +0000 Message-ID: References: <1450221935-6034-1-git-send-email-mans@mansr.com> <5675BB2F.6060107@candw.ms> <5675C452.2080206@candw.ms> <5676E906.1060603@candw.ms> <1450724880.30729.250.camel@linux.intel.com> <1450731289.30729.282.camel@linux.intel.com> <1450781890.30729.298.camel@linux.intel.com> <1452159294.30729.405.camel@linux.intel.com> <1452243464.30729.430.camel@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Received: from unicorn.mansr.com ([81.2.72.234]:42898 "EHLO unicorn.mansr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752795AbcAHK5w (ORCPT ); Fri, 8 Jan 2016 05:57:52 -0500 In-Reply-To: <1452243464.30729.430.camel@linux.intel.com> (Andy Shevchenko's message of "Fri, 08 Jan 2016 10:57:44 +0200") Sender: linux-ide-owner@vger.kernel.org List-Id: linux-ide@vger.kernel.org To: Andy Shevchenko Cc: Andy Shevchenko , Julian Margetson , Tejun Heo , linux-ide@vger.kernel.org, "linux-kernel@vger.kernel.org" Andy Shevchenko writes: > On Thu, 2016-01-07 at 18:32 +0000, M=C3=A5ns Rullg=C3=A5rd wrote: > >> Andy Shevchenko writes: >>=20 >> > On Wed, 2016-01-06 at 19:36 +0200, Andy Shevchenko wrote: >> > >=C2=A0 >> > So, M=C3=A5ns, Julian, I just have published my repository contain= ing >> > M=C3=A5ns' and my patches regarding dw_dmac and sata_dwc_460ex dri= vers >> > here >> >=20 >> > https://bitbucket.org/andy-shev/linux/branch/topic%2Fdw%2Fnext >>=20 >> I've picked out the relevant changes from your branch and made some >> additional improvements.=C2=A0=C2=A0A few notes: >>=20 >> - The __be32/__le32 typedefs for the DMA descriptor fields are neces= sary >> =C2=A0 to avoid a million sparse warnings (and sparse is correct to = warn). > > Hmm=E2=80=A6 Which version of sparse are you using? I always run buil= ds with > sparse enabled and didn't see anything. You need to enable endian checking with CF=3D-D__CHECK_ENDIAN__ >> - Using #ifdef CONFIG_AVR32 is a step back, IMO, since this driver m= ay >> =C2=A0 well be used on another big endian system some day.=C2=A0=C2=A0= The Kconfig logic >> =C2=A0 for selecting this option could perhaps be improved though. > > Maybe runtime chosen accessors will be better than ifdefs? Are there any systems that could otherwise run the same kernel that use this hardware with different byte order? I doubt it. > I don't like the Kconfig option which limits application of the > (compiled) driver. It's no more limited than a hard #ifdef AVR32 in the driver code. --=20 M=C3=A5ns Rullg=C3=A5rd