From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1427327AbeCBPWa (ORCPT ); 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 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 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