Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp905343rwb; Thu, 8 Dec 2022 04:35:53 -0800 (PST) X-Google-Smtp-Source: AA0mqf75WhrgujRa8PN5TPCRXDkyOHSIdlE37kuRLrZ/uKUhm3t02U++1k6dhxCbWBPcx7BXyQDU X-Received: by 2002:a63:5853:0:b0:477:4a83:8b75 with SMTP id i19-20020a635853000000b004774a838b75mr73001157pgm.519.1670502953427; Thu, 08 Dec 2022 04:35:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670502953; cv=none; d=google.com; s=arc-20160816; b=UkAx6oo2o1NOddTDZYffF32gmNmxG+jWTNRxSAifbcsd2VzcMJSzZWoBE4qqMoUcUR tLmT6HKooJd0hXVJB4YWvxcPNavOmD+MHhRou6MH3Oe6AKv7x40nLuGSKaMTQRjX2di7 SbjQnmppOfRqqHFKGt15blkSL5Ys5R/42UABziesOqErfm+HpIMPza9rcjF4kWm05AhY fdzrSnxRYXoBCbiNue3hu5A/J9w8THuvW98KR7s+wdah2LGB22+vCkY7sSS1uOLjE9bR zNl/r32euCZzeKFA2WG9QjLuSN4wglFlklD5/ZGyBBnMTU1c+vAxORqkacOrRXGmOtSX OuQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=J3fnKVuqYuiPzMq4nc6Pzz71VSLk6Ca2mfDOmDlivu4=; b=H7Sreo+jo4+hp4O/I9MfU9FQGYq04jwppejGM5lzc0zKlQ7GLpLU/++S60I4AWbTr4 n6bMrzI0PgN0ZyU8g5ttnUhv8o0jgHDa6VSAXKAPNWztYOzWzMbpdQomJAjNS2MxfDl2 b9ep9sh839bAgFA6akJgH+HDFe1lOnV6Zbg+vE1NmleZyxgGuXDS0/WmH4OhBMkxex0z fQZ541KenjgM5xbD3LmzVNHa97T96z9VF86GAqXtOIgme7UJXOduhFLzN3CKxfU2lzse Bd0t8DOcPCsc/4f7O+s1aTke/hAX86GIc/UbIuc6klIJ4DyQtsgsI18mIBuWhgAmAv1p pfXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=HQeE3f0R; 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 s11-20020a65584b000000b004774d8c6191si23367459pgr.413.2022.12.08.04.35.44; Thu, 08 Dec 2022 04:35:53 -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=HQeE3f0R; 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 S229680AbiLHL6E (ORCPT + 72 others); Thu, 8 Dec 2022 06:58:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50836 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229479AbiLHL6C (ORCPT ); Thu, 8 Dec 2022 06:58:02 -0500 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E7F4D3E085; Thu, 8 Dec 2022 03:58:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670500682; x=1702036682; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=RhThfi2MnPhsR7HzMO5D1K17BZtYy9Njo3aLlEab60U=; b=HQeE3f0R1q1crURFAI17OEbvvpf/FQfgffHoEXanj7kmO5LaTu/L2RqJ mdYrt5sFO+wjb839MOiss3yD0EH0WPfOvo0qe0I7AAXthuFVbJlBkQSLK rbPoBbrNtY9hIce6izWPBxaOpNtQynZJG0WzwcCIDQQKBgr3M7x/ZLt9m 5AuNG8B8wW7hAYpL1wbo/ivMsW0xF/VUgpgiSj7RAhDn6YA0q4veAl4TX 6bedKPbMvLkS2jZ/t5iqdIV4W0gY+ApKSOKjj+kWl4oUBsfT2Lk1Fm3eG SzPO99LiPkr/14KY8k1/a2S+XvZ11XPWX5l8+WmxOTTuSODfz8OqTTM6i Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="381444666" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="381444666" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 03:58:01 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="715573021" X-IronPort-AV: E=Sophos;i="5.96,227,1665471600"; d="scan'208";a="715573021" Received: from pors-mobl3.ger.corp.intel.com ([10.252.39.224]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Dec 2022 03:57:57 -0800 Date: Thu, 8 Dec 2022 13:57:56 +0200 (EET) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Xu Yilun cc: Russ Weight , linux-fpga@vger.kernel.org, Wu Hao , Tom Rix , Moritz Fischer , Lee Jones , Matthew Gerlach , Tianfei zhang , Mark Brown , Greg KH , Marco Pagani , LKML Subject: Re: [PATCH v3 6/9] mfd: intel-m10-bmc: Downscope SPI defines & prefix with M10BMC_SPI In-Reply-To: Message-ID: <9579a09f-a5a7-adb4-e34b-2416ae9b3ef@linux.intel.com> References: <20221202100841.4741-1-ilpo.jarvinen@linux.intel.com> <20221202100841.4741-7-ilpo.jarvinen@linux.intel.com> <2b253321-72ff-f15a-8879-aa41dce48055@intel.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-273247173-1670500681=:1682" X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,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 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-273247173-1670500681=:1682 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT On Mon, 5 Dec 2022, Xu Yilun wrote: > On 2022-12-05 at 11:31:06 +0200, Ilpo J?rvinen wrote: > > On Fri, 2 Dec 2022, Russ Weight wrote: > > > On 12/2/22 08:28, Xu Yilun wrote: > > > > On 2022-12-02 at 12:08:38 +0200, Ilpo J?rvinen wrote: > > > >> Move SPI based board definitions to per interface file from the global > > > >> header. This makes it harder to use them accidently in the > > > >> generic/interface agnostic code. Prefix the defines with M10BMC_SPI > > > > I'm not sure if the register layout is actually bound to the bus > > > > interface. My experience is the register layout is always decided by > > > > board type. Is it possible there will be a new SPI based board but > > > > has different register layout in future? > > > > > > > > So is M10BMC_SPI_XXX a good nam > > > > > > There could be future devices, spi or pmci based, that require different > > > addresses for some of these values, and at that time we would need to > > > additional versions of some of these macros using different names. > > > Right now, spi and pmci are the primary differentiating factors. I'm not > > > sure how to improve on the naming. Do you have any suggestions? > > > > It's per board type yes, but there's a strong clustering currently on > > spi/pmci differentiation. That implies a one define applies to multiple > > board types so naming it, e.g., after a single board type seems not much > > better than the current approach. > > I think it is better to name after one of the board type among all its > supported types. At least it clearly indicates they are related to board > type. > > Actually it is normal for many driver modules. A driver was initially > implemented for one board type, and was named by the initial board. > But later you have more board types compatible to the driver, you don't > change the driver name, just use it. Ok, I'll do it that way then. -- i. --8323329-273247173-1670500681=:1682--