Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3998359rwb; Tue, 8 Nov 2022 10:42:49 -0800 (PST) X-Google-Smtp-Source: AMsMyM62l9NPygxxjHh4x1WVdWQsSG1pwpdOsuhmT1ugDdgEmKKd83r8lkZBQmGVAFHwTmo/0b17 X-Received: by 2002:a17:906:fe0a:b0:76f:e373:d84b with SMTP id wy10-20020a170906fe0a00b0076fe373d84bmr18707773ejb.297.1667932969342; Tue, 08 Nov 2022 10:42:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667932969; cv=none; d=google.com; s=arc-20160816; b=k2A749ohaOZ87gdz6+KKjlayK/ABGXhVgk/D/5h7n3JhFG04llAwMWskUfSU3FszIW dFZqi0TvS4TQ5wNJoKBAsktTo0/uobeuoKfCcvIqj6hyJcCYyegBsDFyI1bJx552GS6e ivEeAFFXfVl0ZUeupqTTztDj4J4MU1QkHVxxPDeQ3pqkUTXAsQAjvaC6Yg72/h0ATY3R MU5d8VnxW0P0JO8Y5qNocpXatGaJVX9YkQPUK1N3Wne4oKNS1/nhQ6ziHKaMVRiqjAz7 pSA5b/Qbnoz87yyQZ9vn5p9uTF0uFN32Cw1GVYTqmE5ZRBilgKVciPLYt/w4jggKuZ9E AO0g== 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:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=j2ncGihtB4RnjHtpQDY15yofhgcJNHNN1zqsw8t/0hw=; b=O/QCs8b62GgQOZrA99FpwnDYwOUlsZ8vOLInQSQMsgye/XJ+nzO8ktRukW462h4Vlt Mx5N41UIir3FEe7jpUjgfrF/h2UNHoUWJzE1VElB4mWAKzPKul7mpWVK3qzEHMSkN12B sgskhCrNhR2rSdqMTtjh3bRuwLKlSG2f4mkgKRUl8ZHrXQTUz6p2xTLx9F7xGFJvpmbk UXVQIrxvVcv/7OYDk28dSeRS+6N3HCdFP8iDYljuTv2eqMLrRHCbavWN3ySjFHTuTt/n +AHsIdJEL8Vnzy6pXhVBbUqw4fg5CsVa6Izz7MKncoB5B8YOGccafHaztDEeaEtUsze9 Dnrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=BtxZhNXH; 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=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hz1-20020a1709072ce100b00780076c3322si15014445ejc.432.2022.11.08.10.42.26; Tue, 08 Nov 2022 10:42:49 -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=@intel.com header.s=Intel header.b=BtxZhNXH; 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=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230036AbiKHS2n (ORCPT + 91 others); Tue, 8 Nov 2022 13:28:43 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44974 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbiKHS2m (ORCPT ); Tue, 8 Nov 2022 13:28:42 -0500 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A3B202643; Tue, 8 Nov 2022 10:28:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1667932121; x=1699468121; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=wZVQ8D4GzXjrmMnXjglPuPUT5tajKbNEVDNTUlYv4Jc=; b=BtxZhNXHN8pVr2G61K09JDEoA4Jgs6PbJpt17sbt7RiSYlxYjItAKgX4 C97Sx37aoOVgxRaglIPUgvSzlPpe5OPyhoAQ/SX+LCvFxjXJ21tKnCyih N4ZS3lXhtR7UU7PFILpVweUxWLU68mwrjgFd5MTbQoYAwIGA/xiVwpZC+ lpbojJ2W8H6HfWOq69DUy5DsYXtD0mT2ESSrn7v6MNluY5dsSa67r8kSu kqIXJTabisdNNA50mLfLQ/p7PZke9pq4OLlc1mRk1aaxlxI73iS7ioxSV mhSECFhGq7CCc2PaukA7rB5ftQsEHIfBdUCAVnGlQ9YIFNsr4qQq6odYA A==; X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="337503805" X-IronPort-AV: E=Sophos;i="5.96,148,1665471600"; d="scan'208";a="337503805" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 10:28:41 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10525"; a="636435661" X-IronPort-AV: E=Sophos;i="5.96,148,1665471600"; d="scan'208";a="636435661" Received: from rhweight-wrk1.ra.intel.com ([137.102.106.139]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Nov 2022 10:28:41 -0800 Date: Tue, 8 Nov 2022 10:29:02 -0800 (PST) From: matthew.gerlach@linux.intel.com X-X-Sender: mgerlach@rhweight-WRK1 To: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= cc: linux-fpga@vger.kernel.org, Xu Yilun , Wu Hao , Tom Rix , Moritz Fischer , Lee Jones , Russ Weight , Tianfei zhang , Mark Brown , Greg KH , linux-kernel@vger.kernel.org Subject: Re: [PATCH 09/12] intel-m10-bmc: Add regmap_indirect_cfg for Intel FPGA IPs In-Reply-To: <20221108144305.45424-10-ilpo.jarvinen@linux.intel.com> Message-ID: References: <20221108144305.45424-1-ilpo.jarvinen@linux.intel.com> <20221108144305.45424-10-ilpo.jarvinen@linux.intel.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323328-1813661084-1667932148=:714603" X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE 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 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323328-1813661084-1667932148=:714603 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT On Tue, 8 Nov 2022, Ilpo Järvinen wrote: > Create the regmap_indirect_cfg with offsets and commands for Intel FPGA > IPs indirect register access. This is a great improvement. Reviewed-by: Matthew Gerlach > > Signed-off-by: Ilpo Järvinen > --- > include/linux/mfd/intel-m10-bmc.h | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > > diff --git a/include/linux/mfd/intel-m10-bmc.h b/include/linux/mfd/intel-m10-bmc.h > index ed920f76d3c8..1b907c1a176f 100644 > --- a/include/linux/mfd/intel-m10-bmc.h > +++ b/include/linux/mfd/intel-m10-bmc.h > @@ -15,6 +15,19 @@ enum m10bmc_type { > M10_N5010, > }; > > +#define INTEL_M10_REGMAP_INDIRECT_CFG \ > + .cmd_offset = 0, \ > + .idle_cmd = 0, \ > + .read_cmd = BIT(0), \ > + .write_cmd = BIT(1), \ > + .ack_offset = 0, \ > + .ack_mask = BIT(2), \ > + .addr_offset = 0x4, \ > + .read_offset = 0x8, \ > + .write_offset = 0xc, \ > + .sleep_us = 1, \ > + .timeout_us = 10000 > + > #define M10BMC_STAGING_SIZE 0x3800000 > > /* Doorbell register fields */ > -- > 2.30.2 > > --8323328-1813661084-1667932148=:714603--