Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5975479ybi; Wed, 12 Jun 2019 11:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyc98BSIkHoF7rAgHUCKzbBuVWK13/yXFun8bURE91rY0AWjJ3O+nOGa2n7i4O4or2Q4y25 X-Received: by 2002:a63:4c14:: with SMTP id z20mr26291033pga.360.1560364944529; Wed, 12 Jun 2019 11:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560364944; cv=none; d=google.com; s=arc-20160816; b=DlD2w2lnaVXU+8h1gOd0gyxqXsCGcFTBXYWHZPVC5OUhgvWL2G/k4rPHfq/3brptaj CoPJq4Xm4zFnyEDcPx24Fd2eDhJDoyJZV0nLQfeac2cMIsIDTt32BdM3H4Y7wz9l6YdU OBw5sY2b9AAtYSDYfxDhTZaagypQVER+xxCASxmzHud/Qo73n1rBgg/RuvUZ+ZoI9yk6 hvI3/Xcc+AE/ht4tX/dmvhhsRgSIgUa0hKCv/96BoWqr0ybildzrmS9tVe0+Z8H4tb2N CRzb/OT9WzTdJ9amIQuFH+L96ciJ0sR86Aunw8FAjPftdLpmi1JZd1dACOygszyTdqhW 5k/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=BCHDCMqhJT/6FshXZBORq3geSmDeK2ImfsvkULZ7ako=; b=madefibfaAcL0f5pEJGFMKa+yGfDmoG0yjgpZqB3hUnS35cTZUrgGSuEVH+PZf1lGU 5zFsDGqr7LKbKIIdaEkl8JaHbOP12rDwRajgdJtOptEvNx6+3+M4BnYbsZXmwmcieDHV QxuTaTPw50dGFcsTyY5ZiZwKsNg647SiisZglnau+NKLwO1A7V6UEf39SekSW9ZBUNS9 eDx1ax3JY2uK7JpK76B8XOjnHFH+pTIbkXxeq0e/NRvJj0sIiZCB41mThWsdosl5eVJp KKZNaRnLKAXbgZgIVKa6l6XYkTQZHGvcaMjIUe5CmTszH5eAlKV50FHEIhZ4fjjtsDu5 R0AA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lE2zkkfl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w5si410373pll.36.2019.06.12.11.42.09; Wed, 12 Jun 2019 11:42:24 -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=pass header.i=@linaro.org header.s=google header.b=lE2zkkfl; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728646AbfFLSkO (ORCPT + 99 others); Wed, 12 Jun 2019 14:40:14 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:33191 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbfFLSkO (ORCPT ); Wed, 12 Jun 2019 14:40:14 -0400 Received: by mail-lj1-f195.google.com with SMTP id h10so10142834ljg.0 for ; Wed, 12 Jun 2019 11:40:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BCHDCMqhJT/6FshXZBORq3geSmDeK2ImfsvkULZ7ako=; b=lE2zkkflj0+rg65PZkQJswReFAFB73OuSI0tN6PxnBkJP/VFGNj1K6LE3WlWR1dg5V P5Aq0dfZFClkS9LxQBbxtFDEJ1Scp1OfJPvRy686oMTHdRjyWofbzn5Hr5asuisoAS+T NpIsWoQvpLvQvEyJrrk2fHLDKAr2jq+vUqkMot2y6a9eVObTSo5oRHrUGQnGWppBbpFf +37jFd1wvaUHxFs1OpWZOEv/uyLWxvqde73l6D208E3fAqL3dCIFouietBA2/2pJUBz7 ci0YmRCAdnfog+siXDGqltWsATRNrAfiwun3LivBIy3vUD0Kg7++F//HIPKR5g8lPPz8 7G7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BCHDCMqhJT/6FshXZBORq3geSmDeK2ImfsvkULZ7ako=; b=uNhIe4G2O/jykTZEV+LKXZW+R9vQKVDM9XfQ3OO4uV/ZluZiRtI+RAaGZHVW1jX0ud 5bFvS1MmefUaaN/eNhG4hIh0Tnm9H8ZL3AQw+ZxE0eqixgMI6Ym+lNozqd0uZgDn3C7I +zBUiPyS6VXgek0ecXS5sCHhrIaG/ffZl4lPhaiEr0E7UlrhWWbAsved28VgKwnIxuBf CVyV26cseoTJAEmsI0ddkTbxip+H5IhRh421QPtUX6O0x9rMaD8CUxvaDar/zBM4nUQS L7raGvw/KXyHVtxzzzf59P5gYbdrDfemskj6RvFxx1yjqxIAM5dTAfL0cROfZgIeWZ0W Z8mg== X-Gm-Message-State: APjAAAXxqV0N27d56gSb0cmuW4Ukvy4ND+yV5hgAe/o3ZTpAUXpTRDx7 QA/l1jIrXHD9szizOBbBXknltHuKHsJp/W8MwIs1ug== X-Received: by 2002:a2e:5d54:: with SMTP id r81mr7178030ljb.104.1560364812092; Wed, 12 Jun 2019 11:40:12 -0700 (PDT) MIME-Version: 1.0 References: <20190612081147.1372-1-anders.roxell@linaro.org> <20190612131647.GD23615@lunn.ch> In-Reply-To: <20190612131647.GD23615@lunn.ch> From: Linus Walleij Date: Wed, 12 Jun 2019 20:39:59 +0200 Message-ID: Subject: Re: [PATCH v2] drivers: net: dsa: fix warning same module names To: Andrew Lunn Cc: Anders Roxell , "David S. Miller" , Vivien Didelot , Florian Fainelli , netdev , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 12, 2019 at 3:16 PM Andrew Lunn wrote: > On Wed, Jun 12, 2019 at 02:36:44PM +0200, Linus Walleij wrote: > > Sorry for giving bad advice here on IRC... my wrong. > > > > > -obj-$(CONFIG_NET_DSA_REALTEK_SMI) += realtek.o > > > -realtek-objs := realtek-smi.o rtl8366.o rtl8366rb.o > > > +obj-$(CONFIG_NET_DSA_REALTEK_SMI) += rtl8366.o > > > +rtl8366-objs := realtek-smi.o rtl8366-common.o rtl8366rb.o > > > > What is common for this family is not the name rtl8366 > > (there is for example rtl8369 in this family, we just haven't > > added it yet) but the common technical item is SMI. > > Hi Linus > > I was not sure about this. I thought SMI was the bus used to > communicate with the switch. It just seemed odd to call a switch > family after the bus. It is true, but as can be seen from: Documentation/devicetree/bindings/net/dsa/realtek-smi.txt it is a family of 8 switches. I think we should just have one module handling all of them for simplicity, once we get around to implementing anything else than RTL8366RB that is. It's these 8 switches that talk SMI and they have a lot in common like talking RRCP internally AFAICT. I think these switches are pretty complex on the inside, we just don't have very good documentation :/ > Anyway, if you are happy with the name realtek-smi: > > Reviewed-by: Andrew Lunn Thanks! Yours, Linus Walleij