Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp1663434pxx; Fri, 30 Oct 2020 16:05:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxfd6sXDMMMLQgLkTCS/4RbzHTZEtcriOhtV5CALfuxg3tklKhN3hoGZKRY94uFZXqtp3Mo X-Received: by 2002:aa7:c586:: with SMTP id g6mr5068363edq.343.1604099139230; Fri, 30 Oct 2020 16:05:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604099139; cv=none; d=google.com; s=arc-20160816; b=dSeS9Dp1JvrfzbWwaaEnQQywzDqfF4/TDqPa/mNTMCM5TbHW3cARQIih7pekrlIYdV yFVk/PiE+1bcyHvIpM4DG0Ptxff3F4AcVCs+MVOe0OaYt4MOMJbyYop6Ea2wlcLCD8GH ZcV/Z5XrvumNkq3daijOECImKv2DM+ei6z16sFQWeMMGrVge26Re5lQYew5srj7NypM8 +1piEGalsItkGp0X7O49JpnApRvesjK5FyqO0lhRWtaTx6HEcvNrhxW9WstqrTUdOEfX 1q973vChA//TAFtC9J0w3vYOMAc5P6IBuXXOM/npj97kbjpbhbN09tHZfcyXtAhqNQu4 8DGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=Z7jrwWzwsGi/g7QFJSW6uRfcwxp8sZ9ZtFmfdEKh4U4=; b=kKP6YAvSnx5ld21fJw7xnjTdUKu5N2Ozf4HM2THXjHzACHede9WRzeSonHYoFErp0u lBUsAWraCmm6vJm7lmlVIWv6hBUtb9eNl7Wk6D+89IYU6RxvQ79hsWcpjDfaMgnKrNqT oABZuxZRpRv7IryMN/2NbHdBk5f8sWilj9d/VMeGCzNfFlZaCCPBed6ICmTrSDTtdAMB MevhcL56g2qTAT1o0drvnWPmB2FvshnC0ahREexRYgIMSIeWINtAn5iYyaGTYUD1U7d0 AVWgcXO7hub5e0dGy1T++mrvGCWe4EnpgA+ys75ml3pQF5oN3Iix7noGbPiYIIJaQ8Vy BPUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fNRlNrr/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si5248732ejz.318.2020.10.30.16.05.15; Fri, 30 Oct 2020 16:05:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="fNRlNrr/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726034AbgJ3XDe (ORCPT + 99 others); Fri, 30 Oct 2020 19:03:34 -0400 Received: from mail.kernel.org ([198.145.29.99]:54374 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725850AbgJ3XDc (ORCPT ); Fri, 30 Oct 2020 19:03:32 -0400 Received: from kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net (unknown [163.114.132.7]) (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 EA28322245; Fri, 30 Oct 2020 23:03:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604099011; bh=UBjluLfEoT4WAp3Vu3/cJxKe96PA+xboNdiLR61vTeY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fNRlNrr/icuHAtbaluL7mfEoBqe1f+Pg7K0YP1nWh4tgxzK5a1cOQZuAnRX37IFqX YwfI68EBQDMYF/7YCjjz/t0/uuk9HzKrUItf+yr2eNlEb7XoqzVFu0tWaOEFBpakgW jd9k5dN2o392Iqs52tMcnRuDeqavbdx2JubVhFQ4= Date: Fri, 30 Oct 2020 16:03:30 -0700 From: Jakub Kicinski To: Dan Murphy Cc: , , , , , , , Subject: Re: [PATCH net-next v3 4/4] net: phy: dp83td510: Add support for the DP83TD510 Ethernet PHY Message-ID: <20201030160330.622c55a7@kicinski-fedora-PC1C0HJN.hsd1.ca.comcast.net> In-Reply-To: <20201030172950.12767-5-dmurphy@ti.com> References: <20201030172950.12767-1-dmurphy@ti.com> <20201030172950.12767-5-dmurphy@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Oct 2020 12:29:50 -0500 Dan Murphy wrote: > The DP83TD510E is an ultra-low power Ethernet physical layer transceiver > that supports 10M single pair cable. > > The device supports both 2.4-V p2p and 1-V p2p output voltage as defined > by IEEE 802.3cg 10Base-T1L specfications. These modes can be forced via > the device tree or the device is defaulted to auto negotiation to > determine the proper p2p voltage. > > Signed-off-by: Dan Murphy drivers/net/phy/dp83td510.c:70:11: warning: symbol 'dp83td510_feature_array' was not declared. Should it be static? Also this: WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP #429: FILE: drivers/net/phy/dp83td510.c:371: + return -ENOTSUPP; WARNING: ENOTSUPP is not a SUSV4 error code, prefer EOPNOTSUPP #524: FILE: drivers/net/phy/dp83td510.c:466: + return -ENOTSUPP; ERROR: space required before the open parenthesis '(' #580: FILE: drivers/net/phy/dp83td510.c:522: + if(phydev->autoneg) { ERROR: space required before the open parenthesis '(' #588: FILE: drivers/net/phy/dp83td510.c:530: + if(phydev->autoneg) { And please try to wrap the code on 80 chars on the non trivial lines: WARNING: line length of 88 exceeds 80 columns #458: FILE: drivers/net/phy/dp83td510.c:400: + mst_slave_cfg = phy_read_mmd(phydev, DP83TD510_PMD_DEVADDR, DP83TD510_PMD_CTRL); WARNING: line length of 91 exceeds 80 columns #505: FILE: drivers/net/phy/dp83td510.c:447: + linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported); WARNING: line length of 93 exceeds 80 columns #507: FILE: drivers/net/phy/dp83td510.c:449: + linkmode_clear_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported); WARNING: line length of 91 exceeds 80 columns #514: FILE: drivers/net/phy/dp83td510.c:456: + linkmode_set_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported); WARNING: line length of 93 exceeds 80 columns #516: FILE: drivers/net/phy/dp83td510.c:458: + linkmode_clear_bit(ETHTOOL_LINK_MODE_Autoneg_BIT, phydev->supported); WARNING: line length of 92 exceeds 80 columns #560: FILE: drivers/net/phy/dp83td510.c:502: + DP83TD510_MAC_CFG_1, dp83td510->rgmii_delay); WARNING: line length of 88 exceeds 80 columns #574: FILE: drivers/net/phy/dp83td510.c:516: + mst_slave_cfg = phy_read_mmd(phydev, DP83TD510_PMD_DEVADDR, DP83TD510_PMD_CTRL); WARNING: line length of 84 exceeds 80 columns #695: FILE: drivers/net/phy/dp83td510.c:637: + dp83td510 = devm_kzalloc(&phydev->mdio.dev, sizeof(*dp83td510), GFP_KERNEL);