Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp621533lqd; Wed, 24 Apr 2024 11:41:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2WeCUHX1Xk5PGutNjGYuIOPufZUNxaBDVuhF9miQMAJri1abAKXWoHwy6JCD5QBw98cDMX6gOlZ1d5mvzQmeCnFjBDxp9+0/0goxf+Q== X-Google-Smtp-Source: AGHT+IFmjzpO9Y9D5XLbupBYbrowavApmj0HdA+yrXS/xNYEBwuMdJ15PAVWdLChdaWuELtARkOS X-Received: by 2002:a17:90b:1041:b0:2a5:d0cf:3ef with SMTP id gq1-20020a17090b104100b002a5d0cf03efmr3248534pjb.37.1713984101139; Wed, 24 Apr 2024 11:41:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713984101; cv=pass; d=google.com; s=arc-20160816; b=skfnnhKUZDEKWvxA8t0hs1lSr1OgLfwROhjKrl3OmKFryMhvMT7hHp/1XVTDoxMOV4 VVeuZ5XvqXh912nULIhMhCM0fCIkFRfal4dNbMm9K3p6KRwKPWutvC41B/UgQzELmwsK KB7Sla5Ys0hLd4PxnGYqbMrjLuKmcbYVnSghJb7BTAGA/QBAkzE1wcOUH+ztH4cLLImy OEoTQRhHroOWO1iE0uN2NR7aKwQD/l3EGl4QA10Go6Y5lCd0opsO4thd3fU0saQZhj3n xn9BfcSUpP4FQfl6A1aSR3THMsw0FuDz7+j44xtAJI6WkeNaCwmvodiG6y1YoXafxENF e7yA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:date:to:cc:from:subject:references:in-reply-to :content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:dkim-signature; bh=gR0BXvEJfK/wOVc8rlaX+oQG0b3szVDNTEett0c2sXg=; fh=nDxXrju18JsZlRCLCtNvF1Z+JCL1hjt5HJqkSu4KGGk=; b=xXTkRGPVSo+OD8LbM5ZEDj2rfqL9/QFnsH9QsZLGfxVRAKBatwcBMKEUyFprYFzmDP PFrV9vIg6RBcPRMNvmAAPE599+OJAYGW7bw8be3gg47nBpjXPj9elrrngZJYskImLm5K newgtA1RYCDXDZknz1uwHAdIf4KsEH6rIFzluvGBA1FWMqHGR2qeG+IJlsvDUDCWWVCl 4kut6cinTjh5dwueZOPT/iag6kYceaUxDqP7gTsEAaoqXmI/XfS2qRri6yUaj5V+3j+s OYO77OB+5NRSJiJ2WMYezboRffAyligEPOqFnxw+fcNuQckYZcdNqlA5VlxxHqEKy9FN sM6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aG/yl7TG"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ay12-20020a17090b030c00b002a2a12b2db3si11533214pjb.23.2024.04.24.11.41.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 11:41:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-157533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="aG/yl7TG"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-157533-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-157533-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 040B328E260 for ; Wed, 24 Apr 2024 18:33:45 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B61EF199B0; Wed, 24 Apr 2024 18:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="aG/yl7TG" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 D7D8819479; Wed, 24 Apr 2024 18:33:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713983614; cv=none; b=AwOZw6LUz5mAdhOFKbf7kH93AvQ8NpXlB+BKgjhUiyYdD5jPJOl9w6q+vNQXvBNjy055B2ysKurPddOMo/6jLavJDiEUs0JiMtuu1f6FpvReNkHBrEprMZpe95H3fH4v4FJRDUUu0zCZh20wkr59yQMA2pKNPeh9koN/2JY56qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713983614; c=relaxed/simple; bh=Dw8j7UKEfEeuS79L8GjGzjL5AGQkzmeP8Nd1vojpPGc=; h=Message-ID:Content-Type:MIME-Version:In-Reply-To:References: Subject:From:Cc:To:Date; b=j08wk76NYHjDhHZicF/jPNj3SHL0D8GcXQmUefiNbNZFBri0Hoi4oV32ziXLWYsyI7hwecCTsIPfwTnY2HVG6X7V4GLdS+6m6Fy2k4U726A+/Nc9r/esarrUFvVArHfb69+3pwatmeOXpa/m0sfAonzm4DuC4aRydkBwmZa/eTQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=aG/yl7TG; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3FC06C113CD; Wed, 24 Apr 2024 18:33:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713983614; bh=Dw8j7UKEfEeuS79L8GjGzjL5AGQkzmeP8Nd1vojpPGc=; h=In-Reply-To:References:Subject:From:Cc:To:Date:From; b=aG/yl7TGtQI9wbVbRfELyMxQuph9Oqp+keaN4+hAGVfCnFPiIHcszwjrgMCLEoxQL wgsZGU+M+PgUpWolCFxOo0sXAIOo/DH5CSaVlpmZ3WoPkUsGmHvgd5JgxqLNAQzqnD DkuUMCJIxh4fAOQC0X9faEleSmBp+Lii9IHjBEPsXWFV7WIHwEMv+qMHMP2oJ4IM71 drTejasbH+oAN4OoriNtwxI7GNW0nbHQHnpmYMN52aVCsLdobi9Fuvqpg5+Cklp8tY L6jeFlTCptxOy7frDi/w17CdezBgV3FeUil6RCKzSLZ2oN/CgwguH4Y+f14UPzqHvM poQGczQkOZ2Ng== Message-ID: <722f31da34e5e1cfef05fb966f6c8c96.sboyd@kernel.org> Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <20240424-strangle-sharpener-34755c5e6e3e@spud> References: <20240424-strangle-sharpener-34755c5e6e3e@spud> Subject: Re: [PATCH v2] clock, reset: microchip: move all mpfs reset code to the reset subsystem From: Stephen Boyd Cc: conor@kernel.org, Conor Dooley , Philipp Zabel , Daire McNamara , Michael Turquette , linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org To: Conor Dooley , linux-riscv@lists.infradead.org Date: Wed, 24 Apr 2024 11:33:32 -0700 User-Agent: alot/0.10 Quoting Conor Dooley (2024-04-24 01:42:08) > diff --git a/drivers/reset/reset-mpfs.c b/drivers/reset/reset-mpfs.c > index 7f3fb2d472f4..710f9c1676f9 100644 > --- a/drivers/reset/reset-mpfs.c > +++ b/drivers/reset/reset-mpfs.c > @@ -121,11 +135,15 @@ static int mpfs_reset_probe(struct auxiliary_device= *adev, > { > struct device *dev =3D &adev->dev; > struct reset_controller_dev *rcdev; > + struct mpfs_reset *rst; > =20 > - rcdev =3D devm_kzalloc(dev, sizeof(*rcdev), GFP_KERNEL); > - if (!rcdev) > + rst =3D devm_kzalloc(dev, sizeof(*rst), GFP_KERNEL); > + if (!rst) > return -ENOMEM; > =20 > + rst->base =3D (void __iomem *)adev->dev.platform_data; Can use dev_get_platdata() here? rst->base =3D (void __iomem *)dev_get_platdata(dev); That's sad that a cast is necessary. Does it need __force as well? An alternative would be to make a container struct for auxiliary_device and put the pointer there.