Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp291672iol; Thu, 9 Jun 2022 04:05:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwAkqIkxWHRxVXsmW7mRP0EiTgmKytylMNIzs7XlZ27CVvBirVMYIyVf/W6TITER9pndSdP X-Received: by 2002:a05:6a00:10cc:b0:4fe:3f1c:2d1 with SMTP id d12-20020a056a0010cc00b004fe3f1c02d1mr107195849pfu.0.1654772744775; Thu, 09 Jun 2022 04:05:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654772744; cv=none; d=google.com; s=arc-20160816; b=np7jUfUmDVKMjrFWWJoSEJ+FWhcd07otbtFvKP6KGyqop8e32D6Drjy5vNaCaoLe7+ XyL6IxON2dZM6kytAG4dKFElWY9Cz253FO2pS2w/BDyXHd4VFyxWbegmSZbUNiZ5srX1 eaghLNHKCrSJq2ndYdLA1Gk1DrH81eM3C5H9DS0iEVbHN7jO2NYCX2mk8gYORGzmWf42 p2vyxhonbF6mHTOc84d+gBW+8YdwDKoCnUa9CmvKzg0SqWMjlPW8mG4LDujQFYI6agcR +d03N5BCQoO10qAfOgU9ha/AqcNZr4oaeBo6qOYRcTIvMw2LzlMY8qlxR+M6fdczupIK gVjQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=sT+QIboqPFhA1eK2ke56ENcdKm3+E0KVbxgGivCVlm4=; b=qBDnsfypfioOmW9OZX8kYWJm4Hqq2+efIkcNz+5/UL+rsf5obP6RENfrnCKqZTEHCj czrQkl/5gQ+Z3xNKUPCbtC4qm+IOCl6FHDvOEiHIp86C0LFi2hLYEBvI2hrWpmKaiWZI VMsKPGxyaylztX4kpwR5/Ky8VGVMx/IlI7frYdLXFW0/dIi/o+HbpKsjRL7PT4XM3Czx KM+WQst0OlpnzQJ/2k1iC9XIB2eVJDTi6cfEmem+5AAvOrRO3iJl+5Teuu/xkVdXODho dx+FdVMMOUkvDbFmHirmMZmryqkG21XuXX1xxc5k53Qx76HaZ/Z7D7sfdy7mFpgqdblq B1cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tfix+sQx; 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 e15-20020a17090301cf00b0016180dd8c33si32645809plh.164.2022.06.09.04.05.30; Thu, 09 Jun 2022 04:05:44 -0700 (PDT) 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=Tfix+sQx; 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 S234360AbiFIKO1 (ORCPT + 99 others); Thu, 9 Jun 2022 06:14:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229654AbiFIKO0 (ORCPT ); Thu, 9 Jun 2022 06:14:26 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C4722050F9 for ; Thu, 9 Jun 2022 03:14:25 -0700 (PDT) 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 dfw.source.kernel.org (Postfix) with ESMTPS id 9A12761D11 for ; Thu, 9 Jun 2022 10:14:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1152EC34114; Thu, 9 Jun 2022 10:14:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654769664; bh=SLw1oSh+8LUTAZT86qz5LL5HQ2TFx0Zf2q1ZombaJqw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Tfix+sQxFrhbG0Y9h+v2ocj77Fd3DTdWQcMlDxIi6ta9xlyq1qJn280WrFP3O7lYu QWasQ5U9BF63aUGKU7x2eW7eopTW/u2vAjTJs5k/KqKFv1a36N+1MPsti0O+XSUkln sYB1YBaD1gArh8Bvv6GXjU3GnLU2rVNkuQCE5JBIdPpKmnqYQEAkSrTr329fDqEDGg EvObnl14kCVvij6xo249k/y51bHZklpWgMheotdNVx/UjYqn4VuOjT12yvoOKiGFls sOz2OA/75CeE2/pNpJA1Ixxdsi6vZOEngzFmnaf4Oh5n+UpaT90PFHjFP9LJaBe3Xb inHHVfokmRBcg== Date: Thu, 9 Jun 2022 11:14:18 +0100 From: Mark Brown To: "Zhang, Tianfei" Cc: "matthew.gerlach@linux.intel.com" , "gregkh@linuxfoundation.org" , "rafael@kernel.org" , "linux-kernel@vger.kernel.org" , "Wu, Hao" , "trix@redhat.com" , "Xu, Yilun" , "Weight, Russell H" Subject: Re: [PATCH v1] regmap: add generic indirect regmap support Message-ID: References: <20220607013755.594554-1-tianfei.zhang@intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="pnYC1NmSS39gOaw/" Content-Disposition: inline In-Reply-To: X-Cookie: Space is limited. X-Spam-Status: No, score=-8.3 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,T_SCC_BODY_TEXT_LINE 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 --pnYC1NmSS39gOaw/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 08, 2022 at 11:54:26PM +0000, Zhang, Tianfei wrote: > > > Would a different name help? > >=20 > > This wouldn't address the major problem which is... > >=20 > > > > > + writel(0, ctx->base + INDIRECT_CMD_OFF); > > > > > + ret =3D readl_poll_timeout((ctx->base + INDIRECT_CMD_OFF), cmd, > > > > > + (!cmd), INDIRECT_INT_US, > > INDIRECT_TIMEOUT_US); > > > > > + if (ret) > > > > > + dev_err(ctx->dev, "%s timed out on clearing cmd 0x%xn", > > > > > +__func__, cmd); > >=20 > > > > ...and this doesn't look particularly generic, it looks like it's > > > > for some particular controller/bridge? > >=20 > > ...that this appears to be entirely specific to some particular device,= it's got > > things like hard coded register addresses and timeouts which mean it ca= n't be > > reused. >=20 > Yet, this is a register access hardware controller/bridge widely used in = FPGA IP blocks, like PMCI, HSSI. > How about we change the patch title like this: > regmap: add indirect register controller support No, please enage with my feedback above. --pnYC1NmSS39gOaw/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKhx/kACgkQJNaLcl1U h9BkuQf7B56QFQztdHtVqb/2t5HdOuKXMNcFF8CV8OVFl8cAdPXPakXcAW5FpAUE V4ag+gzdzhZjnaxJ0rF8k5lRDYIZbx4au4oYIrFyJ07Q+va0ezLmKfaisf2IXyuv hTXpx+k+j1aBSVh0dAxquKn5tt3Mjq1CEhDiBLyfCyAlEAdyG3Ad7PuQpA3d8Moc vzuhzLMf6kMRkRR0njHzvtGtevdaJSmRy3Pm41GNkctZzcyWdidxa8FT45Xcv9E5 DFoTU+pvKG/e93lx+KIwrjXdtHcSvF3kIiy9JtWRitrwkjvP6aFNtHCjyU7Oyuv/ 04A6GBCGJhvQ2FxUvWS+dFuj8yO55Q== =rgTb -----END PGP SIGNATURE----- --pnYC1NmSS39gOaw/--