Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7859940rwb; Mon, 12 Dec 2022 21:50:45 -0800 (PST) X-Google-Smtp-Source: AA0mqf7MAsoMTdsMy4FGTeTrKqLjg7mTnCjIzJtBjuPg3LxDF9Hs+8HRnLfCUvVIZvalJ0NJzJ8K X-Received: by 2002:a17:902:7104:b0:189:bf5d:c951 with SMTP id a4-20020a170902710400b00189bf5dc951mr18496846pll.26.1670910645340; Mon, 12 Dec 2022 21:50:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670910645; cv=none; d=google.com; s=arc-20160816; b=lB7XFofDfP3DASWGrJl2DTZdRuP/Q9r9pS3CTao0FSQRtSCTteFWR4Q/tSVb7rITMn T6P6DsXhY942qq4enutNdhO28D8r5wLlBFhx3wXDDrAYzQjozSK8N7DhIGIwJhiQ7AMj x9UFLUOs/NYZsJc/13hiot8fDFr4ih8UqMPS66nCz6EfhuzGlnLEFnE+fB5EHaJqwBff AWsTUadqec578ADbvqGrnwj3bYBbhYmhYOHjPF/qGoba+BeR6y+K3D458+Is0UXBz9cO f5OvnnKQNGGhu+RBnwezDAzydMGCp9V/QigGJHOCZ+aizWkAQZjFRsjPcaEJK7X7w9nn j22A== 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=M8bb/m30khvpnYvAIgfcg6ow7EHdLwrGjHyLS/tAc2c=; b=GlxqxGFc1ahccSiz3EbMcf3BURfM4w0lIHBcX0S2irXWVbtsX/9DaWkt7hZHoNDbvl 3XQJzyLyMAVWQSQMNcgMQ5FZXQkQ5odaJI7TpOEJ4BkLVjxSnhLFEQ38/dRe4OF8jH0R ILXQgfkj49aieKk7WUg+IdTrDjz/kGDUlow+nDZ1vHz6MbRJPZcf8pk49s+4vSI1BTQA Z8sHtmrRTFog8NUFJSBoOFB0AX/1pTKU1MtbDUCqeD0wUEKbzTB94HKgJ02G78dmQvyo HnXd10yQT1XSVWuIq8cX14ra2EUXQLL/cuhQz+GZQkvJqocht5xUXFHnwE46MPw5wKMN 8TRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=gpbuNjTC; 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 j19-20020a170902f25300b0018907d64909si10447292plc.325.2022.12.12.21.50.34; Mon, 12 Dec 2022 21:50:45 -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=gpbuNjTC; 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 S232959AbiLMFoI (ORCPT + 75 others); Tue, 13 Dec 2022 00:44:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229455AbiLMFoF (ORCPT ); Tue, 13 Dec 2022 00:44:05 -0500 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE9E217E2E; Mon, 12 Dec 2022 21:44:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670910243; x=1702446243; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=GlIRjLlouUWO1uozDPsslI/wfIy9NlpDuzuMY/D2txM=; b=gpbuNjTCJOoTT6hl7UlBi90QfVzIkGGwEv162NkWxpaWEagu+IXZFTJf fAvswbQga+6x+qpf/6gUd4HffzgLJ/+48DEwJIz6Azc51u6Cx4p/ekSkW 1Qlusfdugg9qh0E1Qpq2GpUNY+vnyzGqun+ZAgrQcP1lN+y9vwVl46ajt d/vldXautHUhjSkLgmHtg24kRxuWzOMiVToCgRvhO9z63Tju8MhdnHCHS Gnl7H2cDUaMYNftI2n/+2qUGHBhAMQWNjV0Lzl5LHXd/slQIhR8PfFwjD 1LmISqeK1VLBHGLKIyYQU7sG7TYWTxYSnGcod7nSfCbLMSdRUz+pWXAuE Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10559"; a="316750317" X-IronPort-AV: E=Sophos;i="5.96,240,1665471600"; d="scan'208";a="316750317" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Dec 2022 21:44:03 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10559"; a="977326298" X-IronPort-AV: E=Sophos;i="5.96,240,1665471600"; d="scan'208";a="977326298" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmsmga005.fm.intel.com with ESMTP; 12 Dec 2022 21:44:00 -0800 Date: Tue, 13 Dec 2022 13:34:09 +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 , Marco Pagani , linux-kernel@vger.kernel.org Subject: Re: [PATCH v4 1/8] mfd: intel-m10-bmc: Create m10bmc_platform_info for type specific info Message-ID: References: <20221211103913.5287-1-ilpo.jarvinen@linux.intel.com> <20221211103913.5287-2-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: <20221211103913.5287-2-ilpo.jarvinen@linux.intel.com> 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-12-11 at 12:39:06 +0200, Ilpo J?rvinen wrote: > BMC type specific info is currently set by a switch/case block. The > size of this info is expected to grow as more dev types and features > are added which would have made the switch block bloaty. > > Store type specific info into struct and place them into .driver_data > instead because it makes things a bit cleaner. > > The m10bmc_type enum can be dropped as the differentiation is now > fully handled by the platform info. > > The info member of struct intel_m10bmc that is added here is not used > yet in this change but its addition logically still belongs to this > change. The CSR map change that comes after this change needs to have > the info member. > > Reviewed-by: Russ Weight > Signed-off-by: Ilpo J?rvinen Reviewed-by: Xu Yilun