From patchwork Mon Aug 20 14:59:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 10570473 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 AF6BD5A4 for ; Mon, 20 Aug 2018 14:59:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9FC022960F for ; Mon, 20 Aug 2018 14:59:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 93BA129612; Mon, 20 Aug 2018 14:59:42 +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 29CB92960F for ; Mon, 20 Aug 2018 14:59:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726661AbeHTSPj (ORCPT ); Mon, 20 Aug 2018 14:15:39 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:44576 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726010AbeHTSPj (ORCPT ); Mon, 20 Aug 2018 14:15:39 -0400 Received: by mail-pl0-f68.google.com with SMTP id ba4-v6so7252582plb.11 for ; Mon, 20 Aug 2018 07:59:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:date:message-id:subject; bh=eLTjsvkKgWOQMvocpLZtx44QXx5ov8tYTOKIVZyidwo=; b=MleaZca/RYPihkZx+9128Zgj1M4+UGRDqpQpU5j5QT98D8PWODaBNPuR1RxZJFUMSy ijmTAEFDW6oxcTQs5x3lBIK46tiwD06HYBdev+Yabrk8U+hGtQpyhMtelP4Qt45HzxTn TfXU54dHgMpBeZ1iKikwJIiQpqFPbfScRHGromOyJQR5UUH4vxgxc7F2s61MvUOkM97b ISY55HC4FkCuoFuvag7Vq6NQgkbsdjKktzPHXVi7HBWike7zfTV4FsI5dtZsSJMpxpH+ soAyOOx9baXGkzp24AXZQfBpurDoKXzh8EwzpMLHwHQfoaN/Fn2q49/HM01VittyI2rR 6u7Q== 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:subject; bh=eLTjsvkKgWOQMvocpLZtx44QXx5ov8tYTOKIVZyidwo=; b=AV3gr/YuX7Thpn8nhUODG+yEPw0fNMjgqCcNLulnICNosKlIz3Haz8Rj6CNgvqaGIv f4ZKYo0Fab/2e/hAWuNQYpcB3vnE5t+u52TfmdGgCxw8pi08QpjK3Is2YsmN+lWJZwbR y8fvpussKo4QojhZnCGWJqtR7CFnNZnZfZfXS4sJsE98IBCx1Pp3fAjnWxRvlk53iwww CbSkxAvrSwl4AeGhpSMRQ3r9LOIDjPv9ejDUa0POi8M9Bwz6QONMqD5yeNNXSWJRF4SW dITq8munldNIh2JFxFAPnc/cfrnlDM2OanUwdpDCPvuAnaSu+kfcXqC+Z4xxcAfGz5ej vyWA== X-Gm-Message-State: AOUpUlHF3JRJrXLwYK7V73Tyuv8kWIwoD9DXFgSgl+qoBFNfl8i+y7QC gA6FzRy2oX3nfsmVxcfRf9iIT8L2 X-Google-Smtp-Source: AA+uWPyLJq4aXu0et7TmTN/ZNKCctGBA8OSBlUpzWPexXNjOfT01q+l8P8RVQMX8YJYlvflKM7nE6A== X-Received: by 2002:a17:902:8f8c:: with SMTP id z12-v6mr45282690plo.4.1534777179962; Mon, 20 Aug 2018 07:59:39 -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 f4-v6sm17046672pfj.46.2018.08.20.07.59.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Aug 2018 07:59:38 -0700 (PDT) From: Magnus Damm To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Date: Mon, 20 Aug 2018 23:59:36 +0900 Message-Id: <153477717610.16950.5787705338176325405.sendpatchset@octo> Subject: [PATCH/RFC v2 00/02] ravb: Duplex handling update V2 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 ravb: Duplex handling update V2 [PATCH/RFC v2 01/02] ravb: Do not announce HDX as supported [PATCH/RFC v2 02/02] ravb: Clean up duplex handling This series is V2 of prototype-level code to update the Ethernet-AVB driver to improve duplex handling. Based on the latest data sheet for R-Car Gen3 [1] and R-Car Gen2 [2] the following information is part of the EthernetAVB-IF overview page: Transfer speed: Supports transfer at 100 and 1000 Mbps Mode: Full-duplex mode It seems that the driver implementation is not matching the information provided in the friendly data sheet, and on top of this during run-time when changing PHY configuration of the link partner the Ethernet-AVB PHY seems to want to announce unsupported modes. [1] R-Car Series, 3rd Generation Rev.1.00 (Apr 2018) [2] R-Car Series, 2nd Generation Rev.2.00 (Feb 2016) Changes since V1: - Updated patches to reflect input from Sergei and Geert - thanks! Getting closer to be suitable for upstream merge? Not-Yet-Signed-off-by: Magnus Damm --- Written on top of next-20180820 drivers/net/ethernet/renesas/ravb.h | 1 - drivers/net/ethernet/renesas/ravb_main.c | 24 ++++-------------------- 2 files changed, 4 insertions(+), 21 deletions(-)