Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3815614imm; Mon, 11 Jun 2018 02:10:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIOHDSKjOo2PgxbkfKtYjhevyRp26eoEpzCF7C/DjGWjcQYOzOVF3uYJJgJtFYUTtd32eGx X-Received: by 2002:a17:902:24e:: with SMTP id 72-v6mr17385262plc.87.1528708237367; Mon, 11 Jun 2018 02:10:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528708237; cv=none; d=google.com; s=arc-20160816; b=fvVMxaqT8wb4eXEYmDQp07diKAJmhQNUZFUeTKJ7VI/JF09VSKvlfiljs7XG3b2DeR gc+0zmrQ9fx9uoiKg4n1NyOg2TkJH3EJVcvsKLGV/NWbgmMKYJv271mlQkm42kRSJkUI hTlIJUKrtHVyjkWkoIeNqydzMMm4WXnPsQzHzlObxb8wNgvhkwoOEkT3Yx97kgCNipj6 Vr82go6ceXrlv59R5TqQWi/S33I3rYin9PZb8XYgDsI2/Yn7kJZIAMfsDyitSCT+MGxE ot6NuiiozfEHuSz47zsIDGjYeH8zC/GxcgaPqCZjnyoVGvUW46n74nF94Zm3JR8xmqXm IzsA== 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:arc-authentication-results; bh=yUwOeTLsw6vLCJAdkNMLBMN5py7rxS7EW1wp2CAtkHU=; b=Kp8Gcu1yMlFIN6mdTreA/Npz8GpCUiR7x60f/FT8xqr7pqvU3wIMmnNi3J51UOa+nk Dc70oXqPXZQPR+lMqywxIAZmybRm7sioNGHbq8+9YGMAGNapor899gbuXe3NRawDUZCq IKHTyohuyty7HEPy21NG3l3R4GjdGAueQ8K6gzTR/9IPrjrqOqBMZAHPOf56waWOKDX3 pTGMXt51JN1rI/FbGZzYF2qEvXgFQzX7EydbBy1x9+uJWI2DK00KUZxVc5L1qqSIhfW2 H1ayryI8L/1vLgXky0eB3dppuOoiivMRVhS/2BW0DpKoKepo+1OdBTI03moOcXrKQXUz 4fGg== 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 84-v6si21147207pfa.60.2018.06.11.02.10.22; Mon, 11 Jun 2018 02:10:37 -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 S932526AbeFKJKA (ORCPT + 99 others); Mon, 11 Jun 2018 05:10:00 -0400 Received: from mail-ua0-f195.google.com ([209.85.217.195]:32845 "EHLO mail-ua0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754083AbeFKJJ6 (ORCPT ); Mon, 11 Jun 2018 05:09:58 -0400 Received: by mail-ua0-f195.google.com with SMTP id m21-v6so13057702uan.0; Mon, 11 Jun 2018 02:09:58 -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=yUwOeTLsw6vLCJAdkNMLBMN5py7rxS7EW1wp2CAtkHU=; b=J16k1ob2rCGYy4QnYIHXnPZ3543Iy3OYwnE/m+kec3g9vZFrqNx95ghu/mNRzzvNOp 3mBHiKJvNhhPwLnOLGKcO5ay12HmghNQ+Z3C/a4Ism9YCFwve+yfjNw0a9sw+3o+SpyR jsEGglsx3Ahwp7n9bEDV/yEFUbMNXPwhA/In9qBuv8eDwZg9nFbDfWPROJporcDEQTjE lVxOcWSQLX2Wlg4Eg6ssAlNwRi910WMdD2EMBF8jTfNBTOxgE8RnoaE33M3eMeW6zIp1 fJR9WJN17In8/iZW25KRggbGEssSb0yyhJsp6z2sowPG4mLQ6XoEPCOudoszZZ61hBso Fb+g== X-Gm-Message-State: APt69E087s8vMD/yKGvjjul3ddgA4FbIzCcivV1vZSdw6FZ5GOgqdpOd aguwfo/LP9BPgDgIA9KfBWEnSZgfnwTDPwmwFKc= X-Received: by 2002:ab0:96:: with SMTP id 22-v6mr10647389uaj.4.1528708197541; Mon, 11 Jun 2018 02:09:57 -0700 (PDT) MIME-Version: 1.0 References: <1528706663-20670-1-git-send-email-geert@linux-m68k.org> In-Reply-To: From: Geert Uytterhoeven Date: Mon, 11 Jun 2018 11:09:46 +0200 Message-ID: Subject: Re: [PATCH 0/3] Legacy clock drivers: Normalize clk API To: Arnd Bergmann Cc: Greg Ungerer , Ralf Baechle , James Hogan , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Corentin Labbe , "David S. Miller" , linux-m68k , Linux MIPS Mailing List , netdev , Linux Kernel Mailing List 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 Hi Arnd, On Mon, Jun 11, 2018 at 11:02 AM Arnd Bergmann wrote: > On Mon, Jun 11, 2018 at 10:44 AM, Geert Uytterhoeven > wrote: > > When seeing commit bde4975310eb1982 ("net: stmmac: fix build failure due > > to missing COMMON_CLK dependency"), I wondered why this dependency is > > needed, as all implementations of the clock API should implement all > > required functionality, or provide dummies. > > > > It turns out there were still two implementations that lacked the > > clk_set_rate() function: Coldfire and AR7. > > > > This series contains three patches: > > - The first two patches add dummies for clk_set_rate(), > > clk_set_rate(), clk_set_parent(), and clk_get_parent() to the > > Coldfire and AR7, like Arnd has done for other legacy clock > > implementations a while ago. > > - The second patch removes the COMMON_CLK dependency from the stmmac > > network drivers again, as it is no longer needed. > > Obviously this patch has a hard dependency on the first two patches. > > Yes, good idea. > > Acked-by: Arnd Bergmann Thanks! > One question: what happens on machines that don't support any CLK > interface, i.e. > that don't have any of COMMON_CLK/HAVE_CLK/CLKDEV_LOOKUP? > > I guess those are already hopelessly broken for many drivers, right? Nope, they (e.g. m68k allmodconfig) build fine, as they don't define CONFIG_HAVE_CLK. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds