Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp778717pxb; Thu, 12 Nov 2020 16:44:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwnNGtydcmjnNITMm68A1tNwcx3IGCf5qnJoOusrW5/sw/U4JHtoya+9vQ0h7anpJ7MPhky X-Received: by 2002:a17:906:cede:: with SMTP id si30mr2000076ejb.16.1605228279956; Thu, 12 Nov 2020 16:44:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605228279; cv=none; d=google.com; s=arc-20160816; b=O+rDNwbJzOwVBzSK8Hb149HFdmJHhXmVhEH6I3+l/gAH+vR1723uV/RuoFTx7+vK2r /5d3+dj48txwa516obj5mcmKtMb/u656KTyBnMoTGH1hHz0bqYibifXP0sVKLkSmpjgp h6r7zbp97TvwEFJtHPWXU9GG0O/sc0kAJQb6iCpzyvgjuCc0sdZ+BL4ASr/7x5Tkzl3/ iGyCXia0TzGafYiPoqrPWkIdXjQDex1ij+2GJXjdLN4p1/I8TQUL2W43t0EScKXZSs66 Cp35NlriXyptxXy3e7cz8QxP7wImxR15pCJq+NF+seu+uSFjrxkQXtk3XgxMjZSRslV8 ViSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=KwsRYTIelL+rQfaWByBY2jDX2TK6VO5EvbvbPDRhoZM=; b=N31zHqXddAI5COOIbKdQEfrvm3zL7MYOBfOiGX539d8yM/pxDm2lrjRAyi8VKmfqRU OnxdFCxxD7hbMY1pr3sbm+xqJo7z9xkifysSLz49gemSbQI3K54aauh19xxbglogjQ0K mqh++1A0itW6pUsbuxhALmO2M6oApdWBP8/snKv8ohx2SxPtEBpAtvsSA8dDGjmeR7Rv DW+EoSK3FCRJqntNWA75nhjaERZuY5xw+UGCC3Nv4M2rS00EdtUL6E6fva2Re+UjfIdX jETtVE00dHpqcpJ0NbLn1efMomYG8KSa4gGxkZQdO6gYmM53NNxft/RBDvtwALarNU02 XDmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ItHGWFKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id co26si5295672edb.209.2020.11.12.16.44.17; Thu, 12 Nov 2020 16:44:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ItHGWFKB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726143AbgKMAkX (ORCPT + 99 others); Thu, 12 Nov 2020 19:40:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgKMAkU (ORCPT ); Thu, 12 Nov 2020 19:40:20 -0500 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A24DCC0613D1; Thu, 12 Nov 2020 16:40:20 -0800 (PST) Received: by mail-io1-xd42.google.com with SMTP id u21so8036364iol.12; Thu, 12 Nov 2020 16:40:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=KwsRYTIelL+rQfaWByBY2jDX2TK6VO5EvbvbPDRhoZM=; b=ItHGWFKBEnfm/3yEFqHr4tpisqmr5LgUINwjxMECLYJ5Sd0mrylFpr6fulRr09T39A FUUYt+sm3Fd7f8p2rl+B7maioKkcie9N4EhRWXwPF/pYXsLT5Xp0px5KMDQKOiAHzFuz DmF4vKn9hm5xsAeym/TPrhjYeBX4dVXeP7EA/BBrlVnqHUaIcLmz+AF/DQPoywiSDnm6 oeFc0khKuJTd4ef7M7+M10XxOqHjf9ApbH+foEsKEUUmO6gN2bjEGJIk3Z7e4UrEaEHK OTdYpoph/DPIviUOLUzu4NDn/o+02lX26JiHJmJqB09rii4ME1C3QRIepAziPJ2/pHG/ IpoA== 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=KwsRYTIelL+rQfaWByBY2jDX2TK6VO5EvbvbPDRhoZM=; b=SKgtHzVjCHs76Nkl7HOIv/yd2UlnaQ0p0ki2oE3I9yV4gl0Qf7A5whz8yFWtEXyjKL 3GzSgeuPKlTu93tjCv5DfCuDvYA2LFpNb3++HuHlQG33gl0rH3TdJgUF2SFUH22cXjoh OAYy5lNsp46912uJSPVQX62T8/Yx19wjzaPTSSjcBL3K7cPdok8LUhkOmnxfyBoqmha0 iqehVTA9tZoUKyCZ+JcKxc8OxAnJ8QsSsy5zBErUGxnzGNYY9+ai/XofeslimQceZObI ypTmENC6UW351iw2PMiZA28h26lirmx+Jtt3uQuLUj90MeX4Yk5W5NNFs0cT4G0yeDMb qjjg== X-Gm-Message-State: AOAM531oBX1H6HtAp2DX0Y8MqMv1/Maei7nM6IIZN/SL0l2zjENBgYBj wM2g1ElMlxaHHZ31kwN9rkmVuoXqLXTMDXwl9o0= X-Received: by 2002:a02:c995:: with SMTP id b21mr1977945jap.65.1605228019942; Thu, 12 Nov 2020 16:40:19 -0800 (PST) MIME-Version: 1.0 References: <20201111163013.29412-1-sergio.paracuellos@gmail.com> In-Reply-To: From: Chuanhong Guo Date: Fri, 13 Nov 2020 08:40:09 +0800 Message-ID: Subject: Re: [PATCH 0/7] MIPS: ralink: add CPU clock detection and clock gate driver for MT7621 To: Sergio Paracuellos Cc: Michael Turquette , Stephen Boyd , Rob Herring , Thomas Bogendoerfer , John Crispin , Greg Kroah-Hartman , Weijie Gao , jiaxun.yang@flygoat.com, "open list:COMMON CLK FRAMEWORK" , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , open list , "open list:MIPS" , "open list:STAGING SUBSYSTEM" Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 12, 2020 at 1:23 PM Sergio Paracuellos wrote: > > To avoid weird behaviour because of some drivers are > not using properly clocks we have the CLK_IGNORED_UNUSED, which as you > can see is currently being used in my code. Using that all seems to > work as expected as it is now. The whole point of having a clock gate driver is to gate unused clocks to save (maybe a tiny bit of) power. It's other peripheral drivers' fault that it doesn't enable clocks properly and we shouldn't just work-around the problem in the clock driver by disallowing auto clock gating. -- Regards, Chuanhong Guo