Received: by 2002:a25:f815:0:0:0:0:0 with SMTP id u21csp3329873ybd; Tue, 25 Jun 2019 00:20:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxj8WcmqD8klYZsZx7t1vWZLliGEsbyZbWDXmU22RE5pQQctW6hKAR5iX0I/YVSsOCicznA X-Received: by 2002:a63:ee0c:: with SMTP id e12mr37825245pgi.184.1561447251512; Tue, 25 Jun 2019 00:20:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561447251; cv=none; d=google.com; s=arc-20160816; b=CRSrHIeS2lg/i7hPiC5QzdsKbgfJitzewXo+/iI0Ex8viTvf9xvSChRns7RlM0W8c2 eJbKf87WR+474gWoCLAsxsRRMxSdH+UfgiEAZm8lgF4aLffmq5TAM6mWVbf/F9D7Z6nX Ia8V9vhggGgFYGyOa44y2fx6X3kvWDjPacpeIduuIKZoSQBf8z+3sG6iIQfZcZf1qyA8 +bRpLj39jStAtAgFPR6gtfao5yGv9sJjpXLtdEeB03XpqAgMap4ifvuhAhoJBMhB2ZiG 8HTbaCqMMmBqbEcC3wTJHY43evlpjvoB3tMnMiMA206kZfOSbDv0/UlAJdR0brOCkh8g CFCg== 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; bh=HKmnr8tbebS+Y2cbIt4jQ7wpNYHliuH9KnODpvuyZwQ=; b=NG8rkU8jBz9n1EpDgMlAU6bKYp4I8REE0yIqCIo9kwbmjAsWGbpEvN8nTnBgK7uFcN oQToo1Y8KGZ2KBnfhgoLo45NIu+N40hsv68UVOXix2n93pYYx/QSpDQk3IvzrqIRS+Vj pqc323HXyUZcRLshNiJOpq42NnbeROvz7rH9po0lddqpb10x/ThNURY2wXYkaJ8eG+dQ k8Muj4XOmox7XlC6S0cDXXH5aNn612okZzn7iBY+hEndQZbwHj2OQgRpR9gQ2IUyQMYU RHtP03Pbj1kDU9x2IeE3ULQuOuokxRoOd9qWUfmLpytA1Qpmm3hVioNsUJIVlymvpwFW dWig== 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 t15si1906839pjr.46.2019.06.25.00.20.35; Tue, 25 Jun 2019 00:20:51 -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 S1727091AbfFYFQ1 (ORCPT + 99 others); Tue, 25 Jun 2019 01:16:27 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:35040 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfFYFQ1 (ORCPT ); Tue, 25 Jun 2019 01:16:27 -0400 Received: by mail-qk1-f193.google.com with SMTP id l128so11606519qke.2; Mon, 24 Jun 2019 22:16:26 -0700 (PDT) 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=HKmnr8tbebS+Y2cbIt4jQ7wpNYHliuH9KnODpvuyZwQ=; b=uMg8F8MXN5O8msr106FWfABJSM+tiVnpydaOtgIm37fXTNdJQ4KGwxUIu7VSgi4G28 9brvvkF9O/TbH2aXXYZ+kK4rKXpDRWjz5Tnwyu4fHPgFyCmE8n9fz8xgZBXgZ30Gr/PC jhjh1E1ta4t+FkxTr1kwxjaoFNx4AH7geIkvzmS17C7To8dBdfgVdDLojHvpDVeqTyna wVuAceLmSNDZopyH4YvOpR02/wOvyKzWO3BAGZbSIPHG3eAy0ExHSQGJAq8nwHmkDGQt tcWIEbNRJPVhMMj2L6Wp65IwbLLUClC4zHDvsnlnrxco7GiEO+r7Q82Yt+bpJ8r9TPTB tZuQ== X-Gm-Message-State: APjAAAUwBg44jmJTdxABibrcLAO285+OVj08epzC9iduEgLAgSGs0jhx h5RY/kIh+o4gddj1x/LSF5dcCsM32W4GAMQy4Rc= X-Received: by 2002:a05:620a:1256:: with SMTP id a22mr58234084qkl.96.1561439786450; Mon, 24 Jun 2019 22:16:26 -0700 (PDT) MIME-Version: 1.0 References: <8bf8f052-cb9e-a4a6-4a7f-584cbd20582d@microchip.com> In-Reply-To: <8bf8f052-cb9e-a4a6-4a7f-584cbd20582d@microchip.com> From: Harini Katakam Date: Tue, 25 Jun 2019 10:46:14 +0530 Message-ID: Subject: Re: [PATCH 1/2] net: macb: Fix compilation on systems without COMMON_CLK To: Nicolas Ferre Cc: palmer@sifive.com, Harini Katakam , David Miller , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Michal Simek 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 Tue, Jun 25, 2019 at 4:17 AM wrote: > > On 24/06/2019 at 11:57, Palmer Dabbelt wrote: > > External E-Mail > > > > > > On Mon, 24 Jun 2019 02:40:21 PDT (-0700), Nicolas.Ferre@microchip.com wrote: > >> On 24/06/2019 at 08:16, Palmer Dabbelt wrote: > >>> External E-Mail > >>> > >>> > >>> The patch to add support for the FU540-C000 added a dependency on > >>> COMMON_CLK, but didn't express that via Kconfig. This fixes the build > >>> failure by adding CONFIG_MACB_FU540, which depends on COMMON_CLK and > >>> conditionally enables the FU540-C000 support. > >> > >> Let's try to limit the use of #ifdef's throughout the code. We are > >> using them in this driver but only for the hot paths and things that > >> have an impact on performance. I don't think it's the case here: so > >> please find another option => NACK. > > > > OK. Would you accept adding a Kconfig dependency of the generic MACB driver on > > COMMON_CLK, as suggested in the cover letter? > > Yes: all users of this peripheral have COMMON_CLK set. > You can remove it from the PCI wrapper then. > Yes, +1, both Zynq and ZynqMP have COMMON_CLK set, thanks. Regards, Harini