Received: by 10.223.185.116 with SMTP id b49csp8797016wrg; Fri, 2 Mar 2018 08:06:51 -0800 (PST) X-Google-Smtp-Source: AG47ELskLaBOKE737o2q39BamIs5bpK+dyadowT35Lb7PLabBvvPX3Fr2qp0m62BT7jsOHHE1/jR X-Received: by 10.98.192.74 with SMTP id x71mr6064546pff.21.1520006810960; Fri, 02 Mar 2018 08:06:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520006810; cv=none; d=google.com; s=arc-20160816; b=PZWp7+PWmWKHr/SJqeNnqn+WpgGa9uI4nKehpilWFL40BTXKVqe+LhSPMkHKAlx9il Di7g809353o5XrvUpURvpYstIKgs2l3R8cBEnqRdjAdgvbhv870aQfVQVwGxYB56m0qV voUncP0af0s+6KnEvQBdrO/n8o0QJA77yzuV4poswFSzK7HBv7VugGbWOzgRFmmJNRpR m3vSd7uLTLdnf4xAAVKcFtTYm0A1RZrpwh8rkxhvhPcBr5iU7gt/yw1p8ja1ePtR0ppW jsN6V80iuy49u10EkD2n6iOVG0zsd6UmuVAuRDinZJt9bRwkpVefUlH7GgBo9Cb13wc1 wzTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=BzWm12dvSvHORWuflEx9u7lXSVNhPSjVEsY9UIOOFuU=; b=eVsgb8q9U72hGlvNUEmUulVrjkjr7jQh774Bpf3FGDhxy9/o4wV4g/vUbh8s26klOR hDtzWZ+sCR19Dy78BCmQEuwoqog/vEyb+rgGtfQFfl9He3+1obMmjtkrwec9wZHSBc8o OCkMxuNz1plO1cQUOKe/If/qsXA98TPf3evGv7rzIZsd1XWE2yEnHtA2jCrpXFih/2AG Y+sYl0hml01wEpKwIY6A66sVZXc1XmyxYUT3PE9j9muHzWVD9SR/JKVPcbGvHZW+HmK/ ZQc8VK5Sqg7wkgPJVRzd3BDZyZhW1cgckomnLSlLPmQLwuq3qnZCmelK0gUOCaopkTio wtxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z96-v6si4924604plh.35.2018.03.02.08.06.29; Fri, 02 Mar 2018 08:06:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1427325AbeCBPWa (ORCPT + 99 others); Fri, 2 Mar 2018 10:22:30 -0500 Received: from mail.bootlin.com ([62.4.15.54]:35571 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1427279AbeCBPW0 (ORCPT ); Fri, 2 Mar 2018 10:22:26 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id AC54E2037F; Fri, 2 Mar 2018 16:22:23 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.free-electrons.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (242.171.71.37.rev.sfr.net [37.71.171.242]) by mail.bootlin.com (Postfix) with ESMTPSA id 63C3220146; Fri, 2 Mar 2018 16:22:23 +0100 (CET) Date: Fri, 2 Mar 2018 16:22:24 +0100 From: Alexandre Belloni To: James Hogan Cc: Paul Burton , Ralf Baechle , linux-mips@linux-mips.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/13] MIPS: mscc: Add initial support for Microsemi MIPS SoCs Message-ID: <20180302152224.GD1479@piout.net> References: <20171128152643.20463-1-alexandre.belloni@free-electrons.com> <20171128152643.20463-10-alexandre.belloni@free-electrons.com> <20171128160137.GF27409@jhogan-linux.mipstec.com> <20171128165359.GJ21126@piout.net> <20171128173151.GD5027@jhogan-linux.mipstec.com> <20171128195002.dcq7i2wqmstkn3rr@pburton-laptop> <20171129163819.GN21126@piout.net> <20180117235846.GA25314@saruman> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180117235846.GA25314@saruman> User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 17/01/2018 at 23:58:47 +0000, James Hogan wrote: > Poking at random I/O always feels a bit risky. > > Some safety checked environment checking (Paul says modetty0 should > always be in there for YAMON) might work. > > Does Ocelot have a read-only ID register with a specific value? We'd > have to add prioritisation of the legacy board detection to rely on > that. > There is an ID register at 0x71070000. > If all else fails, we could still make them mutually exclusive, > something roughly like below would work but its a bit clumsy as all the > ocelot config options would still get enabled when sead3 is enabled, > even though some of the drivers may not be useful. The detection & > co-existence can always be improved later. What do you think? > I now have something working based on what you suggested. I'm cleaning that up and I'll resubmit soon. -- Alexandre Belloni, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com