From patchwork Thu Jul 19 11:51:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10534219 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2A176600D0 for ; Thu, 19 Jul 2018 11:49:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 19CE028FE6 for ; Thu, 19 Jul 2018 11:49:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0E0D629131; Thu, 19 Jul 2018 11:49:05 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35D2328FE6 for ; Thu, 19 Jul 2018 11:49:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730440AbeGSMbt (ORCPT ); Thu, 19 Jul 2018 08:31:49 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:47091 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726475AbeGSMbt (ORCPT ); Thu, 19 Jul 2018 08:31:49 -0400 Received: by mail-pf0-f196.google.com with SMTP id u24-v6so107878pfn.13 for ; Thu, 19 Jul 2018 04:49:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=U8RvYqy8xA2incofHc8Roy0DNtfvjBZRtuX1TFqsfmk=; b=WCoz9AzbZpFsq5i406PIZeubP9dyjkM/jjxJhY8izscny2mCkXAEd1MIPsKfCpQtuo OeFt/U7/7mYu2eKvuIlSIMxRqoEcxMi/0gSJP5NDubESG1qXQo2BDm8SUDdLtxXdW5KE NduTGbjjRUKJ1ETzcVZLIKPC170MZUOVBP7f0R9eCLNkOiUNR7N9NcTX2o++cLdcmkgm HZdkuf5lD4ZdEdiUMxrgZ2lgC1Q7CYkJZaxqjyZrTF6Q25fmsPoBnO4dSTI9v+LSy8Yc nvz+KOiZ52SZFT6yHiC0pzlQVt/hsyXGKUr597/jkvoG6/vMXMkFqxhcr+e/VEGGtanH TQBA== 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:date:message-id:in-reply-to :references:subject; bh=U8RvYqy8xA2incofHc8Roy0DNtfvjBZRtuX1TFqsfmk=; b=MJ0BtThmBiWITvWmFDnMdXeLS3NHnFU+GJfWoz/yrFzLTO592SYB1LLT0iM+gOb6Ey HsUjp+7CV03gEbwrY4nB3FEeT+sY45P5Kh/3z1sjj7/GqKdM3c4k5zwi0G+7X/0abowS v4TYh6115UiMiQa4ypDEzC+R4/QzgJjwYn5ObMLdfReCz9zXX9FUZbuT3JTxsVaUqz5P mUDelBNwAtmgNZd3Jf8ZhCCucu8P52JhVeBzAX2YrGV+evjHnHhU3GPeq1SQ6QI/gFci cmt1EkNqjNvfol9ZCsRvw8OyE80qoFG5YMnz4L1NAmBXgdpxGOIfZxhGux60njsJgcUe Zymw== X-Gm-Message-State: AOUpUlExzDRbyJ0ludIhk+mSGWcCfeKUVf0JN7Si/H+cLkfPDaPQySH1 v+IKEHQWjKdyYAVWVNf1lr1BTxBh X-Google-Smtp-Source: AAOMgpf+stmLvBkwWzOgpDYvEySZnygJKT+oeZYxqVQJeJBo2yP4lthle7WcdkoMGYi4pvONj6UW2A== X-Received: by 2002:a63:1f4d:: with SMTP id q13-v6mr9712606pgm.241.1532000942047; Thu, 19 Jul 2018 04:49:02 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by smtp.gmail.com with ESMTPSA id c131-v6sm15940343pga.69.2018.07.19.04.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Jul 2018 04:49:00 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Thu, 19 Jul 2018 20:51:07 +0900 Message-Id: <153200106718.13504.7319401547888522726.sendpatchset@little-apple> In-Reply-To: <153200105784.13504.12882377600823578834.sendpatchset@little-apple> References: <153200105784.13504.12882377600823578834.sendpatchset@little-apple> Subject: [PATCH/RFC 01/02] ravb: Do not announce 100Mbps HDX as supported Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm According to the data sheet the Ethernet-AVB hardware in R-Car Gen3 and R-Car Gen2 SoCs do not support half duplex operation. So update the driver to mark 100Mbit HDX as unsupported. Not-Yet-Signed-off-by: Magnus Damm --- Written on top of renesas-drivers-2018-07-17-v4.18-rc5 drivers/net/ethernet/renesas/ravb_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- 0001/drivers/net/ethernet/renesas/ravb_main.c +++ work/drivers/net/ethernet/renesas/ravb_main.c 2018-07-19 19:18:38.210607110 +0900 @@ -1066,8 +1066,8 @@ static int ravb_phy_init(struct net_devi netdev_info(ndev, "limited PHY to 100Mbit/s\n"); } - /* 10BASE is not supported */ - phydev->supported &= ~PHY_10BT_FEATURES; + /* Nether 10BASE nor half duplex is supported */ + phydev->supported &= ~(PHY_10BT_FEATURES | SUPPORTED_100baseT_Half); phy_attached_info(phydev);