Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1108884rdg; Fri, 11 Aug 2023 09:59:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE74CvWcImbKNgqIq8d1dNOaD04mkzAli+/Tw7LJtDPPooIFxXfCdCAz5gQgOrpBSy1uDmV X-Received: by 2002:aa7:c1d2:0:b0:522:3ea4:81a9 with SMTP id d18-20020aa7c1d2000000b005223ea481a9mr2153642edp.34.1691773162167; Fri, 11 Aug 2023 09:59:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691773162; cv=none; d=google.com; s=arc-20160816; b=szQC9sBEIZYLRiYAz3RAn8HjA+SimUqTeXKXaHizyMUxWEu7IA6ruiPL5b/xcBnIGg dhDZH7RHRS5O8oHsu2IZUf2/BU1xb2+pG3XCQS565M3Du+Fm5WHgqBQm+XJc0rwdpV+H a90QibHG/dB0cQvyUJec6ez9VC2U2koEOGv2d/3hDllrl9vdbs3wpCut/tmoqYDelR8F RYhLEAtzbbQvbG9/HCcC5XXzvMsNpbkxKWz3AQZsItSpuaVV+a8EW2JsrSAFXHMi3VO9 NgK2DL+h8HRQGiOAFtZpY/lQVw68vRLnYnf6Sbm288SQqkaIKV74urllGlJrskLxMh3P MCvQ== 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=TAgSe/fvcEsAuCevj4UGpRGSw4bx6DrrfYgnHUykh04=; fh=E94U4Y+E7yZD7V3jH0kiWQQxgF4fmDnocwhbojC1TBk=; b=QySV9mpVEDepEU+Vptq5cHshcFK/2utGLNt8xIo2C7BzgYGrVCWI3jkHmx0G8h6Z5u CmYJzQdpOxNAJqE9lvr6oQQzQINHS/6VxPQcExXGHof3Bbgr0k4ZVeHmZ1ewRV0/wSox 1XflS9+JZygeDryWH8gurhSlJXMjlD8UhDU0AXJOvEeeuYhXt8JbUbJkdAToc3dK6OAD nz8coQNEB2aXKeEJqYWbOkbtY0BisrVW5Qs4oE249sHxWMNyoVG4WRofimbv4AIoU9ZB OBq+tIucTbxg0rEiblTz10q5ivX2PqZKdndAYER9vzbqJ02Ac1hR2wkQtG5eMKcRR3k2 tx7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=dyYT0EfC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w8-20020aa7d288000000b005233e7ca1aasi3579299edq.376.2023.08.11.09.58.50; Fri, 11 Aug 2023 09:59:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=dyYT0EfC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235787AbjHKQjb (ORCPT + 99 others); Fri, 11 Aug 2023 12:39:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235700AbjHKQja (ORCPT ); Fri, 11 Aug 2023 12:39:30 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C7BDE65; Fri, 11 Aug 2023 09:39:25 -0700 (PDT) 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=TAgSe/fvcEsAuCevj4UGpRGSw4bx6DrrfYgnHUykh04=; b=dyYT0EfC1RxBdwrrg002ZYKUBG gM+1qg62PZ1QlIpEgtBoie4k7T4n2f82EWwCI9OndqQhZIArgRWc0KII3zfTvYDU4l1e7hFjdrf2N zFJorazHy0YexBrhSHTDH+uW0kAaDXJXX6pmN+srzeq12Uptft6MN8ggGYZvbCUmUE0k=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qUVAC-003pLi-AB; Fri, 11 Aug 2023 18:39:00 +0200 Date: Fri, 11 Aug 2023 18:39:00 +0200 From: Andrew Lunn To: Vadim Fedorenko Cc: Daniel Golle , Qingfang Deng , SkyLake Huang , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Matthias Brugger , AngeloGioacchino Del Regno , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: Re: [PATCH net-next] net: phy: mediatek-ge-soc: support PHY LEDs Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > + /* Only now setup pinctrl to avoid bogus blinking */ > > + pinctrl = devm_pinctrl_get_select(&phydev->mdio.dev, "gbe-led"); > > This function gets reference on phydev->mdio.dev, but there is no code > to release it. It looks like a leak which will prevent module unload, > but I don't have hardware now to prove it. Since it is a devm_ function, it should get released when the device is destroyed. Or am i missing something? Andrew