Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp2137479rwb; Thu, 19 Jan 2023 21:49:02 -0800 (PST) X-Google-Smtp-Source: AMrXdXuOgORYlQ41RqHQpw78ENvDqWdcjqAMRRxTg4zRJAluG6nm8mHgkIpP27nE9MI7tjWy8XBU X-Received: by 2002:a05:6a20:549e:b0:ae:47a6:e6d9 with SMTP id i30-20020a056a20549e00b000ae47a6e6d9mr17966826pzk.6.1674193742093; Thu, 19 Jan 2023 21:49:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674193742; cv=none; d=google.com; s=arc-20160816; b=GubI6hLVDcRCvfjpC+PXl0NkuDXtx85gMf7ufifgEBQOXl3UUDEhTBeTr0I8jQqOoR LTlPbJzsLYBbR/6PTbHBRMFkkgq6u5wuYkuqIuwi4XrQQqeAXNTciuDeKUsJhOq02lAH 5veInYaC0gN+KWydaOh5H18IN5ysMoH9owyeI3iSf89mtOMgytJWWiqaP+YSEo03TleC kXQokly1Kkp89tqJju7Q3Nuy7r0ZX07sCdH3pkuli+EcnLgjfbRTMtp5Jbe7MCR/tkSb bpnWSKQjIgxsxAO6Emx+HmXRm2aJXzGy3sVUtCCwv1VgLGCGMMBd6fvRPZpjtHx5B8zT cHlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=A46A/CbzEVPwS3+w+Tx03hPeADk5kiaa2oU6j0oOsgI=; b=TzY6QY6qB9w5aNMYVDBRw7RO4gyfi0x5wUPooXgQomyorrSFPcVE0eirGx0LHYlPEK +h0dbVfSAk87tygJH+BstN0zhAmjwc4Okt6ycfjZgLFdTLLEQRW7ASAuYDd4Fwc1SKjm jpBgy+ZeMPriM3ssfxMBeiUUsvYq4geu7gESaEuIl57qaYoHAHWSbI81PpA9rTUXlszr HRBnmhBkNA5maPnFXQvY/S8pe1re8ZobpWzldaea762aC7dvg08eRQxRRcLifqaixYS+ j8KhM7sgBAKOHCNhlQQDMnGh+keN+O2wQRI6lPp4uiYlQI/mW5Zf/e55aQnspFMAaeSG pFXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EFs7DjxZ; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s199-20020a632cd0000000b0047839aeb6e4si43686703pgs.363.2023.01.19.21.48.56; Thu, 19 Jan 2023 21:49:02 -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=@kernel.org header.s=k20201202 header.b=EFs7DjxZ; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229513AbjATFeb (ORCPT + 49 others); Fri, 20 Jan 2023 00:34:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231223AbjATFeH (ORCPT ); Fri, 20 Jan 2023 00:34:07 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9E9B6F30F; Thu, 19 Jan 2023 21:29:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 39BEEB825EB; Thu, 19 Jan 2023 16:30:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 801E7C433D2; Thu, 19 Jan 2023 16:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674145821; bh=CTW9GEliJS5Gv0X4UM6xxF09SAs0ttdWxKfuhxwqGjs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=EFs7DjxZIfNGTQhNrwMLwqpgwgZK+L0JC53xsxCa1UlYbn3pojyEzbkE/u7Outv9X RlRgKQXy9dvW2irapvqVTG3cPybYQKGoeIEWyJqHDUnOmg+Mkhkcb0opBkf46y9/i6 UD419D5YvKHh71W7UNQa7zTWbqVsvzypEvJsJWq2qITYz2N2lxvCk2xx53Uzv5JZa3 PfCmILc7upqfuDKzKjxVT50k9JOtXL3KJsSkuM1cDVVsFlX8qPWxuUkNPPy/FBc4i+ +91KMGDjHbF/kkTun5MatyQMmcUn4ga1YRP4UyPYZ22TLT/N6hV6E9X6ft6rGoRCAA gcx3sr76g4QxQ== Date: Thu, 19 Jan 2023 16:30:16 +0000 From: Lee Jones To: Jeremy Kerr Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Philipp Zabel , Mark Brown Subject: Re: [PATCH v4 2/2] mfd: syscon: allow reset control for syscon devices Message-ID: References: <20230105005010.124948-1-jk@codeconstruct.com.au> <20230105005010.124948-3-jk@codeconstruct.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230105005010.124948-3-jk@codeconstruct.com.au> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 On Thu, 05 Jan 2023, Jeremy Kerr wrote: > Simple syscon devices may require deassertion of a reset signal in order > to access their register set. Rather than requiring a custom driver to > implement this, we can use the generic "resets" specifiers to link a > reset line to the syscon. > > This change adds an optional reset line to the syscon device > description, and deasserts the reset if detected. > > Signed-off-by: Jeremy Kerr > Reviewed-by: Arnd Bergmann > > --- > v2: > * do reset control in the early of_syscon_register() path, rather than > the platform device init, which isn't used. > v3: > * use a direct reset_control_deassert rather than handling in the > regmap > v4: > * collapse unnecessary `else` block > --- > drivers/mfd/syscon.c | 27 +++++++++++++++++++++------ > 1 file changed, 21 insertions(+), 6 deletions(-) Applied, thanks -- Lee Jones [李琼斯]