Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp77605rdf; Mon, 20 Nov 2023 17:03:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IELTuJMeVvvA2xsnBlVnHduaFA4WpuhiXcMkGRYNSAzOSU6d8JTTjOH8UD14cKJLhbjagWY X-Received: by 2002:a05:6808:1b1f:b0:3a3:4314:8dc0 with SMTP id bx31-20020a0568081b1f00b003a343148dc0mr9298260oib.5.1700528592653; Mon, 20 Nov 2023 17:03:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700528592; cv=none; d=google.com; s=arc-20160816; b=CO/YcdhQI/HgInA45TySxiZAiAT7s/hzgA8OUoUUcmz/9zidOXRHK2eLQH9lCt63Os OoQhlmUA3SAxc4HhxQpP3XsEq3o2sY4WPKvgRGPHRyy+ijgQkDnRvVW8KT2/DOC8QIPw DHKuIXxmPuJJSKaKwvVcLY+T6oEjpuiPqHSk7VmaNQVNhwJspxspCIUwXNi3A5XDaAGZ tJ/aDXDV7IIal41lO6lVvu+cJQUsXOu3qHGjg059fMgkpet8jFiUEJZgSTBTjs5QUDT7 uHkmOsj0OG8uoiW++Xp5gwLAhJ5jc5+Tk7dnyQmn/ROVuvnBhq5be+OAHGo8K9XhIFJI PCqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=pgxhEJrdQqIa04MmNzZIomTiih7sAHwADqYuA6fFOz0=; fh=C0TfBJhgfV5KqzbS/KnZmKykOYUXFy9xkb3FDuNAbrk=; b=uxVoKDG4JmpB/6rtXvbq7EDL2SH6uY3zBCPbTCo6Suf1k2IPp6bfnmZEBzEILt4jfJ j4hqtAZGCaplni3hTMTEiibP/YRyfSCM7lxPJryl7cRD4CS5rr0VkmZQYNVaM08rTqLP ziMRucOxHVrU5J4wdbXlczMbmOX2m7sTjdwRX/sPPrb5Jp7YbjB6DGGb06lMT/mLLcUD vI87PVGL1QQOfgcz82sS8fDkFLV2HeCsn5TJ84wHbw4FtB82Bls+V5jD2BUrzusuyKUo hUL7l004is3N/PdQ1JtLlZoNNBQmfrR+g28ZtrtOMzej+PXRA5rVMOmKzk2jkjXSlxzc v29Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lgYwcm55; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id m3-20020aca1e03000000b003b2df61bc76si3192447oic.180.2023.11.20.17.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Nov 2023 17:03:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=lgYwcm55; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id A89DC8078617; Mon, 20 Nov 2023 17:01:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230107AbjKUBBF (ORCPT + 99 others); Mon, 20 Nov 2023 20:01:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37360 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229496AbjKUBBD (ORCPT ); Mon, 20 Nov 2023 20:01:03 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5FCD5A2; Mon, 20 Nov 2023 17:01:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=pgxhEJrdQqIa04MmNzZIomTiih7sAHwADqYuA6fFOz0=; b=lgYwcm55G1nJZvTxTzPYtGaPrT GAkKkpg5OtBAfv3bZeYfxm50N1pLnK2VcB+ukNRnfl6Y/h0Tezz1AdRgoBrpOK1oJD5jc2n+3eMs+ cA5Q7gYhyohBavmJo2M70kHU+Ht24ZzgSwa0x1q1SCFYAWRqBkfuhKZRMPY7EP2A7mWM=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1r5F8M-000hzA-5l; Tue, 21 Nov 2023 02:00:58 +0100 Date: Tue, 21 Nov 2023 02:00:58 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Jakub Kicinski , Eric Dumazet , Paolo Abeni , Russell King , linux-arm-kernel@lists.infradead.org, Christophe Leroy , Herve Codina , Florian Fainelli , Heiner Kallweit , Vladimir Oltean , =?iso-8859-1?Q?K=F6ry?= Maincent , Jesse Brandeburg Subject: Re: [RFC PATCH net-next v2 04/10] net: sfp: Add helper to return the SFP bus name Message-ID: <00d26b50-56f1-4eac-a37f-36cf321bd46a@lunn.ch> References: <20231117162323.626979-1-maxime.chevallier@bootlin.com> <20231117162323.626979-5-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231117162323.626979-5-maxime.chevallier@bootlin.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Mon, 20 Nov 2023 17:01:25 -0800 (PST) > +const char *sfp_get_name(struct sfp_bus *bus) > +{ > + if (bus->sfp_dev) > + return dev_name(bus->sfp_dev); > + > + return NULL; > +} Locking? Do you assume rtnl? Does this function need to take rtnl? Andrew