Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2154652iof; Tue, 7 Jun 2022 21:34:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT9q94F1+L0C3ahEGY7ppZacwIA3eo4OiQcZRBT11auQAP/8RzsWNeFUsijSyELlq+Lk2X X-Received: by 2002:a05:6a00:1ad2:b0:51b:c63b:95f0 with SMTP id f18-20020a056a001ad200b0051bc63b95f0mr31769564pfv.16.1654662890296; Tue, 07 Jun 2022 21:34:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654662890; cv=none; d=google.com; s=arc-20160816; b=U/ECL3Q/rixqUQ1eZzoRQXe/0wetjFh6O1Zjb6tmyD1vswyYzFPw0H+DTW1k9hVGyG 7gqvVLdWHsvF4bNVMW+pcPIIm8od1aerWzJdqo5N3nXrdiR0eAPRYdxXb+WKL0LM99VR RXUIVOYE9sXAdIuZTT6xp9zkCjrywUlBDupwwiQl0RlOKpbl2JkJNbWXVhalB53SxwK2 0s/s9uMiKeglf7+DQk0e32n92y8u34ryFSj9DJkqz+3MGUL6KWTwqHsOqDlU0Xbh95YE c/beYDBp2CHkVeMZUdJN4sg+z7AkCiI7QKfm5NSFJwyR4gsECMwd+Z8yK6KLSyMJ70k9 mIkw== 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=nLOGiMJUZu4bhDwTXCewkrkb1AoICBoC+aDSMjSBwPI=; b=RyI2M43HFKtadjX3gZDCTGWELK4mhQtJXl2HNiN7Uzppbry1HmsSnr2rvtGKMJr0Fu nzhigw929z2+7kn3oZ4DdsFRF4Uzw3pemHdChidEW+bgfgvFlbD/TCrJwQwdwzik441c wWhwaMVhxUn3HdIja61Op5dZOdBKq8XvydBEgrIit/wYjtPrOo8qDmFzi/tbECQw46UA P8iYR3ZBPcmVuEHHCPJwZAy1epkN70SxOSibqPIco4s3RayvMAsgcSfPXtqDzxL6NXyn 0yU74z4Y+SrqkCSHIESGmBkK5ROT91nj/wktOS3FoGeQWLNKTvhVvI4OhesBP9tVH0lk 9HZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Oby/+sOw"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id q10-20020aa7842a000000b0051bc3d323e5si21959123pfn.341.2022.06.07.21.34.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jun 2022 21:34:50 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="Oby/+sOw"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E2900431986; Tue, 7 Jun 2022 21:03:15 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243411AbiFGNPn (ORCPT + 99 others); Tue, 7 Jun 2022 09:15:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49304 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243382AbiFGNPl (ORCPT ); Tue, 7 Jun 2022 09:15:41 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 694D4F339A for ; Tue, 7 Jun 2022 06:15:40 -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 0598D6136D for ; Tue, 7 Jun 2022 13:15:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7292FC34115; Tue, 7 Jun 2022 13:15:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1654607739; bh=Q9UeMbuKcKnRdtyrMieim/ypoyUhBKdyyKwPXKj3lTQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Oby/+sOw1HInv5QZ1mo40ncr/xAA2B89dlGQSSow4qzgfeooVsGwkWOQnrUCxC/TX c6FfTMIbXi4GFz9PfolKB1zYtDTOe/lmy93tOQfbXIKhhC4mHypmaIxzlYmrMx/IH4 v/ML84/GqicbIkY2WUsb2KuW811IM/GH1ygzuG2r07k5TfmbgpQPvBLyrACaDz/RPT N5c/U5fJGE+n38hzkztR21iACLq2t4hPjeR0L7zCjQSwy9k1uawy2nrtL0eKgz7UYP DHn74UF1XXopEJRiZ4nN2ig6dlQ+LgoGfgCn2MgU7o8qybJuNrG9BjBn2n2E8QR/JR s8zcDYzuH87AQ== Date: Tue, 7 Jun 2022 14:15:33 +0100 From: Mark Brown To: Tianfei Zhang Cc: gregkh@linuxfoundation.org, rafael@kernel.org, linux-kernel@vger.kernel.org, hao.wu@intel.com, trix@redhat.com, yilun.xu@intel.com, russell.h.weight@intel.com, Matthew Gerlach 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="Ud64OMVfP0hcRpQO" Content-Disposition: inline In-Reply-To: <20220607013755.594554-1-tianfei.zhang@intel.com> X-Cookie: Where's SANDY DUNCAN? X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 --Ud64OMVfP0hcRpQO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 06, 2022 at 09:37:55PM -0400, Tianfei Zhang wrote: > From: Matthew Gerlach >=20 > This patch adds support for regmap APIs that are intended to be used by > the drivers of some devices which support generic indirect register acces= s, > for example PMCI (Platform Management Control Interface) device, HSSI > (High Speed Serial Interface) device in FPGA. What is "generic indirect register access"? I'm not clear what this is intended to support... > +static int indirect_bus_clr_cmd(struct indirect_ctx *ctx) > +{ > + unsigned int cmd; > + int ret; > + > + 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); =2E..and this doesn't look particularly generic, it looks like it's for some particular controller/bridge? --Ud64OMVfP0hcRpQO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmKfT3UACgkQJNaLcl1U h9BidQf+IkIlquE0S6OoW3iH1zUA7CLH2gTDIlN6mRlexJIF+FySYkuqKFEklPWb ZLgnPTZACw1QW9kMna9oNRltHCL/6/M8d+tnD+wYAwHBWWCcX86td4i/iini59ad dL1eTnaSR5C6uba0ArBuCsr4zHI0aCQgIKJTf2lJPt+aaAcGPdOEanLQjBkDh0vu GLQHpsVvV1myPuSMXZncUIeK0x7f6PXBESELsnxcB/RdnnD2+Rrtq+KhwQ8mCZmM l+y/Hnyts/aMsKzQ1L7YHdgAXT3Lx85j+QdQNWuNjnh4oJSDqlJiAxTqUhQy2Lne vNJRYefW76T3bVHcG7izYWwEXq8Bfw== =CMt6 -----END PGP SIGNATURE----- --Ud64OMVfP0hcRpQO--