Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2130652rwb; Fri, 11 Nov 2022 05:34:09 -0800 (PST) X-Google-Smtp-Source: AA0mqf5o5UshMNMCzGMNF0Rhbjrp2QNZXmveVjdxFE9FQwEPg7VT/HUuCZBsZ+qs91Sz8hySDwGy X-Received: by 2002:a17:90a:4a15:b0:212:da2f:1cb7 with SMTP id e21-20020a17090a4a1500b00212da2f1cb7mr2052575pjh.10.1668173649581; Fri, 11 Nov 2022 05:34:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668173649; cv=none; d=google.com; s=arc-20160816; b=iRNrhBZ9GmzNZX6I9Cz/3Gw/EBOUiSCF1ykZXELls1nhmDgyVds/pVooVAY3cgKDdO 0pxh2SDOi831WOQaX9EEx/2oWJtvErAtsRxwOUWv9XFJwR2sGggOuzrA8mZrS8vKkji5 ZCA7HmbXxOAMwvXMROt4E5ifkNvkLea23zP0X/FNT3HDetvmJthxdywFZAoiwWF+oSWI WkGwrko5+GmL0aVmJbaAYeps8FP3weNJ8wgsKpfylj5luRzPCcHbwR/nVV2pZOKcF1EG iN+tWLJNmWihchqf0XZLeVwL5fPakKUmP5VHtG8xMajtQiCPdOIp1zsvQU/f6nqNh2EG qgXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-id:mime-version:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=X/MKv36NO+O/W5ZVzU/BRWwyy9xzX9a5n76LyxJsw94=; b=J8w1+I8scp0zNdJv25wabnaohbAjc3n9fIVTnf/eG84LA09BvQLlmzJ0Kj/gvSSGSH n4i8mtuFDHIh6qdQg/IN2fAjKZiurO7YSTvXfS7qiU8WVbTqUMJzCv8LHcYN5cQtK/qY XjSMBP3zvGR1c8AAbPE1olE4x9WqPJxqFAOQiufaJ0vot8KK1RkqUGtUuLBdSUQCI6x5 axanW2lVBofQVPd3T2AV2bsnvAOU+RNYOQqyhR98f9LT8Y7GqX/VaupogH6k/zgmJNnX 2AzGWztZxvZKRsDbphoh/FR2Am3z0zFMJSUHIYtDisY4fgNDZa+u1yKYHqx6Qh4V63g6 HkTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=H9Z5G6BC; 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 k22-20020a170902ba9600b001870edc9b10si2291741pls.380.2022.11.11.05.33.56; Fri, 11 Nov 2022 05:34:09 -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=H9Z5G6BC; 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 S233984AbiKKNQ4 (ORCPT + 92 others); Fri, 11 Nov 2022 08:16:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233922AbiKKNQv (ORCPT ); Fri, 11 Nov 2022 08:16:51 -0500 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FF9371F24; Fri, 11 Nov 2022 05:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668172610; x=1699708610; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version:content-id; bh=7za9uzbKTygHmBXRxPFizOV1Bgw31fqfj2U9mTEHnRc=; b=H9Z5G6BCMXX71XSJOSh5NUcDxCKbV37j8X5ce967rhDv3ntfCRgyvmws Bfcj9ihGSKE7dq9bl8GPvAuqJR7rTQ7tIf4BjfbUsbi3Yq8PV7Q9B8v91 wX29YLdNgaBc0gGcQiq/Y6Du5e+jNWdTsHuombNLH1RWOEaxVG0zAGvUH fvhi5wGb7lckRkeugAX/+MwkYWT0YVNOY1huzEgssm4yKZUZpSNsh0N5u wr6NMsOgUlpTo4BRetzIOx7/1szD8Yhig7N8oYrN+Njap45/sVCoHIvF9 9mYElh/T/3ESxLL5kQ2rbGOCkhXAw6kAIvDY/54Q1zvsMRtN6/moK1oKF Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="311597253" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="311597253" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 05:16:49 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10527"; a="706538341" X-IronPort-AV: E=Sophos;i="5.96,156,1665471600"; d="scan'208";a="706538341" Received: from iglushko-mobl1.ger.corp.intel.com ([10.249.44.68]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Nov 2022 05:16:45 -0800 Date: Fri, 11 Nov 2022 15:16:42 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Xu Yilun cc: linux-fpga@vger.kernel.org, Wu Hao , Tom Rix , Moritz Fischer , Lee Jones , Matthew Gerlach , Russ Weight , Tianfei zhang , Mark Brown , Greg KH , LKML Subject: Re: [PATCH 10/12] mfd: intel-m10-bmc: Add PMCI driver In-Reply-To: Message-ID: References: <20221108144305.45424-1-ilpo.jarvinen@linux.intel.com> <20221108144305.45424-11-ilpo.jarvinen@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-1610038758-1668172156=:1606" Content-ID: <799f7c47-89b-b64d-b4c-d6ffa22ef017@linux.intel.com> 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,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. --8323329-1610038758-1668172156=:1606 Content-Type: text/plain; CHARSET=ISO-8859-15 Content-Transfer-Encoding: 8BIT Content-ID: <35f65f-3095-9217-ff4c-818d95be3de@linux.intel.com> On Fri, 11 Nov 2022, Xu Yilun wrote: > On 2022-11-08 at 16:43:03 +0200, Ilpo J?rvinen wrote: > > +static int pmci_probe(struct dfl_device *ddev) > > +{ > > + struct device *dev = &ddev->dev; > > + struct pmci_device *pmci; > > + > > + pmci = devm_kzalloc(dev, sizeof(*pmci), GFP_KERNEL); > > + if (!pmci) > > + return -ENOMEM; > > + > > + pmci->m10bmc.dev = dev; > > + pmci->dev = dev; > > I don't see its usage. It's used by dev_err() in patch 11/12. > > + pmci->base = devm_ioremap_resource(dev, &ddev->mmio_res); > > + if (IS_ERR(pmci->base)) > > + return PTR_ERR(pmci->base); > > + > > + pmci->m10bmc.regmap = > > + devm_regmap_init_indirect(dev, > > + pmci->base + M10BMC_PMCI_INDIRECT_BASE, > > + &m10bmc_pmci_regmap_config); > > + if (IS_ERR(pmci->m10bmc.regmap)) > > + return PTR_ERR(pmci->m10bmc.regmap); > > + > > + return m10bmc_dev_init(&pmci->m10bmc, &m10bmc_m10_n6000); > > +} > > + > > +#define FME_FEATURE_ID_PMCI_BMC 0x12 > > + > > +static const struct dfl_device_id pmci_ids[] = { > > + { FME_ID, FME_FEATURE_ID_PMCI_BMC }, > > + { } > > +}; > > +MODULE_DEVICE_TABLE(dfl, pmci_ids); > > + > > +static struct dfl_driver pmci_driver = { > > + .drv = { > > + .name = "intel-m10-bmc", > > + .dev_groups = m10bmc_dev_groups, > > + }, > > + .id_table = pmci_ids, > > + .probe = pmci_probe, > > +}; > > + > > +module_dfl_driver(pmci_driver); > > Maybe change the name. This is still a MAX10 bmc driver, pmci is just the > interface to max10. I've now improved the naming consistency to basically have m10bmc_pmci_ as the prefix for many things that weren't previously. -- i. --8323329-1610038758-1668172156=:1606--