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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8527DEB64DD for ; Fri, 11 Aug 2023 16:45:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236068AbjHKQpE (ORCPT ); Fri, 11 Aug 2023 12:45:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236221AbjHKQpB (ORCPT ); Fri, 11 Aug 2023 12:45:01 -0400 Received: from out-114.mta1.migadu.com (out-114.mta1.migadu.com [IPv6:2001:41d0:203:375::72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3BB672D7D for ; Fri, 11 Aug 2023 09:45:01 -0700 (PDT) Message-ID: <03763b62-8d49-6fbf-5ce9-21c334c9aac2@linux.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1691772299; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=admShfSykcaAtbel+tfZWUdxGTiA82izBewytBKFlQ8=; b=RIok6yu/Auqn0MWP4OKNMvm04myfUt1AS598KaVNv0crBmVGWPuLF/VrUoacz0fJcmspTE b6+9STyNuUxLP6a2PcQyjSNhMw68Tj+mCkXjOXWNIrpY5VI3s/I8u0LCmV1y6s5N3znJ0x hYMMwEvvVarUEoJ8BNStd3ucIvWQ2Qs= Date: Fri, 11 Aug 2023 17:44:55 +0100 MIME-Version: 1.0 Subject: Re: [PATCH net-next] net: phy: mediatek-ge-soc: support PHY LEDs Content-Language: en-US To: Andrew Lunn 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 References: X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Vadim Fedorenko In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/08/2023 17:39, Andrew Lunn wrote: >>> + /* 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? > Oh, got it. Yeah, resource managed code needs no explicit *put() calls. Thanks for the clarification.