Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp2356085ybi; Mon, 17 Jun 2019 03:28:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqz9pKlqsPRQXt6fxJHCJ/rpUuCw84EbkCbf5DoRJv5pMRY68SYJZ3Re9dRWxqRXqethyDtB X-Received: by 2002:a17:902:a405:: with SMTP id p5mr35341672plq.51.1560767324154; Mon, 17 Jun 2019 03:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560767324; cv=none; d=google.com; s=arc-20160816; b=feRPOcRktX+rfbWkKYuCcC20pyrIN3meSCNMQuiBydBFjiFGLeMSd/nxppPbXzORc0 TGI3UnteZGsp2SCFvnbNUu8XvR6P5jrw/JVI+6wa8lLgdOuOxLESzHAkMv9gm99eplN5 lUinoBOKVtX7LqjlVUR4B965HBAuAh9gXuBhVeZHDqdFTcL17eASqYvo8kqMHqDAv0A8 sQef0HcZAgQ7FWe25Ij+zmmeR92NWR/yutlDMv55SE6ttnuTtf+48Sw3E4wmPB0XDjRP TSTWVfWdyNmOMRfYR2GfxIoM/v4Eu2JJJzHfzJth/fg8s4satH0r2hS/bOsiMxxVSuzM ILrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=8UBAA4hob1aUdMG3Ki6/LwA/eBo66cYa0fDftPuC+I0=; b=IvbuAtJSyzRjeWQ5JHxQTJ3fzKhe8MunICCwlcCWvrjvOQUqezpq4JVD98CFgRl9H4 lBzami+MgLHzcAivFT+S8WM3cNGFV0WuIMPnlLUQTUtCqg8oBvDDWInA2gYWxX16ECZD hIrz9Pl5DXrrPwcXdwiBwdF+mU3Tw7DzfvPot//yIyEbPD08huylmUU/8td17mH1JTis anaGmZcXLcYWtrLAXlWkWUSIJupSR/qTqArhb0XBVzcI+Mi0Zq/gYqfqKiAhaT2NhT39 cN1xVR4YOjlxN0qGKr6CI8hRFkzHkMG9vX3Z5/ALHonDxfV7aoBOQOnWZLVk8qu/nNai 2mTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=I1Xjncqz; 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 f92si11041411plb.330.2019.06.17.03.28.29; Mon, 17 Jun 2019 03:28:44 -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=I1Xjncqz; 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 S1728289AbfFQK2G (ORCPT + 99 others); Mon, 17 Jun 2019 06:28:06 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:46630 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726960AbfFQK2G (ORCPT ); Mon, 17 Jun 2019 06:28:06 -0400 Received: by mail-ed1-f67.google.com with SMTP id d4so15378953edr.13 for ; Mon, 17 Jun 2019 03:28:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=date:from:to:cc:subject:in-reply-to:message-id:references :user-agent:mime-version; bh=8UBAA4hob1aUdMG3Ki6/LwA/eBo66cYa0fDftPuC+I0=; b=I1XjncqzU2jmO6RevBy9IzFleq0nMlnkC6MDumuIsz5JVeH2+1xm/ZhpM/VGcEN+9K 9pSyXGeLCIhrXK1FMrm37s22+ShjPNYMS8/Wx1HJfbo39srKyIqMMMhR0mqjHq0Eqj2/ EEIYhEhsAbI7rnU22Ey0TKxrY8eexf9LGgSGqqGzvkvb6TeYsTMqmkFl0qWa7ckNmYhC gRbkiSnv1F7ZON4E588pZS0q2mwTvOSENtx+10LxFski6vF+C1ehb6SXdQghnOXmCoNC IgdbbbhFi0YtJmlL+kXM01BwLelRvL7Itusxmc9seVJAYzA6dGsXWWWqK+8gqLxSqbUc O3rA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:in-reply-to:message-id :references:user-agent:mime-version; bh=8UBAA4hob1aUdMG3Ki6/LwA/eBo66cYa0fDftPuC+I0=; b=iBHd7FcuIEZ84y3qtapbpqGzoZYLmiltxUc1wYWEr+500CjSHkwTENg7abc8wtyjgn IniELiVkSZ5hfm6xY17uiAiUxDgn3/xLfpjmb4PGZyLzOSJiG9BXcqalDwjB3dDzBcap /OJfUOCulbo/ygX3vQ8DXCtpUGrMB1104g5T+LZBGL6QmDSllQ9ekKAWyFpVhxpCAayV k8O5Supbm3slZ7i7g54O4ytA+F6rrl11FA+QBRGERF4uVCwFA4Ua3U46LL5DUHCjg3N0 yFFUf5yPGdS2SggkNc1hBImN6bSIRoOK6ppl1EFfhMfQ+v7rJeoJoKNihmLuaCLGOa7H QyLA== X-Gm-Message-State: APjAAAWo3GVMXeV3/Rvn5qPw3BNV5JlP515XIFmemqW8JzwAumSUUWyg 1XTiZfoC+dTM2HGEbA5vCwoDOg== X-Received: by 2002:a17:906:a39a:: with SMTP id k26mr69719766ejz.82.1560767284087; Mon, 17 Jun 2019 03:28:04 -0700 (PDT) Received: from localhost ([81.92.102.43]) by smtp.gmail.com with ESMTPSA id f24sm3624644edf.30.2019.06.17.03.28.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 17 Jun 2019 03:28:03 -0700 (PDT) Date: Mon, 17 Jun 2019 03:28:02 -0700 (PDT) From: Paul Walmsley X-X-Sender: paulw@viisi.sifive.com To: Yash Shah 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 , =?ISO-8859-15?Q?Petr_=A6tetiar?= , Sachin Ghadi , sagar.kadam@sifive.com Subject: Re: [PATCH v2 0/2] Add macb support for SiFive FU540-C000 In-Reply-To: Message-ID: References: <1560745167-9866-1-git-send-email-yash.shah@sifive.com> User-Agent: Alpine 2.21.9999 (DEB 301 2018-08-15) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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? - Paul