Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp5802490rwb; Tue, 17 Jan 2023 19:25:56 -0800 (PST) X-Google-Smtp-Source: AMrXdXuk9Zzw1VypeSN0gxtyWdogn1W7rSUXPNs9HNI9NkEkO0wPiduQybrGWF/3nWE2gU3LO4Ba X-Received: by 2002:a17:907:d50e:b0:877:5b9d:2f9a with SMTP id wb14-20020a170907d50e00b008775b9d2f9amr560894ejc.25.1674012356089; Tue, 17 Jan 2023 19:25:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674012356; cv=none; d=google.com; s=arc-20160816; b=jWZg8GZkS1V0/PvNoxgSeeeATTJNoss2Z4+HVkyoNvtiCq16fEFSK+OANde4+AO8rl a5ecAJE0MMemmbhoduffPToWsoYc8/gEesEA3ItpvY9XFMfWPnSBerw3nEz5AmAykvDT zLfGJtxUIo3QqvirkcpKV+TuFzlJOaDXCuESFXJeF6Da+4uVoky+O4NAWMEro6DVHCQZ PY06mpswdf/WSpkOlpMU4m6kjbpNTT6n1QQEXZOPBF22Ovhwc1H1mjhS8jqx1oH3DAhA BSjWZyyDsmxzoKrMOULfHl9UIlAjs0YxV/QBdwrHyV1clS05+zSRt1lsGFKrb4RPr2zW xDnQ== 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=25llEiYeDS/QkPpInqQXQmxNNvjZJPqsVG0/iQjVy2c=; b=klKYSs3BZeRbhHvs6vgWA89EoF3+RY5B4w+OhGBwuWdOSR9iVwAY9JGH233BIxbtho TgANnNmhAalWtxDMmTF/pb7TnW0hFfxrRBn6xS+UDErgQEETfwwIowB0IWhjScBQslR3 jbYOSRSa+5NxebkWqb43Dw+G7WyMRhguqjz1hY0b2bUBXfSg8enPVWBKzLoOcdmD0bPS g451cGIHMuj+bkfdqyYApjY4eYLEOXfGgFTKrQjZpmzkzM1WcrZNws3D8qAUOJv5NZxF 6E0F+8Cag8sHBjzFGqt94Dq/gwEuwm3mxxn6GUPxy5hEnhsvz2CfPRNAckw6sBNitf+l 9vgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=sFON5SBn; 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 hg6-20020a1709072cc600b0086e4b1b433fsi12908842ejc.802.2023.01.17.19.25.45; Tue, 17 Jan 2023 19:25:56 -0800 (PST) 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=sFON5SBn; 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 S229699AbjARC4r (ORCPT + 46 others); Tue, 17 Jan 2023 21:56:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjARC4p (ORCPT ); Tue, 17 Jan 2023 21:56:45 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9F684FC30; Tue, 17 Jan 2023 18:56:44 -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=25llEiYeDS/QkPpInqQXQmxNNvjZJPqsVG0/iQjVy2c=; b=sFON5SBnkYjGqFHr3tGGBRHRrT o7Q3m3i9vijRANE8wAKTsMZ5jBcGKPPhpBILFKq0tRkjK1pEfNd20NLBG79ARJztRjlV8Cfc6RAfv YFm6zf6kZx0inmW2pb9Auwp28JuVG88YOrmGMDgJAICg7gWy/bdEPqBfPegqlYUYGJiI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1pHycq-002ODH-Bb; Wed, 18 Jan 2023 03:56:32 +0100 Date: Wed, 18 Jan 2023 03:56:32 +0100 From: Andrew Lunn To: Simon Horman Cc: Jerome Brunet , netdev@vger.kernel.org, "David S. Miller" , linux-amlogic@lists.infradead.org, Kevin Hilman , Neil Armstrong , Da Xue , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 2/2] net: mdio: add amlogic gxl mdio mux support Message-ID: References: <20230116091637.272923-1-jbrunet@baylibre.com> <20230116091637.272923-3-jbrunet@baylibre.com> <1jk01mhaeg.fsf@starbuckisacylon.baylibre.com> 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,SPF_HELO_PASS,SPF_PASS 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 > > >> + priv = devm_kzalloc(dev, sizeof(*priv), GFP_KERNEL); > > >> + if (!priv) > > >> + return -ENOMEM; > > > > > > nit: may be it is nicer to use dev_err_probe() here for consistency. > > > > That was on purpose. I only use the `dev_err_probe()` when the probe may > > defer, which I don't expect here. > > > > I don't mind changing if you prefer it this way. > > I have no strong opinion on this :) dev_err_probe() does not apply here, because devm_kzalloc does not return an error code. Hence it cannot be EPROBE_DEFFER, which is what dev_err_probe() is looking for. Andrew