Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp2061394ybd; Sun, 23 Jun 2019 23:34:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqz/w9rbZfzJ2TJhTyN9N5DI8666NIixoCL1ML5RWww/W9pwJ0J6W/3vVxWXATZvHn5sppvM X-Received: by 2002:a17:902:2862:: with SMTP id e89mr11358214plb.258.1561358088576; Sun, 23 Jun 2019 23:34:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561358088; cv=none; d=google.com; s=arc-20160816; b=z3XUunkag1sw3BVB6Kfcu5CgzfA1T+13V39U/+RniAlkX8dFh5VfvWrQPgzkxJYqGQ vD2Uh5VFEwyjIAsPgJXRrLVzmiL3WNOBgB7tRMNpwvuubwa7F2U2GZqm2Kyf5HlHqu8N sVb009qEDtzUWhtYTTxRIFDuUIqaBblIzb0DqRpTFBUVny51cRSheVcAoUZDqix78NvW mQjYvXAkUgQAw9TL7IG6cD+Z4WwcqjBiAacOmPl7gm/7pVLB12glDXGcGgq84YqLFgdY 9NXi60gPEyKNej+Vk1QnEoWSlYwFckFo+2znjP1FXYZrX6bf5Q7W5LnB1OFsr/cQ9Zi8 EW3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:cc:content-transfer-encoding :mime-version:message-id:date:subject; bh=Yk5g4E1oOOxyZWouEDSkn3wBtFgCalVkAqRyr4Twh04=; b=phWWqHNGEBb4ijRW1QXC7fh4m8tsn62itGFoVd91yoMgXgoE3FnAO+1NRgCNoXruWs nXQjnVsuL6bjzoXxclWs55phgIZSQcWZudsmVHDfQvcKLznANeS0J4+Zk3V89mQXQ59b 1VFWx5V4FCrjssLOp5y7d0A6+iAXYm9z6rwxiRUxRCG/dng165OdlnqzSiszWUpoL8F8 7u8H2chZb1DcwEr+GEPaKxw3vYQoyYbaawrl0Hleejhr9lH6jXcaESN+WNQp99dmMAxB 3fq6N1RQdl3MzNdmR/SU58XKRDDqkx114pVY4hcdbX5D2JzNxR+pCjQbaIhqAX6YQ43O u+4w== ARC-Authentication-Results: i=1; mx.google.com; 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 n15si9116606plp.354.2019.06.23.23.34.32; Sun, 23 Jun 2019 23:34:48 -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; 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 S1726312AbfFXGTF (ORCPT + 99 others); Mon, 24 Jun 2019 02:19:05 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:39354 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725267AbfFXGTF (ORCPT ); Mon, 24 Jun 2019 02:19:05 -0400 Received: by mail-pl1-f194.google.com with SMTP id b7so6287000pls.6 for ; Sun, 23 Jun 2019 23:19:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=Yk5g4E1oOOxyZWouEDSkn3wBtFgCalVkAqRyr4Twh04=; b=MNJap4nKmkM9SQwMl3zGpywLZvknKFpQ6LTJt89YWLL+w6BOUWU3zL9owvr9SZBjSm Qjc+WpNVCkWeEWjgMNxEolfp416RXnQLkNIlZfegpShsr3XuiMDzhxylaSJ7eKx53Fzh lDGOlRBBLqBWCX/XrhctbDu0B/3nQyl3ltSWuQbdljskTRcDLUY7IuYqspiuooH8bcrT H2ZQyxP4aAWBERjG685Zhx64YWqU00CXOBhvBpewivVnOYY5A4w63kcC9jNSL7RxYkc1 iykpYmnYYd09ZuPv3R5mglTunb3cKGzNjAd7K+ecsWNt7IL2man7oSajuRhMJBlj0VD+ pEIw== X-Gm-Message-State: APjAAAUfq2eqec9C4Hyfmyf/489Q6bSFE5lrdVn+bK9yTPtjkVds7Cwi jSahIDk5yhW2sWnxuio+x825qw== X-Received: by 2002:a17:902:ba82:: with SMTP id k2mr141275004pls.323.1561357144505; Sun, 23 Jun 2019 23:19:04 -0700 (PDT) Received: from localhost (220-132-236-182.HINET-IP.hinet.net. [220.132.236.182]) by smtp.gmail.com with ESMTPSA id v9sm9874143pfm.34.2019.06.23.23.19.03 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 23 Jun 2019 23:19:04 -0700 (PDT) Subject: net: macb: Fix compilation on systems without COMMON_CLK Date: Sun, 23 Jun 2019 23:16:01 -0700 Message-Id: <20190624061603.1704-1-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: nicolas.ferre@microchip.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: davem@davemloft.net Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Our patch to add support for the FU540-C000 broke compilation on at least powerpc allyesconfig, which was found as part of the linux-next build regression tests. This must have somehow slipped through the cracks, as the patch has been reverted in linux-next for a while now. This patch applies on top of the offending commit, which is the only one I've even tried it on as I'm not sure how this subsystem makes it to Linus. This patch set fixes the issue by adding another Kconfig entry to conditionally enable the FU540-C000 support. It would be less code to just make MACB depend on COMMON_CLK, but I'm not sure if that dependency would cause trouble for anyone so I didn't do it that way. I'm happy to re-spin the patch to add the dependency, but as it's a very small change I'm also happy if you do it yourself :). I've also included a second patch to indicate this is a Cadence driver, not an Atmel driver. As far as I know the controller is from Cadence, but it looks like maybe it showed up first on some Atmel chips. I'm fine either way, so feel free to just drop it if you think the old name is better. The only relation is that I stumbled across it when writing the first patch.