Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp4100836ybi; Mon, 3 Jun 2019 05:48:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzqI58LqswNhERSWP88WWJBa3gIQDsthEmh+h08xt/BwaAQC6EbfGn4LM2ZWAkyty+dHfvm X-Received: by 2002:aa7:81cc:: with SMTP id c12mr24096512pfn.139.1559566117464; Mon, 03 Jun 2019 05:48:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559566117; cv=none; d=google.com; s=arc-20160816; b=nfxEAdy8+dAWTvfA0U5cvxvks3606zM6PhtTZ5Uky8cq5JC04Yl7/qaSO9Txevvdw2 GsUc6EkI9UMora+ApYDuouE7Wzt/0Zv3Rjee4qjAiSWxPjVuRQN2gI6j0TOaGjtRu/U7 qnxb0Ckg4YLuiGwRg/zWy2oTB7pglQgcS6Kou+mfnc8B4VO8qwSh83ZNujQhVcMVwpg5 2RS7QNLbvJfW9hIdvtjEthK+Q3n8ZZzMw8EHJrj3Nsa+h22f74hnPY3TpBdqxl1lMCHN 2uFCjgyEiKz99NzHo3uznQcilQer1olxgJieuKdQ7LwL6dtJIa3E6N+MdbAdjYyW4IBR f3MQ== 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:dkim-signature; bh=Et6nrjAK7Pqph5akQJ3YiHQPpWtwaiEJXjZlHEdDEP4=; b=OHimnsBAnUz7ML7AAuQ3eye5UgQHFtBgE0d3TgGAvfsx9z+W3AfGeN87LQIVJl8pqQ e1X/T9pwTzWknZXfIXxK/ZMgZSIkbpD7K8kQ6WEqoA9KDlybotMg36aCWPeDUgPsLSAB a/M41awQrC4os6DVob3WSL7rh2uGAMHNq1TXYIciDQyJeCsY2R8MFLCKCRRb7U7bKu7g 1eUtYM7mhfT+jctBRMoH3jDMvv6fHocPWfnsaIVTOaSaFsIBHjZY4kda3qRaEydEeHdf a/S9Dg+fKY0WXX4h84pxZLuqxAiQByC1RfVw/utm9NWPMsZv5zD1jvWzm2BpgpitvGDS glsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=gW9uSA7X; 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 h34si20039899pld.187.2019.06.03.05.48.21; Mon, 03 Jun 2019 05:48:37 -0700 (PDT) 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; dkim=fail header.i=@lunn.ch header.s=20171124 header.b=gW9uSA7X; 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 S1727845AbfFCMp4 (ORCPT + 99 others); Mon, 3 Jun 2019 08:45:56 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:50224 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726336AbfFCMp4 (ORCPT ); Mon, 3 Jun 2019 08:45:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Et6nrjAK7Pqph5akQJ3YiHQPpWtwaiEJXjZlHEdDEP4=; b=gW9uSA7XvajprKdkIRQxIPUk42 6+PQrULX23WSBY0OqId4B9o/oV3KgvYUTUgxCmVxpdTwu+e+refM9CA0pcHKvwyIHWl3Jv3RJDG8B vfSseczgeD1adnOB+pfIT5hi+f9uJc3y/EHm+HKuEgcDVrKr1gbSAzvosuVL6pZdoZGk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1hXmLY-0004ki-88; Mon, 03 Jun 2019 14:45:52 +0200 Date: Mon, 3 Jun 2019 14:45:52 +0200 From: Andrew Lunn To: Rasmus Villemoes Cc: Vivien Didelot , Florian Fainelli , "David S. Miller" , Rasmus Villemoes , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH v2 5/5] net: dsa: add support for mv88e6250 Message-ID: <20190603124552.GC17267@lunn.ch> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> <20190524085921.11108-1-rasmus.villemoes@prevas.dk> <20190524085921.11108-6-rasmus.villemoes@prevas.dk> <20190524142728.GL2979@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 03, 2019 at 08:52:38AM +0000, Rasmus Villemoes wrote: > On 24/05/2019 16.27, Andrew Lunn wrote: > >> @@ -4841,6 +4910,10 @@ static const struct of_device_id mv88e6xxx_of_match[] = { > >> .compatible = "marvell,mv88e6190", > >> .data = &mv88e6xxx_table[MV88E6190], > >> }, > >> + { > >> + .compatible = "marvell,mv88e6250", > >> + .data = &mv88e6xxx_table[MV88E6250], > >> + }, > >> { /* sentinel */ }, > >> }; > > > > Ah, yes. I had not thought about that. A device at address 0 would be > > found, but a device at address 16 would be missed. > > Eh, no? The port registers are at offset 0x8, i.e. at either SMI address > 8 or 24, so I don't think a 6250 at address 0 could be detected using > either of the existing families? Even better. The real problem is, people keep trying to add new compatible strings here when they should not. The compatible string is about being able to read the ID registers, not to list every single switch chip family. This is one case where it really is needed, and i had not thought about that. Andrew