Received: by 2002:ab2:6816:0:b0:1f9:5764:f03e with SMTP id t22csp1289434lqo; Fri, 17 May 2024 18:44:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVIPeD54teRuuMWce9pxsAw0faJVWnmU/LhTnmgSFWin9o5fb1ij60Ic9MgbpTDlUz1qGM2gXqRUrsy5w12M5Z34DkrPyDHW4fVLz4UUA== X-Google-Smtp-Source: AGHT+IGeQGDqmMS6tEklXtVLYp91hYprd4XFaPe/bcKywLkykNotPPG/Fr7vIXJWKSCqh57bEXX4 X-Received: by 2002:ae9:f00d:0:b0:792:b970:ecab with SMTP id af79cd13be357-792c759ab68mr2209757385a.25.1715996647417; Fri, 17 May 2024 18:44:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715996647; cv=pass; d=google.com; s=arc-20160816; b=EnlPEkplfiCshSZFD8hwqjDr1VFQqJPgVXRabh57a7ZuUCQMjbP/iN12K2kq+GTp3r S6T9l6oumThqMICt8JZRCiepZfF6n79C9AWYnvnAoxrEXfo5U9K9W/o8QE1Jh36U4xWb 9qPJUfmXXeTUaGljTdcRFGv08P1MmjlB2olP2adg8Rbr89GVwERP6hDaWGeznX2f4Hxp YRDFqxxrdz3IMimWrqO+ru9QjpAe22VJk5QKQEYE0lvlPdeATKnFyzVn+VJwvjsG1NV3 Ndq8w9RIliVW6L67AkGsKxAcUnL4z1z0BxX3VKJLGH0gW+A/A4GNJ2Y9fW9H+7NAovdP TNmg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature :dkim-filter; bh=ciRY/oNH7Pr9VAZ4Mv/e3qGv1izWj9doEd37rAcP5cM=; fh=gg5Fl5S6y2MC5YLCA04WVhNG0wxAYrSORGgGsIMAM2w=; b=xWHG9JJO/e9fShI5QPIX2i58QVV+n515QoXE4M+FD2I/kLDID1rZZgLtTCOt30KvZh TiW9UpnkFVpnmN3H2QEwdrU78hCQZaS3G+awPR5RIFEY8sSUFRyikOwFmjv/5zoPhRE9 QZQI3ceKaCJriqNpxm6MxFM5sRjdell+TrZ7sTftNCf5/I/eXrLXbM7+OrvURenLV5bw yerbhvuiDzzDwnGxRT50MJakexKwB5507021gWQ9yZSIleGvdPcRTD8dMahqwgRWGm3S XWJ5rkNq/KPFmJ1yzOXepT5/9yuLIEVpn0jyxOKCiHpip9tfSgcX7OSs9qCtpUAHhE31 Z14w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=IMf90iAc; arc=pass (i=1 spf=pass spfdomain=sberdevices.ru dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-182741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-792bf33ada9si1959485685a.503.2024.05.17.18.44.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 May 2024 18:44:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-182741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@salutedevices.com header.s=mail header.b=IMf90iAc; arc=pass (i=1 spf=pass spfdomain=sberdevices.ru dkim=pass dkdomain=salutedevices.com dmarc=pass fromdomain=salutedevices.com); spf=pass (google.com: domain of linux-kernel+bounces-182741-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-182741-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=salutedevices.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 17E271C213C1 for ; Sat, 18 May 2024 01:44:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C2E564A2D; Sat, 18 May 2024 01:44:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b="IMf90iAc" Received: from mx1.sberdevices.ru (mx1.sberdevices.ru [37.18.73.165]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EB0181373; Sat, 18 May 2024 01:43:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=37.18.73.165 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715996641; cv=none; b=Ut/Wq9iUlNt8g4/JC358DNfrhpneX64XiHaX9Hm/WPvvr7FK3wIDpbcZjYxTqIW4dNf6Ivzr7sYTDxgHQwNxk+JZ69/ilJjZxGEEDVcHBwtE0QpU2LRbCWYy4qR1bkZgZWulj9UuNUXEWEFKWh3X0WGTLp1yIvc7k8QdrwTnRaQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715996641; c=relaxed/simple; bh=HsKsucMsmS6BafeRf0/gX3JGyFGFDkR+bzzDzyWfx6Q=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=aznWy1aetaq9paASBC/XZpw6gFWaaT7H0ofCRxsLgDGPtG2hLnuAw4gNV69dSqV0d4TtfW7222vFys75kj5fU5S5PP4scLCyGwb+1d2gykTQqWjZ/L5jjAj6nZ2yMXaTjNqjBtA+wDxnu+pVKd4zdht0/KXpSEsh3Sj0qD7BIwI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com; spf=pass smtp.mailfrom=sberdevices.ru; dkim=pass (2048-bit key) header.d=salutedevices.com header.i=@salutedevices.com header.b=IMf90iAc; arc=none smtp.client-ip=37.18.73.165 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=salutedevices.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sberdevices.ru Received: from p-infra-ksmg-sc-msk01 (localhost [127.0.0.1]) by mx1.sberdevices.ru (Postfix) with ESMTP id BB146100008; Sat, 18 May 2024 04:43:54 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.sberdevices.ru BB146100008 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=salutedevices.com; s=mail; t=1715996634; bh=ciRY/oNH7Pr9VAZ4Mv/e3qGv1izWj9doEd37rAcP5cM=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type:From; b=IMf90iAcoSN85RZyksX59dlMj9rPJKI1jtqcZgaIRUrqVMj+wTg42Ws8be2pJG7oA 18W2bAU12HxBvhxLOY07WeSIBO5ezTql8gIFvhkVGZ9Chh/ej9De7eFRJL4o/3AiQR 2mQUtooEDPzLjYvShSLKVNdagcYmF1gdjsBKWGxH5qEiUi2ne9CYhMPEqHbs/waSoe QEdiy6xcttSndUVD8hBKXzcoRS1uvEozFjjr3kXgFQra8AdK7RNTFPn0At0velRA0J uW8rFYg69KnO7Ug36X/awf8NIN1XxDKXgUr6OXvcXieUHMDeB48iEUfNBWvVp9XuuP SFxHs/OOCskFg== Received: from smtp.sberdevices.ru (p-i-exch-sc-m02.sberdevices.ru [172.16.192.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.sberdevices.ru (Postfix) with ESMTPS; Sat, 18 May 2024 04:43:54 +0300 (MSK) Received: from [192.168.20.2] (100.64.160.123) by p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Sat, 18 May 2024 04:43:54 +0300 Message-ID: Date: Sat, 18 May 2024 04:43:02 +0300 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH 0/9] reset: amlogic: move reset drivers out of CCF Content-Language: en-US To: Jerome Brunet , Philipp Zabel , Stephen Boyd , Neil Armstrong CC: , , References: <20240516150842.705844-1-jbrunet@baylibre.com> From: Jan Dakinevich In-Reply-To: <20240516150842.705844-1-jbrunet@baylibre.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-ClientProxiedBy: p-i-exch-sc-m01.sberdevices.ru (172.16.192.107) To p-i-exch-sc-m02.sberdevices.ru (172.16.192.103) X-KSMG-Rule-ID: 10 X-KSMG-Message-Action: clean X-KSMG-AntiSpam-Lua-Profiles: 185325 [May 18 2024] X-KSMG-AntiSpam-Version: 6.1.0.4 X-KSMG-AntiSpam-Envelope-From: YVDakinevich@sberdevices.ru X-KSMG-AntiSpam-Rate: 0 X-KSMG-AntiSpam-Status: not_detected X-KSMG-AntiSpam-Method: none X-KSMG-AntiSpam-Auth: dkim=none X-KSMG-AntiSpam-Info: LuaCore: 20 0.3.20 743589a8af6ec90b529f2124c2bbfc3ce1d2f20f, {Tracking_smtp_not_equal_from}, {Tracking_uf_ne_domains}, {Tracking_from_domain_doesnt_match_to}, d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;sberdevices.ru:7.1.1,5.0.1;smtp.sberdevices.ru:7.1.1,5.0.1;100.64.160.123:7.1.2;salutedevices.com:7.1.1;lore.kernel.org:7.1.1, FromAlignment: n, {Tracking_smtp_domain_mismatch}, {Tracking_smtp_domain_2level_mismatch}, {Tracking_white_helo}, ApMailHostAddress: 100.64.160.123 X-MS-Exchange-Organization-SCL: -1 X-KSMG-AntiSpam-Interceptor-Info: scan successful X-KSMG-AntiPhishing: Clean, bases: 2024/05/18 00:39:00 X-KSMG-LinksScanning: Clean, bases: 2024/05/18 00:41:00 X-KSMG-AntiVirus: Kaspersky Secure Mail Gateway, version 2.0.1.6960, bases: 2024/05/17 20:54:00 #25244128 X-KSMG-AntiVirus-Status: Clean, skipped This is a nice rework! But unfortunately after applying these patches at least USB doesn't work on A1 SoC. My assumption it is because RESET_MESON is now unselected due to dependency on AUXILIARY_BUS. On 5/16/24 18:08, Jerome Brunet wrote: > This RFC follows the discussion about having reset driver in the clock tree > [1]. Ideally those should reside in the reset part of tree. > > Also the code of the amlogic reset driver is very similar between the 2 trees > and could use the same driver code. > > This RFC moves the reset driver of audio clock controller of the g12 and > sm1 SoC family to the reset tree, using the auxiliary bus. > > The infrastructure put in place is meant to be generic enough so we may > eventually also move the reset drivers in the meson8b and aoclk clock > controllers. > > [1] https://lore.kernel.org/linux-clk/e3a85852b911fdf16dd9ae158f42b3ef.sboyd@kernel.org > > Jerome Brunet (9): > reset: amlogic: convert driver to regmap > reset: amlogic: add driver parameters > reset: amlogic: split the device and platform probe > reset: amlogic: use reset number instead of register count > reset: amlogic: add reset status support > reset: amlogic: add toggle reset support > reset: amlogic: add auxiliary reset driver support > clk: meson: add auxiliary reset helper driver > clk: amlogic: axg-audio: use the auxiliary reset driver > > drivers/clk/meson/Kconfig | 6 + > drivers/clk/meson/Makefile | 1 + > drivers/clk/meson/axg-audio.c | 108 +-------- > drivers/clk/meson/meson-clk-rst-aux.c | 84 +++++++ > drivers/clk/meson/meson-clk-rst-aux.h | 14 ++ > drivers/reset/Kconfig | 1 + > drivers/reset/reset-meson.c | 210 ++++++++++++++---- > include/soc/amlogic/meson8b-auxiliary-reset.h | 17 ++ > 8 files changed, 293 insertions(+), 148 deletions(-) > create mode 100644 drivers/clk/meson/meson-clk-rst-aux.c > create mode 100644 drivers/clk/meson/meson-clk-rst-aux.h > create mode 100644 include/soc/amlogic/meson8b-auxiliary-reset.h > -- Best regards Jan Dakinevich