Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752966AbbDBXus (ORCPT ); Thu, 2 Apr 2015 19:50:48 -0400 Received: from mail-by2on0134.outbound.protection.outlook.com ([207.46.100.134]:43072 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751916AbbDBXur (ORCPT ); Thu, 2 Apr 2015 19:50:47 -0400 Message-ID: <1428018637.22867.306.camel@freescale.com> Subject: Re: [PATCH] powerpc/83xx: add support for mpc8306 From: Scott Wood To: Filip =?UTF-8?Q?Brozovi=C4=87?= CC: , , , Date: Thu, 2 Apr 2015 18:50:37 -0500 In-Reply-To: <551AFC7E.8090108@gmail.com> References: <1427561968-32049-1-git-send-email-fbrozovic@gmail.com> <1427824493.22867.226.camel@freescale.com> <551AFC7E.8090108@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Originating-IP: [2601:2:5800:3f7:12bf:48ff:fe84:c9a0] X-ClientProxiedBy: BY2PR08CA060.namprd08.prod.outlook.com (10.141.248.178) To BLUPR03MB1474.namprd03.prod.outlook.com (25.163.81.16) Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none; X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1474; X-Microsoft-Antispam-PRVS: X-Forefront-Antispam-Report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(377454003)(377424004)(24454002)(51704005)(479174004)(110136001)(76176999)(50986999)(2950100001)(42186005)(23676002)(36756003)(33646002)(50466002)(92566002)(122386002)(40100003)(46102003)(103116003)(47776003)(62966003)(77156002)(1411001)(5820100001)(86362001)(87976001)(50226001)(3826002);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB1474;H:[IPv6:2601:2:5800:3f7:12bf:48ff:fe84:c9a0];FPR:;SPF:None;MLV:sfv;LANG:en; X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(5002010);SRVR:BLUPR03MB1474;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB1474; X-Forefront-PRVS: 0534947130 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2015 23:50:43.7545 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB1474 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 24 On Tue, 2015-03-31 at 21:58 +0200, Filip Brozović wrote: > On 3/31/2015 7:54 PM, Scott Wood wrote: > > This breaks multiplatform support. You need to determine this at > > runtime. > > Understood, but I'm unsure of how to do this exactly. Would it be > appropriate to define another array, snum_init_14, with the SNUM values > for the MPC8306 QE, change the minimum number of SNUMs in > qe_get_num_of_snums() to 14 and set the correct values this way? In that > case, compatibility with other platforms would be kept intact, and the > QE device tree node for MPC8306 (and MPC8309) boards would just have to > have the fsl,qe-num-snums property set to 14 in order for the driver to > set the correct values. Yes. -Scott -- 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/