Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965630Ab2JYQBP (ORCPT ); Thu, 25 Oct 2012 12:01:15 -0400 Received: from mail.free-electrons.com ([88.190.12.23]:36565 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932678Ab2JYQBO (ORCPT ); Thu, 25 Oct 2012 12:01:14 -0400 Message-ID: <50896234.1080201@free-electrons.com> Date: Thu, 25 Oct 2012 18:00:52 +0200 From: Gregory CLEMENT User-Agent: Mozilla/5.0 (X11; Linux i686; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: Rob Herring CC: Lior Amsalem , Andrew Lunn , Ike Pan , Nadav Haklai , Ian Molton , David Marlin , Yehuda Yitschak , Jani Monoses , Tawfik Bayouk , Dan Frazier , Eran Ben-Avi , Leif Lindholm , Sebastian Hesselbarth , Jason Cooper , Arnd Bergmann , Jon Masters , Ben Dooks , linux-arm-kernel@lists.infradead.org, Thomas Petazzoni , Chris Van Hoof , Nicolas Pitre , linux-kernel@vger.kernel.org, Maen Suleiman , Shadi Ammouri , Olof Johansson Subject: Re: [PATCH 2/2] arm: mvebu: adding SATA support: dt binding and config update References: <1351086561-13569-1-git-send-email-gregory.clement@free-electrons.com> <1351086561-13569-3-git-send-email-gregory.clement@free-electrons.com> <20121024160139.6dbf5e16@skate> <5087F5B9.0@free-electrons.com> <20121025131818.GF18811@titan.lakedaemon.net> <20121025152114.73e69c92@skate> <50893FC8.1050503@free-electrons.com> <50894534.2000602@gmail.com> In-Reply-To: <50894534.2000602@gmail.com> X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2565 Lines: 71 On 10/25/2012 03:57 PM, Rob Herring wrote: > On 10/25/2012 08:34 AM, Gregory CLEMENT wrote: >> On 10/25/2012 03:21 PM, Thomas Petazzoni wrote: >>> Jason, >>> >>> On Thu, 25 Oct 2012 09:18:18 -0400, Jason Cooper wrote: >>> >>>>> Jason, Andrew, do you want I split this patch as suggested by >>>>> Thomas or are you fine with having one single patch? >>>> >>>> Yes, please make the defconfig changes a separate patch. Also, please >>>> make sure only the minimum is enabled (eq RAID... isn't needed). >>> >>> I haven't looked in details at the driver, but is nr-ports = the >>> right way of doing things? We may have platforms were port 0 is not >>> used, but port 1 is used, and just a number of ports doesn't allow to >>> express this. >>> >>> Shouldn't the DT property be >>> >>> ports = <0>, <1> >>> ports = <1> >>> ports = <1>, <3> >>> >>> In order to allow to more precisely enabled SATA ports? Or maybe the >>> SATA ports cannot be enabled/disabled on a per-port basis, in which >>> case I'm obviously wrong here. >> >> The actual implementation of mv_sata.c doesn't work like this. You can >> only pass the number of ports supported not the list of the port you >> want to support. I've checked in the device tree binding documentation >> _and_ also in the code. > > Is that a statement about the driver or the h/w? It does not matter what > the driver does. If the h/w can support skipping a port, then the dts > should allow that. Indeed I didn't see anything in the datasheet which would prevent to use only port 2. I agree to add this feature if needed, but currently there is no Marvell based board whith this kind of configuration. Can we keep this series as a simple series to enable SATA on Armada 370/XP, and prepare an other series for this new feature? > > A bitmask would be most appropriate here (and matches how AHCI does the > equivalent). I didn't see any bitmask for AHCI, just an optional list of phandle on combophy. > > Rob > > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > -- Gregory Clement, Free Electrons Kernel, drivers, real-time and embedded Linux development, consulting, training and support. http://free-electrons.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/