Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4995690rwb; Sun, 13 Nov 2022 19:06:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf5KLz9hsnpYrm8K0e5pMT4/ESMttO5lBAP4KCmB3HDEvA5z0+vv29erTZjPD/pd4ARSrcH3 X-Received: by 2002:a17:902:ee55:b0:188:b7d6:46bf with SMTP id 21-20020a170902ee5500b00188b7d646bfmr7304298plo.111.1668395214584; Sun, 13 Nov 2022 19:06:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668395214; cv=none; d=google.com; s=arc-20160816; b=SsQldjOWqVolZHZqpk3y6P363SJN65ps7Vir2xoRHbcjZSgLgzPsnQMM2wNXFsxmB0 LLjKiiuU6yUZiv15uStBeDYC4gljvmFX09nGKUsoyiNbis/zfe8bpWoU02crHSxK5Gbq 6J/lBtuG0QfGdUYEN5c52g1zy+djETV2RnTHpuwZsjaTr0cOj8aRKkvCSe0i1W+mNCsj TpaE6x6J0fK4qmB2UjecdzWK39cxMF2A3cXB1Z6MnHozMSuT+9SVoW6gXUpeFXPFUS21 7FQGTbb4UimPXBQiUvRmsJH4YWcdyGCjn2aWoeBN0VzGVnlUpssxeY7u4KlJw3gQ6HtO RZ4Q== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OKInncQleoWnUPqnp6U7gS3jxgm1UgHjhul7/qQIUSw=; b=KChXwzn8vJ+BzwH/TkT55+UVQnNu6vxXJk2/k+3eA2IBk1y1QDD6/1e492wxrDSFfv SyGmIAAJi6UeEhCnLpYH37rGlPj+ljqxavravAX7szn5vsGOuKdqzVgwB8bqaORRej3r hQxS4a5Pme3WIoH5wxb/8NPvUDSNJQBaXV/a0/P41ThOAR2bVDVl2MzqdFlSX2ZtBTZb cBNWiL0l4VO7k6ut7xJ7qsibI7FSTf/R96ssToVRHW+OuZ0U1sJ6c9+mEyiGFVLfG377 X3yaJPpVDK7jQORqD5lKSVQ5yXUyWeEHeIVPcoPX0hg1s7zPLH8Su4uTWJi/UuFR+mMg X32g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="STZem6L/"; 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 p3-20020a170902e74300b00186ba4ba494si9446638plf.475.2022.11.13.19.06.42; Sun, 13 Nov 2022 19:06:54 -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="STZem6L/"; 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 S235644AbiKNC1m (ORCPT + 90 others); Sun, 13 Nov 2022 21:27:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234060AbiKNC1l (ORCPT ); Sun, 13 Nov 2022 21:27:41 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8396D5F5B; Sun, 13 Nov 2022 18:27:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668392860; x=1699928860; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=wj/jRasR/wJH8jBtPhs0HRU9RSSIACFbc8PFc8CwNPE=; b=STZem6L/BF/Q/7EnLF62Z/wt7zTNxXuDOiNXV30baGbaEHxxoIUM0XFZ L9Ho9AlsGS3SEVNVqhFii1tAz1qto1/epzWr59wvgahISWU61wJBiMXj+ 3Mm+7WOCUFDMZfRxY8VFfrz0YxZsOxaCZ88o1q1mEyIk+EjZ9c0TL5J4t oEV+bpWVaX69Rczd3i/J1dH9jUJaSQddO485DTUSOuO4vBQYO8/45ObkO j9n3vEMBTMLF9Vwmqu+J4maonaMHIvBdn03s6dwel9spKvTYJy831yTN5 hn/Jx4yubfJjIxIlYd//ohR7ksVIqWRLu84Ax+Xt0HBd/Je9LKBJoAewy A==; X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="310574979" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="310574979" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Nov 2022 18:27:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10530"; a="669461886" X-IronPort-AV: E=Sophos;i="5.96,161,1665471600"; d="scan'208";a="669461886" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orsmga008.jf.intel.com with ESMTP; 13 Nov 2022 18:27:37 -0800 Date: Mon, 14 Nov 2022 10:18:14 +0800 From: Xu Yilun To: Ilpo =?iso-8859-1?Q?J=E4rvinen?= 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 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: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 On 2022-11-11 at 15:16:42 +0200, Ilpo J?rvinen wrote: > 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. I see. But is m10bmc.dev already good enough for the usage? Thanks, Yilun