From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B4568C4363A for ; Tue, 20 Oct 2020 15:51:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 78BC222244 for ; Tue, 20 Oct 2020 15:51:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436878AbgJTPv2 (ORCPT ); Tue, 20 Oct 2020 11:51:28 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:36862 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731778AbgJTPv2 (ORCPT ); Tue, 20 Oct 2020 11:51:28 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kUtv4-002gPx-51; Tue, 20 Oct 2020 17:51:26 +0200 Date: Tue, 20 Oct 2020 17:51:26 +0200 From: Andrew Lunn To: Marek =?iso-8859-1?Q?Beh=FAn?= Cc: Russell King - ARM Linux admin , netdev@vger.kernel.org Subject: Re: [PATCH russell-kings-net-queue v2 2/3] net: phy: sfp: add support for multigig RollBall modules Message-ID: <20201020155126.GH139700@lunn.ch> References: <20201020150615.11969-1-kabel@kernel.org> <20201020150615.11969-3-kabel@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020150615.11969-3-kabel@kernel.org> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > @@ -2006,6 +2040,23 @@ static int sfp_sm_mod_probe(struct sfp *sfp, bool report) > > sfp->id = id; > > + sfp->phy_addr = SFP_PHY_ADDR; > + > + rollball = ((!memcmp(id.base.vendor_name, "OEM ", 16) || > + !memcmp(id.base.vendor_name, "Turris ", 16)) && > + (!memcmp(id.base.vendor_pn, "SFP-10G-T ", 16) || > + !memcmp(id.base.vendor_pn, "RTSFP-10", 8))); Are you customising the SFP, so that it has your vendor name? Is the generic SFP OEM/SFP-10G-T, and your customized one Turris/ RTSFP-10? Andrew