Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2097205ybi; Sun, 16 Jun 2019 21:44:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqy4BAr/aVmovyBjCl+qOvtziOJ4SpD2unZkN5KbDfiH0aSjxqTiJjtmF0dAP2sZINtrvwup X-Received: by 2002:a17:90a:ae12:: with SMTP id t18mr17544263pjq.32.1560746643847; Sun, 16 Jun 2019 21:44:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560746643; cv=none; d=google.com; s=arc-20160816; b=G3ot6qwE9bWhzgDRKfPHC5+qrtDm0XafHzGCwPcQ2IMr8qJZKDfu7qlrITXwiaHyuX 87UGOhM0q9xO6paF3cy+XVWhBTrs7nN9o6t8ykVrIY52YUq3iqd9wm1ap/A0ElMlP3iK FRfy5jDL8LGuiEzdrUupNzP3DOXmi35TlH7MLbOrQkjOiaXx4qXAD4aRX7412uOIyzG3 8lB0t74QYop7DQCyy0gBGLCsO9FGTM6gwKehzgPNsrtCEOJf1/mPtO33TUveR/LbSFga N8u3flVXYm50OCJVsgRnMXQ577YGCzTJCvQUO7uA6FYkbzIA3dR8pKICyiXWvAnydJBB BUmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=QZYnY2hIUSm+INHACfGV3NJI8hXeyeTw8tvqjhCF464=; b=pLEHt9DjkRKU6Ijd9UM88ZWhk9xnYEIEWouWlrgQB95I67S0qfKJID8gSpCRBaZv9e HMb8IFkibwLCXmA0mvVNVkNHE+/AZ2Pb5mdVtGbrM6DtNcApRxusXX6+9I+1bIRixBCp lGd7prn2j5CxcdaoM1AFI5WhOUasPzjGGQ77yOB45+wwmf/eCa8zrG8V7sfshJOeNgub pPr6FdSt0qtTSGzLyyqAaHPw98Ru5uP7Q/fq0258DXn+8h02oAYjmdk97tLHiijg6nel RaEFOfV8K4DRaZRWkALRddBRso62BJxkM8xN2ssjOSBLqlW0eJHuYMiBhBw9puFPre1R fXlA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=MMXvlchV; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 25si9921243pgw.171.2019.06.16.21.43.48; Sun, 16 Jun 2019 21:44:03 -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=@sifive.com header.s=google header.b=MMXvlchV; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726177AbfFQEnn (ORCPT + 99 others); Mon, 17 Jun 2019 00:43:43 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:43113 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725863AbfFQEnn (ORCPT ); Mon, 17 Jun 2019 00:43:43 -0400 Received: by mail-lf1-f67.google.com with SMTP id j29so5442863lfk.10 for ; Sun, 16 Jun 2019 21:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QZYnY2hIUSm+INHACfGV3NJI8hXeyeTw8tvqjhCF464=; b=MMXvlchVs2Zgrzft62CDXTNlgYLYUhsdEmF5yBBfIzjcxXwgu+TFNl4ZoIwXwi/Cp5 GZyWocmV8KqP7vfrpu1KZsUdWgrLDSd0gdy43lJi+LlqepOvPg3LRwzIW8VKsHP3Zyex nUl+DAZfb/HRyNan1Ndv+uAdskNAK0QOUFJS1qq8hxxYXWax7O1+84TlV70C14ekBJq6 2Ld/EPFBUYKfF5DBrHjTwoqqpQ8o2NWQU/A8PIF+9etcSJjrhDveAIUKfa2rAObbsj+p xspUXSK+ZWwcak0Pe7L+Kb0TaWtpxbwnsJoIEHGhu7U1B34r930XYyfs5qAAq3I80GEW ESfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QZYnY2hIUSm+INHACfGV3NJI8hXeyeTw8tvqjhCF464=; b=AaraeUYhkRTKNQP2ByLualjDNgY39KVQh0H4ghwLVEQtdVRRdIZxo20Bm8xmd7U5E2 GIB+VaWIzEft+qFppEnK7Iyo5UqIy4M70lKdbsSPnCLPZzjXxy1mnG3nwP4gFoGfrnlu ESv9Ex8BQLeeGDga7XbjRooLmaUGiY70lX0Y6+AoZPGBDKK95IwHWeTcr3z8MhwKlCkp tHuVkjBihpFJyG8dVsk5fz0CbjfWkN7LKRxMQBWXUhGhcoIoXIixEJIAtnALUnfi70oo +3oubJrIczRLR1mAUM6/FnTAOtIGlh8UhXNfX6tWQZWgfl7rkdj6GKAUCrFOp/JVnW0h znkQ== X-Gm-Message-State: APjAAAUoNm2afF1ppOjKkP9GBcoNqDqIlMusgYn8wg935JyocxP2eg96 3a/DifQ5L2JUgOE5hO30oLqAKq+VTDf2CxEmTlrMBw== X-Received: by 2002:a19:5046:: with SMTP id z6mr6335117lfj.185.1560746621318; Sun, 16 Jun 2019 21:43:41 -0700 (PDT) MIME-Version: 1.0 References: <1560745167-9866-1-git-send-email-yash.shah@sifive.com> In-Reply-To: <1560745167-9866-1-git-send-email-yash.shah@sifive.com> From: Yash Shah Date: Mon, 17 Jun 2019 10:13:05 +0530 Message-ID: Subject: Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000 To: David Miller , devicetree@vger.kernel.org, netdev , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Cc: Rob Herring , Mark Rutland , Nicolas Ferre , Palmer Dabbelt , Albert Ou , Paul Walmsley , =?UTF-8?Q?Petr_=C5=A0tetiar?= , Sachin Ghadi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 17, 2019 at 9:49 AM Yash Shah wrote: > > On FU540, the management IP block is tightly coupled with the Cadence > MACB IP block. It manages many of the boundary signals from the MACB IP > This patchset controls the tx_clk input signal to the MACB IP. It > switches between the local TX clock (125MHz) and PHY TX clocks. This > is necessary to toggle between 1Gb and 100/10Mb speeds. > > Future patches may add support for monitoring or controlling other IP > boundary signals. > > This patchset is mostly based on work done by > Wesley Terpstra > > This patchset is based on Linux v5.2-rc1 and tested on HiFive Unleashed > board with additional board related patches needed for testing can be > found at dev/yashs/ethernet branch of: Correction in branch name: dev/yashs/ethernet_v2 > https://github.com/yashshah7/riscv-linux.git > > Change History: > V2: > - Change compatible string from "cdns,fu540-macb" to "sifive,fu540-macb" > - Add "MACB_SIFIVE_FU540" in Kconfig to support SiFive FU540 in macb > driver. This is needed because on FU540, the macb driver depends on > SiFive GPIO driver. > - Avoid writing the result of a comparison to a register. > - Fix the issue of probe fail on reloading the module reported by: > Andreas Schwab > > Yash Shah (2): > macb: bindings doc: add sifive fu540-c000 binding > macb: Add support for SiFive FU540-C000 > > Documentation/devicetree/bindings/net/macb.txt | 3 + > drivers/net/ethernet/cadence/Kconfig | 6 ++ > drivers/net/ethernet/cadence/macb_main.c | 129 +++++++++++++++++++++++++ > 3 files changed, 138 insertions(+) > > -- > 1.9.1 >