Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754947AbdIHOMb (ORCPT ); Fri, 8 Sep 2017 10:12:31 -0400 Received: from vps0.lunn.ch ([178.209.37.122]:33058 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752089AbdIHOM3 (ORCPT ); Fri, 8 Sep 2017 10:12:29 -0400 Date: Fri, 8 Sep 2017 16:12:25 +0200 From: Andrew Lunn To: Maxim Uvarov Cc: Tristram.Ha@microchip.com, Pavel Machek , Nathan Conrad , Vivien Didelot , Florian Fainelli , netdev , linux-kernel@vger.kernel.org, Woojung.Huh@microchip.com Subject: Re: [PATCH RFC] Update documentation for KSZ DSA drivers so that new drivers can be added Message-ID: <20170908141225.GE25219@lunn.ch> References: <93AF473E2DA327428DE3D46B72B1E9FD41121A5B@CHN-SV-EXMX02.mchp-main.com> <20170907215417.GU11248@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 List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1346 Lines: 30 On Fri, Sep 08, 2017 at 04:32:35PM +0300, Maxim Uvarov wrote: > 2017-09-08 0:54 GMT+03:00 Andrew Lunn : > >> -- compatible: For external switch chips, compatible string must be exactly one > >> - of: "microchip,ksz9477" > >> +- compatible: Should be "microchip,ksz9477" for KSZ9477 chip, > >> + "microchip,ksz8795" for KSZ8795 chip, > >> + "microchip,ksz8794" for KSZ8794 chip, > >> + "microchip,ksz8765" for KSZ8765 chip, > >> + "microchip,ksz8895" for KSZ8895 chip, > >> + "microchip,ksz8864" for KSZ8864 chip, > >> + "microchip,ksz8873" for KSZ8873 chip, > >> + "microchip,ksz8863" for KSZ8863 chip, > >> + "microchip,ksz8463" for KSZ8463 chip > > > > all that chips have the same spi access to get chip id on probe(). I > prefer common microship,ksz-spi rather than somebody will always > maintain that list. The Marvell DSA driver is similar. The compatibility string tells you enough to go find the switch ID in the switch itself. I suppose this comes down to, is there going to be one SPI driver for all the devices, or lots of drivers? In general, DSA has one driver for lots of devices. The mv88e6xxx supports around 25 devices. The b53 has around 17, etc. So i would suggest one driver supporting all the different devices. Andrew