From: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
To: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, kernel@savoirfairelinux.com,
"David S. Miller" <davem@davemloft.net>,
Andrew Lunn <andrew@lunn.ch>,
Florian Fainelli <f.fainelli@gmail.com>,
Ben Dooks <ben.dooks@codethink.co.uk>,
Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>,
Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Subject: [PATCH v3 net-next v3 00/14] net: dsa: mv88e6xxx: probe compatible
Date: Fri, 17 Jun 2016 20:07:22 -0400 [thread overview]
Message-ID: <20160618000736.5598-1-vivien.didelot@savoirfairelinux.com> (raw)
This patchset factorizes the legacy DSA probing and the new MDIO probing
functions with a few helpers.
This will allow us to use a compatible chip info to describe how to access the
SMI device and its switch ID register at probe time.
For the legacy probe, we fix the compatible info to 88E6085. For the MDIO
probe, we will use the compatible info from the device node data.
The first 5 patches are already reviewed.
The next 3 patches are cosmetics, with no functional changes.
The next 4 patches add probe helpers and pass the compatible info.
The last 2 patches extend the info structure to store the SMI access mode and
the location of the switch ID register.
Changes since v2 [2]:
- do not guess compatible model in legacy probe
- add low level SMI API using a chip structure
- allocate before probe and detection
- add 3 cosmetic patches
Changes since v1 [1]:
- merge style fix from Ben Dooks
- add Acked-by/Reviewed-by tags
- drop one compatible string per model
- detect the SMI device based on the compatible info
- add an SMI ops structure
[1] https://lkml.org/lkml/2016/6/8/1201
[2] https://lkml.org/lkml/2016/6/14/671
Vivien Didelot (14):
net: dsa: mv88e6xxx: fix style issues
net: dsa: mv88e6xxx: remove redundant assignments
net: dsa: mv88e6xxx: use already declared variables
net: dsa: mv88e6xxx: do not increment bus refcount
net: dsa: mv88e6xxx: add switch register helpers
net: dsa: mv88e6xxx: use gpio get optional variant
net: dsa: mv88e6xxx: remove table args in info lookup
net: dsa: mv88e6xxx: rename smi_mutex to reg_lock
net: dsa: mv88e6xxx: add chip allocation helper
net: dsa: mv88e6xxx: add SMI init helper
net: dsa: mv88e6xxx: add detection helper
net: dsa: mv88e6xxx: pass compatible info
net: dsa: mv88e6xxx: add addressing mode to info
net: dsa: mv88e6xxx: add port base address to info
drivers/net/dsa/mv88e6xxx.c | 508 ++++++++++++++++++++++++++++----------------
drivers/net/dsa/mv88e6xxx.h | 27 ++-
2 files changed, 343 insertions(+), 192 deletions(-)
--
2.8.3
next reply other threads:[~2016-06-18 0:08 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-18 0:07 Vivien Didelot [this message]
2016-06-18 0:07 ` [PATCH v3 net-next v3 01/14] net: dsa: mv88e6xxx: fix style issues Vivien Didelot
2016-06-18 0:07 ` [PATCH v3 net-next v3 02/14] net: dsa: mv88e6xxx: remove redundant assignments Vivien Didelot
2016-06-18 0:07 ` [PATCH v3 net-next v3 03/14] net: dsa: mv88e6xxx: use already declared variables Vivien Didelot
2016-06-18 0:07 ` [PATCH v3 net-next v3 04/14] net: dsa: mv88e6xxx: do not increment bus refcount Vivien Didelot
2016-06-18 0:07 ` [PATCH v3 net-next v3 05/14] net: dsa: mv88e6xxx: add switch register helpers Vivien Didelot
2016-06-18 0:07 ` [PATCH v3 net-next v3 06/14] net: dsa: mv88e6xxx: use gpio get optional variant Vivien Didelot
2016-06-18 20:17 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 07/14] net: dsa: mv88e6xxx: remove table args in info lookup Vivien Didelot
2016-06-18 20:18 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 08/14] net: dsa: mv88e6xxx: rename smi_mutex to reg_lock Vivien Didelot
2016-06-18 20:20 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 09/14] net: dsa: mv88e6xxx: add chip allocation helper Vivien Didelot
2016-06-18 20:22 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 10/14] net: dsa: mv88e6xxx: add SMI init helper Vivien Didelot
2016-06-18 20:25 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 11/14] net: dsa: mv88e6xxx: add detection helper Vivien Didelot
2016-06-18 20:27 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 12/14] net: dsa: mv88e6xxx: pass compatible info Vivien Didelot
2016-06-18 20:28 ` Andrew Lunn
2016-06-18 0:07 ` [PATCH v3 net-next v3 13/14] net: dsa: mv88e6xxx: add addressing mode to info Vivien Didelot
2016-06-18 20:36 ` Andrew Lunn
2016-06-18 21:18 ` Vivien Didelot
2016-06-18 0:07 ` [PATCH v3 net-next v3 14/14] net: dsa: mv88e6xxx: add port base address " Vivien Didelot
2016-06-18 20:38 ` Andrew Lunn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160618000736.5598-1-vivien.didelot@savoirfairelinux.com \
--to=vivien.didelot@savoirfairelinux.com \
--cc=andrew@lunn.ch \
--cc=ben.dooks@codethink.co.uk \
--cc=davem@davemloft.net \
--cc=f.fainelli@gmail.com \
--cc=kernel@savoirfairelinux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=sergei.shtylyov@cogentembedded.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.