From: Florian Fainelli <f.fainelli@gmail.com>
To: Russell King - ARM Linux <linux@armlinux.org.uk>
Cc: netdev@vger.kernel.org, davem@davemloft.net, andrew@lunn.ch
Subject: Re: [PATCH net-next 1/4] net: phy: sfp: Do not reject soldered down modules
Date: Thu, 9 Nov 2017 20:39:09 -0800 [thread overview]
Message-ID: <1b490bbc-8200-31c8-d9ef-ff8be0ad27fd@gmail.com> (raw)
In-Reply-To: <20171108111549.GQ9463@n2100.armlinux.org.uk>
On 11/08/2017 03:15 AM, Russell King - ARM Linux wrote:
> On Tue, Nov 07, 2017 at 07:49:08PM -0800, Florian Fainelli wrote:
>> The SFP module identification code in sfp_sm_mod_probe() will reject SFF
>> modules soldered down because they have an identified of 0x2, while the code
>> currently checks for 0x3 only (SFP_PHYS_ID_SFP), update that.
>>
>> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
>> ---
>> drivers/net/phy/sfp.c | 5 +++--
>> include/linux/sfp.h | 1 +
>> 2 files changed, 4 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/net/phy/sfp.c b/drivers/net/phy/sfp.c
>> index e381811e5f11..942288aa9cdb 100644
>> --- a/drivers/net/phy/sfp.c
>> +++ b/drivers/net/phy/sfp.c
>> @@ -463,8 +463,9 @@ static int sfp_sm_mod_probe(struct sfp *sfp)
>> vendor, part, rev, sn, date);
>>
>> /* We only support SFP modules, not the legacy GBIC modules. */
>> - if (sfp->id.base.phys_id != SFP_PHYS_ID_SFP ||
>> - sfp->id.base.phys_ext_id != SFP_PHYS_EXT_ID_SFP) {
>> + if ((sfp->id.base.phys_id != SFP_PHYS_ID_SFP &&
>> + sfp->id.base.phys_id != SFP_PHYS_ID_SFF) ||
>> + sfp->id.base.phys_ext_id != SFP_PHYS_EXT_ID_SFP) {
>
> I'd prefer that we do something like the patch I sent a couple of nights
> ago, having a separate compatible for the SFF modules (since they have
> no insert signal as SFF is soldered in place) and use that to decide
> which phys_id we accept here.
Fair enough.
--
Florian
next prev parent reply other threads:[~2017-11-10 4:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-08 3:49 [PATCH net-next 0/4] net: phy: sfp: Fixes and debugging improvements Florian Fainelli
2017-11-08 3:49 ` [PATCH net-next 1/4] net: phy: sfp: Do not reject soldered down modules Florian Fainelli
2017-11-08 11:15 ` Russell King - ARM Linux
2017-11-10 4:39 ` Florian Fainelli [this message]
2017-11-08 3:49 ` [PATCH net-next 2/4] net: phy: sfp: Use correct endian for sfp->id.ext.options Florian Fainelli
2017-11-08 8:56 ` Russell King - ARM Linux
2017-11-10 4:39 ` Florian Fainelli
2017-11-08 3:49 ` [PATCH net-next 3/4] net: phy: sfp: Separate enumerations and states Florian Fainelli
2017-11-08 8:58 ` Russell King - ARM Linux
2017-11-10 4:40 ` Florian Fainelli
2017-11-08 3:49 ` [PATCH net-next 4/4] net: phy: sfp: Pretty print state machine events Florian Fainelli
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=1b490bbc-8200-31c8-d9ef-ff8be0ad27fd@gmail.com \
--to=f.fainelli@gmail.com \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=linux@armlinux.org.uk \
--cc=netdev@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).