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 2CD95C7618A for ; Fri, 17 Mar 2023 16:31:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230076AbjCQQbW (ORCPT ); Fri, 17 Mar 2023 12:31:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbjCQQbQ (ORCPT ); Fri, 17 Mar 2023 12:31:16 -0400 Received: from violet.fr.zoreil.com (violet.fr.zoreil.com [IPv6:2001:4b98:dc0:41:216:3eff:fe56:8398]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F5FE33CCD; Fri, 17 Mar 2023 09:31:09 -0700 (PDT) Received: from violet.fr.zoreil.com ([127.0.0.1]) by violet.fr.zoreil.com (8.17.1/8.17.1) with ESMTP id 32HGSaVO081340; Fri, 17 Mar 2023 17:28:36 +0100 DKIM-Filter: OpenDKIM Filter v2.11.0 violet.fr.zoreil.com 32HGSaVO081340 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fr.zoreil.com; s=v20220413; t=1679070517; bh=kmSvARczm0InFVzzK9I97akQBokHemprDe2GPs2aaV0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qNpX34D6Prxgv4GmY/ppDulOv9uKFAC9YJtAFZkDlOnTcNV0F5EjTzqMaGZGNVeTw oFCUmiZF2yuI1n8oFrSAXDn25oddYdk0Jn7raLffR7Io3sVJesRi9bEue1fRptNu+y niX1hfCkFHAK0dY5HCg0kZIiOLU3xF5vJFMVm09Y= Received: (from romieu@localhost) by violet.fr.zoreil.com (8.17.1/8.17.1/Submit) id 32HGSah2081339; Fri, 17 Mar 2023 17:28:36 +0100 Date: Fri, 17 Mar 2023 17:28:35 +0100 From: Francois Romieu To: David Yang Cc: Heiner Kallweit , Andrew Lunn , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH] net: phy: hisi-festa: Add support for HiSilicon Festa PHYs Message-ID: <20230317162835.GA81256@electric-eye.fr.zoreil.com> References: <20230317143042.291260-1-mmyangfl@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Organisation: Land of Sunshine Inc. Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Heiner Kallweit : > On 17.03.2023 15:30, David Yang wrote: [...] > > diff --git a/drivers/net/phy/hisi-festa.c b/drivers/net/phy/hisi-festa.c > > new file mode 100644 > > index 000000000..ab54ed3ca > > --- /dev/null > > +++ b/drivers/net/phy/hisi-festa.c [...] > > +static int hisi_festa_patch_fw(struct phy_device *phydev) This function can fail... [...] > > +static int hisi_festa_config_init(struct phy_device *phydev) > > +{ > > + hisi_festa_patch_fw(phydev); > > + /* ok, use programmed firmware */ > > + return 0; ... but nobody cares. This lack of consistency may also be fixed once Heiner's remarks are answered. -- Ueimor