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=-1.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED 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 A028EC433E0 for ; Tue, 30 Jun 2020 19:31:49 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6B15F206C0 for ; Tue, 30 Jun 2020 19:31:49 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="r/vBvqlq"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="YrsWemV8" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6B15F206C0 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-ID: Subject:To:From:Date:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=vFlhpaAhtOUbgTfkR7lC/yNsAWFcN8bzOR0Ea2KEPwA=; b=r/vBvqlqXKDuS9fe+FHadpdMQ Q7h4aRZIrKGxbwzuwgjLlsTJ2TczCN5j8iqb2PXEuIqcjyCmNaf9yNR9unAG57utAZFTOJHd9lVgl 3Y8O5Tl42cmb00VJ6dKciGGbklelAAGbpbH9XTqcj4AeMYNZm2ofuwNf67sj2PXjb/wYf4wIoQGN9 7B3EarN2YIpUd+C2TxIJursgqZRXMI48gMVyHxsA6gtl+2PJKg9DsgLDN4yQw2vfsS8BdEMDQr+W/ VUOn91btaDAfVIJioGKUkYWf2qpUSKNoYuhqNr0QS16g4XU8Al+pT6iPANU/bOJRaBETuIJgZCuKX Y8uxvVFNA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqLxh-0000rM-1l; Tue, 30 Jun 2020 19:30:33 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jqLxe-0000qe-23; Tue, 30 Jun 2020 19:30:30 +0000 Received: from kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com (unknown [163.114.132.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id DFA06206C0; Tue, 30 Jun 2020 19:30:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593545428; bh=rEjh/g2S0tM9y4L43jJdE5PRYKCoFH1gQ/JFjzpI3J8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=YrsWemV8NJvx04mW005Zc9MA2OgNruHQsVtdKH2T4vxRF2Zqm0xlQEPT9UKJUZbyq ueVxKtzRjyE3noo1bvlLdwBw6z1lWqVx7WxIogIstM89v0LpL+fRtcftaeRrm4t6Rz Ri8R1z08mqiVd1eaw1NHQ/BbeC/ASKIm1lBJFDtE= Date: Tue, 30 Jun 2020 12:30:26 -0700 From: Jakub Kicinski To: Bartosz Golaszewski Subject: Re: [PATCH v2 00/10] net: improve devres helpers Message-ID: <20200630123026.39d97211@kicinski-fedora-pc1c0hjn.dhcp.thefacebook.com> In-Reply-To: <20200629120346.4382-1-brgl@bgdev.pl> References: <20200629120346.4382-1-brgl@bgdev.pl> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200630_153030_183373_F710185D X-CRM114-Status: GOOD ( 13.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , Florian Fainelli , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Wang , Russell King , "David S . Miller" , Bartosz Golaszewski , Rob Herring , linux-mediatek@lists.infradead.org, Jeff Kirsher , John Crispin , Matthias Brugger , netdev@vger.kernel.org, Frank Rowand , Mark Lee , linux-arm-kernel@lists.infradead.org, Heiner Kallweit Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Mon, 29 Jun 2020 14:03:36 +0200 Bartosz Golaszewski wrote: > From: Bartosz Golaszewski > > So it seems like there's no support for relaxing certain networking devres > helpers to not require previously allocated structures to also be managed. > However the way mdio devres variants are implemented is still wrong and I > modified my series to address it while keeping the functions strict. > > First two patches modify the ixgbe driver to get rid of the last user of > devm_mdiobus_free(). > > Patches 3, 4, 5 and 6 are mostly cosmetic. > > Patch 7 fixes the way devm_mdiobus_register() is implemented. > > Patches 8 & 9 provide a managed variant of of_mdiobus_register() and > last patch uses it in mtk-star-emac driver. > > v1 -> v2: > - drop the patch relaxing devm_register_netdev() > - require struct mii_bus to be managed in devm_mdiobus_register() and > devm_of_mdiobus_register() but don't store that information in the > structure itself: use devres_find() instead Acked-by: Jakub Kicinski _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel