Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1130810rdg; Fri, 11 Aug 2023 10:37:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHEvE3IohjWUCPl9EU4GsB8NVITpkpN/jZUgaCWsFAIn6Lmd+eHWH5ETHmz+AexYhrXdh/R X-Received: by 2002:a05:6808:1b08:b0:3a7:239d:af64 with SMTP id bx8-20020a0568081b0800b003a7239daf64mr3546284oib.49.1691775462659; Fri, 11 Aug 2023 10:37:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691775462; cv=none; d=google.com; s=arc-20160816; b=LdS1DsWINXnhYDr4tnu8IbrjOHxSdcNSAuwnIMV+PRFlY/tzS5k7jfpdpQPGgOlTb6 g0AkZqgfWA8Hed5+kISQyrqwt1g6cdq/auimgfBFlH/3ixdfAUcskVqtDXZ7GlmRpI21 HkXEvHh4oI8l+trEPE90ddWmTNfjfc2h53Y6kZQ23A6ppl6yY8AaZn4gdrPc0VOvhKDY ZQIk8CH6Ea1lWW7uiCh8NwK26Wiv2Tj0uGupUrJ++eOXI/3pK4EjpRGB0chfZ6vOdlnT xDdZCpk06Nm3ZMuRts7W9d9dCtWLhHSnroFsYT5AEX4xUvV1gtPy8lLpoKKeNhebB/gK 5ISA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:mime-version:date :dkim-signature:message-id; bh=admShfSykcaAtbel+tfZWUdxGTiA82izBewytBKFlQ8=; fh=j/F4m/a+eco4sODy+5M9EIMRPsTN5FpiD+LDkbR3Th0=; b=UaZ41uWWhAwjBRQDzKhnel/behycU3zc8ExqVuslt7+gcJ+QHAOQUw5+1vCPjGZ5gS cNCIS4SxwtmyArM9pbE81gTRb+1x+eZVrBD6hUt1GcNRU3h0eUYoVCjKQ/eZO4s7U821 r2x8NvYNGp5zbnw1KlsmrYrW2xsH3tczWxI1KA3cPLDkX+Aja0olTAY+NGDqk50o5bDa PI/MPHxg65q01pqzG4eJxCGKnmUAa2EXMPlgLncj/E2qYVE/LZEdfwOXUFdDmK+Ayuwm EBd0NScF0sriwFbSk1O+KVb8eWnw5qzkQ0LdRSSiI5tXB2nkDZWsINDXlNFM5a2T8lMu y+NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b="RIok6yu/"; 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=linux.dev Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m16-20020a63fd50000000b00565660b78d3si1171696pgj.591.2023.08.11.10.37.30; Fri, 11 Aug 2023 10:37:41 -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=@linux.dev header.s=key1 header.b="RIok6yu/"; 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=linux.dev Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236057AbjHKQpD (ORCPT + 99 others); Fri, 11 Aug 2023 12:45:03 -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 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_NONE,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 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.