From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932486AbdJ0Tzf (ORCPT ); Fri, 27 Oct 2017 15:55:35 -0400 Received: from mail.savoirfairelinux.com ([208.88.110.44]:47280 "EHLO mail.savoirfairelinux.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932425AbdJ0Tzd (ORCPT ); Fri, 27 Oct 2017 15:55:33 -0400 From: Vivien Didelot To: netdev@vger.kernel.org Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com, "David S. Miller" , Florian Fainelli , Andrew Lunn , Vivien Didelot Subject: [PATCH net-next 0/7] net: dsa: add port parsing functions Date: Fri, 27 Oct 2017 15:55:12 -0400 Message-Id: <20171027195519.5931-1-vivien.didelot@savoirfairelinux.com> X-Mailer: git-send-email 2.14.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset adds port parsing functions called early in the new bindings parsing stage, which regroup all the fetching of static data available at the port level, including the port's type, name and CPU master interface. This simplifies the rest of the code which does not need to dig into device tree or platform data again in order to check a port's type or name. Vivien Didelot (7): net: dsa: get ports within parsing code net: dsa: add port parse functions net: dsa: get port type at parse time net: dsa: check master device before put net: dsa: get master device at port parsing time net: dsa: get port name at parse time net: dsa: remove name arg from slave create net/dsa/dsa2.c | 163 +++++++++++++++++++++++++++++------------------------ net/dsa/dsa_priv.h | 2 +- net/dsa/legacy.c | 3 +- net/dsa/slave.c | 3 +- 4 files changed, 95 insertions(+), 76 deletions(-) -- 2.14.3