Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp6916915ybp; Wed, 16 Oct 2019 00:35:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyTGOrkDM7VPAIHzBh9WlIN4T5LiFplzzAEYo1EZdF/jBpwee3CynchNszaqBqWSSiH2kVb X-Received: by 2002:a05:6402:12d4:: with SMTP id k20mr17464449edx.241.1571211354462; Wed, 16 Oct 2019 00:35:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571211354; cv=none; d=google.com; s=arc-20160816; b=jyY2iPi3lnqVhjOsUqkAX33I//4NjBjkBanGBd5HnfKXq3PnlzpC33HFIp6Gpv2AtF J0TYGdwvDiPIAT/7zBDYrTccy/6K2UX6hgwTmANUYvl0Cs7o1CvtrkLt2n9E+aA/ow+w 9KVdTTKZqMn7YRD+0OAMyUsmZOu+fD1OYlD+TFOE6QmJQ/TLmEmxCfozmu0vblHMWp06 3x1230zxauaRB1Igf/QWVqcpBdoMhzx7O7A51g9/pOBI81QdOC6eGDxKtf+w08rP769t qRFmDvDS8UGUSQtGHc+VNPlIhy1JPrt23aTchXwxBxo/oeq0nRV7B6iT+VCLrlneBGE+ LIfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=vg7xYZ9+ZejKlKw8r28WKsh0/d0jAL+zKb5C9ek7Ft8=; b=AwNOTrp5yLYSPQdFP5Wez7CngCDOoNoju2Jv/SHqYfsv6aUiAtPpkQ+izMz4RLkHEW eSf54U2HSZ18/Gx5edrIFPV8p/elqHA4tosiy0n5uzoxXdmjCgfCGgHargNQxyMZUtya glEStr/0ULsYcTFx3bF1a4Vp7UuxRQ3zxI9HxzcO1x6O0oXzP0Q8fgDtDDWW/mGNQLws SVfxvEHV4cQ9HYRQuXoQEEFVM2nT/xrQRecWG8q1j6KTs/TRTLJbnEv6Dt74eyiAa2IS z3CNehEjVCZdvb2Y7Avz1vn6b0XTRkXIkaxNHy1yFJZ53afilZ6x/opZhqt8skzPnEOr EEWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fBTj3vjz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x25si15815994edr.128.2019.10.16.00.35.31; Wed, 16 Oct 2019 00:35:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=fBTj3vjz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390123AbfJOWuV (ORCPT + 99 others); Tue, 15 Oct 2019 18:50:21 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37132 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725991AbfJOWuT (ORCPT ); Tue, 15 Oct 2019 18:50:19 -0400 Received: by mail-pl1-f195.google.com with SMTP id u20so10295845plq.4; Tue, 15 Oct 2019 15:50:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=vg7xYZ9+ZejKlKw8r28WKsh0/d0jAL+zKb5C9ek7Ft8=; b=fBTj3vjzaeAiJd6VIgAL/hHIPmoh5r3+eAxiG63s1heFlbYW7wJmotezCC/8ANDEev lilfKQuw56RDO8a38sNGdOKAaGqeeR7YEUnn4uq840W3cDaORaOvEBpLI+XO8ac8Wmgq gJsfunl+tE3xbyXxiQXbDByaxuCUz5+dVpoTnlOTPZ4lG61xvv1lwUceIBvo/PQTwYoU 1VvZX6rUkDiMs9iSYUp9lBVXkA56q8dtp2SQP2R3BfH7pysWEkzqCeqmUQ3QAKY4S2Ej Nj8bjmVv7tHZ7yDu07XoJZcM9wt/3RYd5TTxbua4SNgozjPlxEqxTSb9CFjPA04jMNbu 46cA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=vg7xYZ9+ZejKlKw8r28WKsh0/d0jAL+zKb5C9ek7Ft8=; b=dMlkNAS2JHg/T/TG6SLjuomgf5DbJ1F2bqbTSY60g4k43C7rL4hNSwD0GV3UlSkhRd IYRs9q6L1zaqpZCNS3ZrGLk9Ypm9LLg5Q0Xp/6e0KI+jsDkBCFGG0iV33k7dsn+wPrsv hj2asj0o0xp3r519qigSXz/WmVN9IyPwzomDirov5pESNRXvEAqx7WwlOXebeZwGfiRr vJHKCh8LWTP+smRnhmKxL+Gd19G/3bVpwKLmt4aXXTL2wQSfY0pv3utvM2bkrijS3WnN PTz23ecFvrvz3CQqMkE4PaQADNdjL7zuukA8R6uhSHZH25lRJYI9vKOUy200dMbEIse0 J6kw== X-Gm-Message-State: APjAAAUSijjtJL5PmhEaPW7Yw4e6EoUQwVDxbFkZ0NYaJxOVs3mh6jg4 h4zvmM0ASNeiMbW3zMQqHdG8HAHh X-Received: by 2002:a17:902:8b81:: with SMTP id ay1mr38309289plb.79.1571179817508; Tue, 15 Oct 2019 15:50:17 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id x12sm20106171pfm.130.2019.10.15.15.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Oct 2019 15:50:17 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Andrew Lunn , "David S. Miller" , linux-kernel@vger.kernel.org (open list), hkallweit1@gmail.com, bcm-kernel-feedback-list@broadcom.com, olteanv@gmail.com, rmk+kernel@armlinux.org.uk, cphealy@gmail.com, Jose Abreu Subject: [PATCH net-next 1/2] net: phy: Use genphy_loopback() by default Date: Tue, 15 Oct 2019 15:49:52 -0700 Message-Id: <20191015224953.24199-2-f.fainelli@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191015224953.24199-1-f.fainelli@gmail.com> References: <20191015224953.24199-1-f.fainelli@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The standard way of putting a PHY device into loopback is most often suitable for testing. This is going to be necessary in a subsequent patch that adds RGII debugging capability using the loopback feature. Signed-off-by: Florian Fainelli --- drivers/net/phy/phy_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phy_device.c b/drivers/net/phy/phy_device.c index 9d2bbb13293e..c2e66b9ec161 100644 --- a/drivers/net/phy/phy_device.c +++ b/drivers/net/phy/phy_device.c @@ -1514,7 +1514,7 @@ int phy_loopback(struct phy_device *phydev, bool enable) if (phydev->drv && phydrv->set_loopback) ret = phydrv->set_loopback(phydev, enable); else - ret = -EOPNOTSUPP; + ret = genphy_loopback(phydev, enable); if (ret) goto out; -- 2.17.1