Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932755AbcLHQg2 (ORCPT ); Thu, 8 Dec 2016 11:36:28 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:34164 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753370AbcLHQgZ (ORCPT ); Thu, 8 Dec 2016 11:36:25 -0500 Date: Thu, 08 Dec 2016 11:35:55 -0500 (EST) Message-Id: <20161208.113555.708493896423285622.davem@davemloft.net> To: niklas.cassel@axis.com Cc: peppe.cavallaro@st.com, alexandre.torgue@st.com, niklass@axis.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [RESEND PATCH 2/3] net: stmmac: dwmac-generic: add missing compatible strings From: David Miller In-Reply-To: <1481114469-4788-2-git-send-email-niklass@axis.com> References: <1481114469-4788-1-git-send-email-niklass@axis.com> <1481114469-4788-2-git-send-email-niklass@axis.com> X-Mailer: Mew version 6.7 on Emacs 25.1 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 08 Dec 2016 07:36:36 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 953 Lines: 24 From: Niklas Cassel Date: Wed, 7 Dec 2016 13:41:07 +0100 > From: Niklas Cassel > > devicetree binding for stmmac states: > - compatible: Should be "snps,dwmac-", "snps,dwmac" > For backwards compatibility: "st,spear600-gmac" is also supported. > > Since dwmac-generic.c calls stmmac_probe_config_dt explicitly, > another alternative would have been to remove all compatible strings > other than "snps,dwmac" and "st,spear600-gmac" from dwmac-generic.c. > > However, that would probably do more good than harm, since when trying > to figure out what hardware a certain driver supports, you usually look > at the compatible strings in the struct of_device_id, and not in some > function defined in a completely different file. > > No functional change intended. > > Signed-off-by: Niklas Cassel > Acked-by: Giuseppe Cavallaro Applied.