From patchwork Mon Aug 20 14:59:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10570475 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-2.web.codeaurora.org (Postfix) with ESMTP id B23E8139B for ; Mon, 20 Aug 2018 14:59:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2B742960F for ; Mon, 20 Aug 2018 14:59:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 96CDC29612; Mon, 20 Aug 2018 14:59:50 +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 49C272960F for ; Mon, 20 Aug 2018 14:59:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726665AbeHTSPt (ORCPT ); Mon, 20 Aug 2018 14:15:49 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:38962 "EHLO mail-pf1-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726662AbeHTSPs (ORCPT ); Mon, 20 Aug 2018 14:15:48 -0400 Received: by mail-pf1-f171.google.com with SMTP id j8-v6so6899692pff.6 for ; Mon, 20 Aug 2018 07:59:49 -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=gTVGovZx1ISeBVT0o4eBDDrejfq4Uaxo9QkMVBQ1O6E=; b=W2RwX/QzoDoa/+aoxMEtKc972GZ4qCpe7i4qJDbkPnEsDYCgqfLHuX6n+4cPtzssl4 8Dgqyh9JkdocxUwmBX+fS4fgVKdpZ4eSWd81IakGTMz+E9mCZW+h0YkhBnBHTPgxie7B 9vcnWQdgH32Y7wzpnnHfbGigYQk0fDRdUrnl5cQxUkxTpIB+FNpUga5v1itPXhwydL5h Kh00MIm17OKkBUfbaKZzWBjoKNuQ/AKJ6mj0XATIpprfm3+iDwVIqPfXsTMvXz7I5d65 5ZVhQ+C7vkpngpHD30Ju0LJbATkcb4AERxREFwm7RWU73oYeuTvagli5a0rdORGyrfFB oWUA== 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=gTVGovZx1ISeBVT0o4eBDDrejfq4Uaxo9QkMVBQ1O6E=; b=evwFra//XMOTocHwJPIwQyv/x3nG/oT0KoQCvFhYUpJEHUzcBqfOpU35eQe4lS5zbR sFhkkJ8vmXoUkEYrfV+rgZ5Kjroeir4bkK7LH7WJRhdWvZwmyyUVgvqMiAsWqWc8HyVO w6JhdbcC/dQmvAZ+5t7J0j1l/JHeCS4F4UZ5RKq8oE1uKRJ14ar3cyQ67dOfJDZYT6qq 4LpzDTAtTOVhWxw1KJDLfBezir6Xo84PYrgoPK5MjEf7232qqXugfJekEKANfrM75y5b qf9wJv+lhA/eRFO5DSBclB8yEPwxpQdxg8lZJNM29NqztD66n7FjNhDeLU7cSiEubH3T Tzqw== X-Gm-Message-State: AOUpUlH2ILyURp8ecCCUfaRwjBy+RuvUt6djTO6ZuV4wGTIAVNTPloci tmHwE5iNWp5/UbCETH1Y5xG+xEb1 X-Google-Smtp-Source: AA+uWPxDnnD/YMuBupNy9grSJF2ORH/kqMPsdV92w5Kb2H5VHVXrkJZrHRiqH9UGwkyKJoPqT9KHFA== X-Received: by 2002:a63:7c43:: with SMTP id l3-v6mr12363635pgn.311.1534777189067; Mon, 20 Aug 2018 07:59:49 -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 k64-v6sm16965765pfg.141.2018.08.20.07.59.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 07:59:47 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 20 Aug 2018 23:59:45 +0900 Message-Id: <153477718520.16950.10138071667883935510.sendpatchset@octo> In-Reply-To: <153477717610.16950.5787705338176325405.sendpatchset@octo> References: <153477717610.16950.5787705338176325405.sendpatchset@octo> Subject: [PATCH/RFC v2 01/02] ravb: Do not announce 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 and 1Gbps HDX as unsupported. Not-Yet-Signed-off-by: Magnus Damm Fixes: c156633f1353 ("Renesas Ethernet AVB driver proper") Reviewed-by: Sergei Shtylyov --- Written on top of next-20180820 drivers/net/ethernet/renesas/ravb_main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) --- 0001/drivers/net/ethernet/renesas/ravb_main.c +++ work/drivers/net/ethernet/renesas/ravb_main.c 2018-08-20 23:42:46.670859449 +0900 @@ -1076,8 +1076,9 @@ 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; + /* Neither 10BASE nor half duplex are supported */ + phydev->supported &= ~(PHY_10BT_FEATURES | SUPPORTED_100baseT_Half | + SUPPORTED_1000baseT_Half); phy_attached_info(phydev);