Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3217255rwd; Fri, 16 Jun 2023 14:07:53 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/F+byoRUVfNpDCpRLBVIVQVLIFUjSAyd2skcrvSyROHZpsg0x9oIIfFHMF5CvGoS7Ou/K X-Received: by 2002:a05:6808:1828:b0:398:444f:a3d2 with SMTP id bh40-20020a056808182800b00398444fa3d2mr4116115oib.20.1686949672769; Fri, 16 Jun 2023 14:07:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686949672; cv=none; d=google.com; s=arc-20160816; b=nYSkv3G5+a0VTCwc94tlZTpKlLce4YcC0g/S6Badn3x1oArdEITKJjOUYbu0t/NV5D JXk2jlMer9PYKKdshgPCf/tuBfr2a5aphYYrDAInxWSGC+aeHYbsu/aa7i34KcdKKHhb auhtlAlzM0dCfKhHbr19J/XsUo8oN+PPphhWrZVFrtrrtmaiIwWsbHgBdT5hWQGgsTB5 fvVsbyXV4d3xwEyHfauwBKc5yxjfcCYvo9PRL4VT/O8gTyNKDu3RvgDZRwo54ZhOGgRV q1bJ+KsrHwMhH4NHkAAJHZAvaby7Qy7soFBzddEv6RYAbLZfzEInFH1alOq6oqtWwFeJ OUXw== 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=SjGeG/Asq80tJKRYYzdJI4qDQRsSpZV+gFFdzpK1g0s=; b=xv1LntCL+QgL5DLMcJ+fK6XvA6SJ/0xXNvao6UsGossx6pHrXgF2si9dIRPPPdotJ2 MyqyqOLdiHxMUDkM4o+oP3Vm4U1PohV8pblNd+M8GjqLWSaKQDVIrwnI9sfkbeqA8wsf a40dC3z0oYBGWxUD1nUyA7Q0NaPbgPI41Gp4RPU9rbOgsWJOiU5l69oYBUMvIrznYtYc Tvb0Nr2a2geEa9+Eeu03yS+0QO1OPDbtnOp1AX5pZPEd4+uipq86aWeOkQmG53swUwQo vV/oJqf21wCJohhKzo1RIul0OSZfZEXwwxTzCTQCtWk8/Ck3sP5slKmClSrUfY6vbbUG MBRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=PpkZYdnk; 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 a14-20020a17090a70ce00b00256a6aab74esi2353568pjm.111.2023.06.16.14.07.38; Fri, 16 Jun 2023 14:07:52 -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=@lunn.ch header.s=20171124 header.b=PpkZYdnk; 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 S245310AbjFPUnC (ORCPT + 99 others); Fri, 16 Jun 2023 16:43:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59474 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229950AbjFPUnB (ORCPT ); Fri, 16 Jun 2023 16:43:01 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26AA83AA3; Fri, 16 Jun 2023 13:43:00 -0700 (PDT) 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=SjGeG/Asq80tJKRYYzdJI4qDQRsSpZV+gFFdzpK1g0s=; b=PpkZYdnk5hkg+VheE1FMkc3EE4 kXtXJE/Yw+ptoAALI0cjlgA0UfEF/qAaTxU22zZmt230iXsb1wO/+qV4FWVaHLAJl95+eM5mlsw1B xcPSyWtDKrRo5PnnhW5Cd1R9IM4c0OsBpU6/8wYyiF154/AhQqQwIAgJCnfBNZu2NcwI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qAGHU-00Gl3l-0O; Fri, 16 Jun 2023 22:42:52 +0200 Date: Fri, 16 Jun 2023 22:42:51 +0200 From: Andrew Lunn To: "Radu Pirea (NXP OSS)" Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, richardcochran@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, sebastian.tobuschat@nxp.com Subject: Re: [PATCH net-next v1 04/14] net: phy: nxp-c45-tja11xx: add *_reg_field functions Message-ID: References: <20230616135323.98215-1-radu-nicolae.pirea@oss.nxp.com> <20230616135323.98215-5-radu-nicolae.pirea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230616135323.98215-5-radu-nicolae.pirea@oss.nxp.com> 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, T_SCC_BODY_TEXT_LINE,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 > +static int nxp_c45_read_reg_field(struct phy_device *phydev, > + const struct nxp_c45_reg_field *reg_field) > +{ > + u16 mask; > + int ret; > + > + if (reg_field->size == 0) { > + phydev_warn(phydev, "Trying to read a reg field of size 0."); I would actually use phydev_err(). > + if (reg_field->size == 0) { > + phydev_warn(phydev, "Trying to write a reg field of size 0."); Here as well. Andrew --- pw-bot: cr