Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2401997ybi; Mon, 17 Jun 2019 04:18:14 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4Pb9QB4aiFy93+NQgaUEhiomeb1aW6XBLFTWwC739OQhOF1uQ5Lk+ElLO2Y147HdpbmTG X-Received: by 2002:a62:187:: with SMTP id 129mr26875915pfb.128.1560770294598; Mon, 17 Jun 2019 04:18:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560770294; cv=none; d=google.com; s=arc-20160816; b=VhJkrDu8IPAJbPIxh9Jdex4zPUy/Thsaj4eWGWpv5gwEZSkMTJA05bbyh3nkNr0Tod 05lsyL6QBRaRMsq3+zzFww7qs0PG3bG7SJnuqMhG9J0gcxRDT1EIYdtdtuu7sVyHQP86 PBfzRx8lqnZRjcPHJ25P9h1Fe1i+zo5x16D0QMhNkMCGlDGZbqwkLz2n5cj1WYWC2cYE puVF5E6CKXAgP9KjWeNUS8wJxi7Z5ovYqLnXYyiREWYWZfCSK+LHzbt33GRAK5oLjIha LyvbbABAH4lNzHnyw+BEnuemr6DudQ3DcIgjCBilPBwdEPNQnMSglzyvw/VajoYMKlkh L/pg== 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=Az1PsId6AG7zrE/e92guw8M5OvqzRvBrnplgaPfEwcw=; b=nSE16iu61IPoldTrEuk7usT6G9KV+ardjr+2W3fd/9QKv10a3uFDO+nLAMmIQ+K4dH 1yISNtbX1HCjWLKm1yHUmLvKc69e5dxzF2u5vBTF6NE+BaiLhlT0MbwdZOGB3NKMrXDQ /oTMLRG0bzFFX9Xgo2cuLULgztPM6Mq+hPETzD9ByGg0sYbcdRVBbCrkaB1zfU79MxVI 9hOMwz6OxnaiN1fFNjU5HvTA7cnElkw/yoEz93K4oVZXan9WOsz6sGL8ey7bTLeJfgY5 6emPgNSWyG20K8Xc/ccNUjexoR+OJoRZFiHh866geaXm8Ue7+D4c06WOosT5jl7TtRRc 1Vdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=iAwdTAm7; 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 21si10400571pfa.144.2019.06.17.04.17.58; Mon, 17 Jun 2019 04:18:14 -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=iAwdTAm7; 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 S1728001AbfFQLQX (ORCPT + 99 others); Mon, 17 Jun 2019 07:16:23 -0400 Received: from mail-lf1-f67.google.com ([209.85.167.67]:34693 "EHLO mail-lf1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727777AbfFQLQW (ORCPT ); Mon, 17 Jun 2019 07:16:22 -0400 Received: by mail-lf1-f67.google.com with SMTP id y198so6212763lfa.1 for ; Mon, 17 Jun 2019 04:16:21 -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=Az1PsId6AG7zrE/e92guw8M5OvqzRvBrnplgaPfEwcw=; b=iAwdTAm7d1j7Fy86A9WNwUIIPoE1zIu2cV4bWwdR7BuLmdfbtfKcJmSezpSob9uyX6 y01FclKM/Is3Qb4jVv6QnxM9EQcvoE6xuynnh4PECqeAadE1vTbXCLgg36nhvpqtTjy9 493u6NeeunXp2GdJ9WoAkK6KyTeTuImRWpp2rEmUCTZkMid45PFKnhZ7xih/PSPBJJfZ nEkQah3nMTlY7wOG9SwxnT1Kac1SB2teBXGdpQgu+dbRanIAymF8wsE8codJrzZ6jMZ9 r4V+5Vlqqk4S8kHnoDPpUOXQVEn0arHZ4O/7gv7E9mxTOtL+KUf2kc2uvhkSY+qIvuq6 iP0Q== 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=Az1PsId6AG7zrE/e92guw8M5OvqzRvBrnplgaPfEwcw=; b=BiZIvmNbrofRac6a8tzg5RANRJpwqGB/mF8TgQDwiP5PNy1CH8P5ledOniWtau3mg/ adDJ0xKTJcFiBCLRco4ogWeTGXHR/XJshtwUohcvVSywvOeyTDpRB8FvNQT9WFAPhgWk 7tsmKvBYrAJLzsXggWIL+uhfnhQvVPpBEYe9WIV16QviY99lDkXcQ+I81GIRia8ZgYY1 N68S7AYeTRXCbjwPEI99cHu9HhKqD+bCMLh5eYppSaXPACdOWEkt0Ok3O0DJF7BNmAer TrBV6ipMsAYMrjaPEXOF0qpc9UaGUfA7lUgNsnuTui8tStJQi++vDAvf14wOg7Pyla42 pCZQ== X-Gm-Message-State: APjAAAXuwP8b726W0o/5GRUqCnlBBDc5RYgk/1ijuYSFtTKo3Brxprj1 iiSgui2KH/LiATXyZ8MGFrqv+IcenzvE4gfKdVQBXg== X-Received: by 2002:ac2:446b:: with SMTP id y11mr49980373lfl.158.1560770180454; Mon, 17 Jun 2019 04:16:20 -0700 (PDT) MIME-Version: 1.0 References: <1560745167-9866-1-git-send-email-yash.shah@sifive.com> In-Reply-To: From: Yash Shah Date: Mon, 17 Jun 2019 16:45:44 +0530 Message-ID: Subject: Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000 To: Paul Walmsley Cc: Andreas Schwab , David Miller , devicetree@vger.kernel.org, netdev , linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, Rob Herring , Mark Rutland , Nicolas Ferre , Palmer Dabbelt , Albert Ou , =?UTF-8?Q?Petr_=C5=A0tetiar?= , Sachin Ghadi , Sagar Kadam 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 3:58 PM Paul Walmsley wrote: > > On Mon, 17 Jun 2019, Yash Shah wrote: > > > On Mon, Jun 17, 2019 at 3:28 PM Paul Walmsley wrote: > > > > > On Mon, 17 Jun 2019, Andreas Schwab wrote: > > > > > > > On Jun 17 2019, Yash Shah wrote: > > > > > > > > > - 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. > > > > > > > > This of course requires that the GPIO driver is upstreamed first. > > > > > > What's the impact of enabling CONFIG_MACB_SIFIVE_FU540 when the GPIO > > > driver isn't present? (After modifying the Kconfig "depends" line > > > appropriately.) > > > > > > Looks to me that it shouldn't have an impact unless the DT string is > > > present, and even then, the impact might simply be that the MACB driver > > > may not work? > > > > Yes, there won't be an impact other than MACB driver not working. > > OK. In that case, there doesn't seem much point to adding the Kconfig > option. Could you please post a new version without it? Sure, will do that. > > > In any case, without GPIO driver, PHY won't get reset and the network > > interface won't come up. > > Naturally, in the medium term, we want Linux to handle the reset. But if > there's no GPIO driver present, and the bootloader handles the PHY reset > before the kernel starts, would the network driver work in that case? Yes, if bootloader handles the PHY reset then the network driver will work in that case. I will post a new version without the GPIO driver dependency. > > > - Paul