Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4911830rwb; Sat, 10 Dec 2022 18:29:51 -0800 (PST) X-Google-Smtp-Source: AA0mqf7wUdak05h6YTMLpD9Tc65LxSbFV5RQdNQ5AwH+Tv3h+sxOqH8r+Er5PGG1zEbTAyxIJigx X-Received: by 2002:a17:903:442:b0:189:469c:dc0 with SMTP id iw2-20020a170903044200b00189469c0dc0mr9687198plb.7.1670725791454; Sat, 10 Dec 2022 18:29:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670725791; cv=none; d=google.com; s=arc-20160816; b=NEFepXSxF2GADsN55xxGe0VY7ycfZOrpTOu4bZl0lhWE/hKId8+3oh8ffoNQJxFeaG ZeLy8eu6uXHGzNeBUTJtau/PEIXOEgAy/rWsC2BtFUq8pKHBKxg/HKnsW0B8XeTvVOEA knkdNDRhVfZSbf97/mvh2wClLnwONVFGbeX/B3jHKsgR6q6Bbzi450ooB/AXLTrxzARs 7AOVBYHCIvHouNXlxigxWnTM/AgfyHB0CwS2/kFcBJihqJpREjpUe5kwhGT0ZqP7DSAe WjhWEVr13p0LP5l+dSHCGiZ4lgklLuHGmzlK0D30MK5Rrg4VIw0oepfLrxgXK3qPseMY 12Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=oRQJsqzCGBMTG33n3iS7RD7axpI2c5pPwbl5xTMRjY8=; b=uQs00xjQfyTdys8Ig37zzrt/KIhLEfu3DAmSfjjw+i40QvII4+520MruqSq2qB0C4p +3nfsg/OxcjfseRYo8VhYQAhUf0GqEwIq4cVTnstCpHYuws30/aHBzbrkNG4tjoX7RRv 7RtM28J1XVcBpvLW+5rynR2I6/zjQkGW50xWEu6igQ6FbRuAq66rIYFz2C/vhtPkcZvv 5nbbJbCeYZvLQy1jNMJqzbAkhs2tXBLlKnHHF6HInPOZ2zTcCb0Pvh/L8RKzoQUl2gq9 P2eB9V0idyaInREs9qyRXP0QyDgyK9oAcLpeZDjqC5V9hIdb+5C0LBu8h0yyhinZrIF7 SoWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=PKnsPaLc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d15-20020a170902cecf00b00189af470730si6233651plg.43.2022.12.10.18.29.42; Sat, 10 Dec 2022 18:29:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@codeconstruct.com.au header.s=2022a header.b=PKnsPaLc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=codeconstruct.com.au Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229901AbiLKCXn (ORCPT + 74 others); Sat, 10 Dec 2022 21:23:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiLKCXi (ORCPT ); Sat, 10 Dec 2022 21:23:38 -0500 Received: from codeconstruct.com.au (pi.codeconstruct.com.au [203.29.241.158]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D63C8F037; Sat, 10 Dec 2022 18:23:36 -0800 (PST) Received: from pecola.lan (unknown [159.196.93.152]) by mail.codeconstruct.com.au (Postfix) with ESMTPSA id EB61120031; Sun, 11 Dec 2022 10:23:26 +0800 (AWST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeconstruct.com.au; s=2022a; t=1670725410; bh=oRQJsqzCGBMTG33n3iS7RD7axpI2c5pPwbl5xTMRjY8=; h=Subject:From:To:Cc:Date:In-Reply-To:References; b=PKnsPaLcmvWPEpEKRE06YNL5zsNYumvw8FOLKfhWkrt6HEU8N4znk4v3Pv2UKUb9Z mnr+o+f7GU0FIhNCuBqrjVreZI9b0vJDl0o54g0uaZr2iUvW/elUpV3es0Ma8lLm/x JLmm0QGVWqayeAfI3BvjOQDwSeYvAG3gkTtZvItntINSrqou+NekqCPU47ex8k1rTz Kt8Fy5tqi+0pZHR0VL6Wr76qJqefLWDAVupRYqUwuDGSZHcOVT3Y56dSRKm54vpaBf 4w/YZxMFk3o0z7kXqwdfaoqgF+gAbTPMecLgFq4yPILWv1/nv7Ix5f1YnRf/4Ht6ZT 1xdWWbxpqwVTg== Message-ID: Subject: Re: [RFC PATCH v2 2/3] regmap: mmio: allow reset control in a MMIO regmap From: Jeremy Kerr To: Mark Brown Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Lee Jones , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Philipp Zabel Date: Sun, 11 Dec 2022 10:23:26 +0800 In-Reply-To: References: <20221209013309.407879-1-jk@codeconstruct.com.au> <20221209013309.407879-3-jk@codeconstruct.com.au> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.1-1 MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, > > A syscon device may need to be taken out of reset before functioning > > - this change adds a facility to attach a reset control to a mmio > > regmap, and performs the necessary deassert/assert operations on the > > reset controller on attach/detach. >=20 > Managment of reset feels like something that should be done at a > higher level - typically reset also implies losing all the register > contents which means it should be somewhere above the cache layer. Yep, that makes sense. I'll rework to do the reset controller handling in the syscon layer instead - unless there are any objections to that? Cheers, Jeremy