Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3400612ybd; Tue, 25 Jun 2019 01:49:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzPk/ecpO9cRT/K1tL3REd4CBJDq8YkcpvDbcMkiXllNXPWlFt4d1MHEQPdAA5ErI2WtI75 X-Received: by 2002:a17:902:2bcb:: with SMTP id l69mr46462726plb.155.1561452566946; Tue, 25 Jun 2019 01:49:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561452566; cv=none; d=google.com; s=arc-20160816; b=VCXZCf3FRkAMSu/J8+t18HMWIQD0yzPSRd+iuy7RQv5GLIDHf0Jx5rz9FeIFnXKCUR V3p3IWU6IK6EGUfAyIEiiZDkhWuq+p4oE8PfKAcePSw0UjYvuqbSVF/FTMzU9fBA/nbS rq4AMSuDYExp6aazzynciO2mydBlLYRwERv16NYyQaoeUp1GQyhDn+lK6tBq9mMM6t9L MziQkO/EzQTCI24UkaCvOGM5GN0GU041Ug8RX1+KIqjYo7/sIeruK+9ch30NUU30tAyP BapsIrmmXLmTGUIK2pBpTUiCVHwaEpy+twGZtx0BvivFkfFi2ct/V+n+3SsP1g8XpRWX tVcQ== 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=SbHI+2ZPe2F4trO/RmKldIi3BUNe0clBDqy+3ySKREk=; b=zJm7xaEyo5bW7LTnv4P1UW+N9kznRIKrXuBRAdaT3x9EWqXk8J8+OwQBwFRsVsZRPN etscaowY6uACGcl3pm4+I1SHh2antrWi7xmSNLrXa2v/BOMYQB2CXVijHITnW3MCvnd1 /3tPDDINBcaN11cKQUQeFSgGYKn9DRt4eCabsz+Y7dTwWGr1fuoxJmnz2vdJ8tm49TBF tq52zCHxi1Povjse7j3cHOcFdvxjYjhXGxLf7ZiUIB/wX0dxTtg0nwiusz5ID3C0L05E VV7/0h+Lmk2rxbM/Kv2RH9BDZo5JAKlsWPYdqvEjyGBluVU7yFDSuYgY0pY9eiDn63vW J9iw== 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 33si12747939pli.144.2019.06.25.01.49.10; Tue, 25 Jun 2019 01:49:26 -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 S1730851AbfFYIs5 (ORCPT + 99 others); Tue, 25 Jun 2019 04:48:57 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:37922 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbfFYIs4 (ORCPT ); Tue, 25 Jun 2019 04:48:56 -0400 Received: by mail-pl1-f195.google.com with SMTP id g4so8447801plb.5 for ; Tue, 25 Jun 2019 01:48:56 -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=SbHI+2ZPe2F4trO/RmKldIi3BUNe0clBDqy+3ySKREk=; b=Ln6MRThspN5yLcmhMSc5mI3lxabCG+/8pwVbgIs+S4arEpy//800m+lc+5vwtmDk+u UDqvJB9jJsAstkMxuOHftK8Y2Bz8EercnXYgUcPRH7H1WQwlmOWuy8Cvz2hZwaOvNML9 5JB1MX+cz2qvNAgzZzOpsLZChAIbUsIr2mgGe8KX9tUhT++dSLqVUdI2Qrh3Hlk/Im+j yN/RzKgv8lV07jXXAytUIRnzcnG5dhzFz/QYy29OjKXtlNA8yvEZe1x6LiXLE8nTo2ZL 971bogs830TREYDCtOnUnAbTK3+awrRKaE6Oc0A2wRUHMRtFgJOXq8TmYqXergLs9jnu 74LQ== X-Gm-Message-State: APjAAAWQ7tI4kGCLVlKP1+Ss9EAWsHO51o8AyQKN8RiK5TdO6WF3ejF7 17X13F0yaS4dNUglk9TfRZQTwpHMpgZrMNBT X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr103841484plb.114.1561452535820; Tue, 25 Jun 2019 01:48:55 -0700 (PDT) Received: from localhost (220-132-236-182.HINET-IP.hinet.net. [220.132.236.182]) by smtp.gmail.com with ESMTPSA id e26sm14280998pfn.94.2019.06.25.01.48.52 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Tue, 25 Jun 2019 01:48:54 -0700 (PDT) Subject: net: macb: Fix compilation on systems without COMMON_CLK, v2 Date: Tue, 25 Jun 2019 01:48:26 -0700 Message-Id: <20190625084828.540-1-palmer@sifive.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: davem@davemloft.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: nicolas.ferre@microchip.com, harinik@xilinx.com 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 a dependency of COMMON_CLK to the MACB Kconfig entry, which avoids the build failure by disabling MACB on systems where it wouldn't compile. All known users of MACB have COMMON_CLK, so this shouldn't cause any issues. This is a significantly simpler approach than disabling just the FU540-C000 support. I've also included a second patch to indicate this is a driver for a Cadence device that was originally written by an engineer at Atmel. The only relation is that I stumbled across it when writing the first patch. Changes since v1 <20190624061603.1704-1-palmer@sifive.com>: * Disable MACB on systems without COMMON_CLK, instead of just disabling the FU540-C000 support on these systems. * Update the commit message to reflect the driver was written by Atmel.