Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp106079pxb; Wed, 11 Nov 2020 21:47:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyT8q8lmswkU8lCg9mYcMykhDikGVPwmz/DRaH6Jj5s2K+JCPCNF4x+IsrmbVPBdJ0CmT8 X-Received: by 2002:aa7:d64b:: with SMTP id v11mr3350545edr.253.1605160052557; Wed, 11 Nov 2020 21:47:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605160052; cv=none; d=google.com; s=arc-20160816; b=eCtabHibRVrSU+vbGypkXqgj64LXbsgLBaaW6+eCczvmjUtg4kbHxaswGy6rwQOCzU fPsVqxP+C6MMYe73utJEZ0iG8R8FChsf09Dli4C6zx9j5L3zONQiybs+tQ3VE07lpdu0 udJpX+9wqAivnKl19WBeF+U2pF6RJDhw7xvO0iHQtoana9jRKz1MCtsVVaTw21rsYTK5 JqBJ4raXugNOSo2MZtxJgee6yqnlYJSFp5LyYikd/EpacpNuKZdU7V2uZWhCGshgXNm7 ZvLyO9kn4khXKZBVgoOrOmcL3CU9dwxo8YhXXG75BzZzZbJKaEAYivG4TO7TJNsCpZLg dD8A== 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=rbpdEV5oJs5EmTQ4qqBH8SAi38sGGbLtW6CQKc149hs=; b=GeAEbPKkETgfLCHgXhxdpjNCfJYJDhF3+kaqP9zoLSs8R1Lak6arQHIA+KBZE7/NDI envXUI9KyJ2xYIJGAdent6otOYkEpMr+EH8os/MfA17pWEzg2CFpUPdsAsmjQMluDvQ2 EfFZ2EHTaBeHsQrhYeZTyXMfpjmbmX+/x62JR8oA4d6UV9fUcdKtxx+jQqmMCt9C1NVf DheU+qlJYrBUmK/Yj5FBBTFy7zMMyLUDNMPoTp7LCmp7ND05hCti0fsASEGpo6jPDZGx 5A6bAI80Ey40ptiT1vCcdVl3WommYENEMPCPy4QhMvsnS+f0fijidcHggQ5np3cFb5lF Fk0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=QJHjI8PK; 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 l91si3166954edl.566.2020.11.11.21.47.09; Wed, 11 Nov 2020 21:47:32 -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=QJHjI8PK; 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 S1726834AbgKLFck (ORCPT + 99 others); Thu, 12 Nov 2020 00:32:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52506 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbgKLBfY (ORCPT ); Wed, 11 Nov 2020 20:35:24 -0500 Received: from mail-io1-xd43.google.com (mail-io1-xd43.google.com [IPv6:2607:f8b0:4864:20::d43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 56155C0617A7; Wed, 11 Nov 2020 17:34:08 -0800 (PST) Received: by mail-io1-xd43.google.com with SMTP id s10so4379781ioe.1; Wed, 11 Nov 2020 17:34:08 -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=rbpdEV5oJs5EmTQ4qqBH8SAi38sGGbLtW6CQKc149hs=; b=QJHjI8PK16X+WFhTxpfikEQQBKesGLQy41FaqcLf/NYWYbNYkYVVY4hbzUW3/zu83+ 6LTXMHmPce3IvwNpRjh0UUYuL8X2qLjhdPiIxy706lUXRXEcc5pz3fkpGu81jquaTH+9 sKFgqy3n4wBPlNcT5mJDERmYeN35oyrxsu0A2IODkzQbLooR+w4nqX9mslkCSt5ISpS2 hAOgwGk6EzZkHldzpAi2aA1iEPC24vJwF3F0I3wnDGCMxZNCiJ+4sYLrw62wSb4ZpKWO KLFcdzbICoZltLeOVJSc2VZdHIqo2dbcpMPLoj+e9cmoqk0LKNPsI5f4H+WHK2mpZ1s/ Z/pQ== 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=rbpdEV5oJs5EmTQ4qqBH8SAi38sGGbLtW6CQKc149hs=; b=l4cASASad9JJNOv4xWs3ONSWG2rOPeeHfWvBoknAR+Lsg1GkQoNV9ZCqx7rc1yy5W4 AdCc27hgkS9GpUtl59QsX2J6InI8CKHcKv/hXnSJLzazxp0iQvwX0/QPAr2+hMCKwBXv OMniIiOz84UwhNKJXj0k0AnrKmuEfbyVkaJxUwFrv2tPV4/j08aH/8AQhbWP4ckhS+5L DzYgKcsybhBmeBqWfGkKDftNzGBmrPydptBkg6o0OsGXVfL4pGgbS/GP4VxmHtQmVBGM Scj/6yY/5aQSBLwHkVCaSPNBxdEgkm7Wnia7BrbdmwmCUrKr/g8P593Hw806IDaxxUjx xmaQ== X-Gm-Message-State: AOAM533ooXar4WQVB+Xox/elZBWTwy8LtsI8y6wAabT3blSFHPrc4qu3 FUU2VYePOzHMiLPuMes/s0H5HXUaYJsfARuuxc0= X-Received: by 2002:a02:a793:: with SMTP id e19mr21883768jaj.45.1605144847713; Wed, 11 Nov 2020 17:34:07 -0800 (PST) MIME-Version: 1.0 References: <20201111163013.29412-1-sergio.paracuellos@gmail.com> In-Reply-To: From: Chuanhong Guo Date: Thu, 12 Nov 2020 09:33:56 +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 9:26 AM Chuanhong Guo wrote: > > I've already said in previous threads that clock assignment in > current linux kernel is not trustworthy. > I've got the clock plan for mt7621 now. (Can't share it, sorry.) > Most of your clock assumptions above are incorrect. > I've made a clock driver with gate support a few months ago.[0] > but I don't have much time to really finish it. > Maybe you could rework your clock gate driver based on it. > > [0] https://github.com/981213/linux/commit/2eca1f045e4c3db18c941135464c0d7422ad8133 hsdma/eth/pio clocks are still missing in mediatek doc and I just made them up in the driver. Correct clock frequency for them aren't really important for them to work though. And another part I didn't finish is checking clock support for every drivers mt7621 used. Many drivers don't explicitly enable the clock and may be problematic when kernel gates unused clocks. -- Regards, Chuanhong Guo