Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3163938rwb; Thu, 29 Sep 2022 22:38:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Gz9EFTDtsmwruYpA/klxW6NaIBExlCQRT7pUNqYjwT4fBajfU3kEcqbE2128xLDOLKdVh X-Received: by 2002:a50:ff09:0:b0:456:fd61:83b3 with SMTP id a9-20020a50ff09000000b00456fd6183b3mr6410795edu.166.1664516295130; Thu, 29 Sep 2022 22:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664516295; cv=none; d=google.com; s=arc-20160816; b=DiqrQe3WdKhek6QtwREiV8gSX10dOyeiAm9m3TVOb65c2KzfVR/kOekiWwn15FRkdU By32vphXCi+wZt6hMegzsgK+APNkVHBUAWU3pXpU3V6FKFPJWdbk030FwtOMmyXe0SBX HS3RoHssinxY5ipE7Z+HF0Eenv+4ohnFetcWQN7n+TP5kqJe7dWHaa44Kaip//F7uDze 1/Abdx/t3s3dbSCD9ndIfIJ+6wHkLncRmZ5365/AfAA8BPZrjEC3AK++JtReM4R3rvXI WPn4QLTriYizaedltoDkMPTP3QBUpJZ3vv+JjzyMQYv50fjTKDcK/NdHxFOd44MAy/b+ vJfQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=134slW2oYaTHpVaChv6NUvf+tYGzF6mVdBvqWLiA/Ws=; b=HTpSVSpTg3UgNyyXRqQObNAB/6SX7iDbylPCG9saRUEhwG+zLgZFZMCdF12YVgRQ8j 3kDFMhuPUNlPwVqZpFkc/scQfoeQo5Tgu5WjRVkM/ilC5SPz5GO7QLQR4mrYFP3nq/Gi Cq8fsOZ+OLOuAKu28ELDtqZxT7vo+v6h0ERgtMouFQJc+BG4FOWH/lCmL5FBERwSqyRZ JIW6DMD7Ia/jmdZ4V+ujmEJL10LgwnCQ6XzztZtV1rjiNLwQzkAq+hmyQ2XDqxb/NxbC AVCRmobxleibt/HuxxaiSpRqxPeMSnmmf1Pdw11/Qc0mLA2NGr/VTqRDPzlrG4zGbVxg km5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=PTqxsy+J; 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 sa38-20020a1709076d2600b0077edef76646si1292639ejc.366.2022.09.29.22.37.49; Thu, 29 Sep 2022 22:38:15 -0700 (PDT) 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=PTqxsy+J; 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 S230272AbiI3FKn (ORCPT + 99 others); Fri, 30 Sep 2022 01:10:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47030 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229713AbiI3FKk (ORCPT ); Fri, 30 Sep 2022 01:10:40 -0400 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EC6CE9058; Thu, 29 Sep 2022 22:10:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1664514639; x=1696050639; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=jaVg7DcNakCTHSKXrsLVNn/gQgHAGjnRUrdm5AclUcc=; b=PTqxsy+JwBk8150sPgR031qgstGIcsqQcxWrVfYHL+OvjSZrKycmTu3D Yai1DcR2u6F/mP3iyO3Of6rYHMSQHD20wCbiwMdcEwKSyk7muQUevHfNz R2HEGdLf8KbFEp6UoRMjAc9ZxbhFUtK7AYnjH8vuZRGixSMk+6oe//7eW M7tJgSYy1FpzH7Xc4U1FpoCgonvGpMF1noAvdwJLsuGhFsDUBmdavLAfM r7HDVzwQRiOurazm/y+A9RuPEL2ZflJnQV4u8WLu9FBzZ0RQgY861bzfl X6FYcOZLCJnhTfo5pB4jFikk0qs+wGY/LuuIh92RmhlDKmxuqlRAdykqh A==; X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="302078960" X-IronPort-AV: E=Sophos;i="5.93,357,1654585200"; d="scan'208";a="302078960" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Sep 2022 22:10:38 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10485"; a="726719693" X-IronPort-AV: E=Sophos;i="5.93,357,1654585200"; d="scan'208";a="726719693" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by fmsmga002.fm.intel.com with ESMTP; 29 Sep 2022 22:10:33 -0700 Date: Fri, 30 Sep 2022 13:01:44 +0800 From: Xu Yilun To: Tom Rix Cc: matthew.gerlach@linux.intel.com, hao.wu@intel.com, russell.h.weight@intel.com, basheer.ahmed.muddebihal@intel.com, mdf@kernel.org, linux-fpga@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, tianfei.zhang@intel.com, corbet@lwn.net, gregkh@linuxfoundation.org, linux-serial@vger.kernel.org, jirislaby@kernel.org, geert+renesas@glider.be, andriy.shevchenko@linux.intel.com, niklas.soderlund+renesas@ragnatech.se, phil.edworthy@renesas.com, macro@orcam.me.uk, johan@kernel.org, lukas@wunner.de, Basheer Ahmed Muddebihal Subject: Re: [PATCH v2 2/6] fpga: dfl: Move the DFH definitions Message-ID: References: <20220923121745.129167-1-matthew.gerlach@linux.intel.com> <20220923121745.129167-3-matthew.gerlach@linux.intel.com> <36342784-34c3-6a08-7cd4-eb185b61061a@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <36342784-34c3-6a08-7cd4-eb185b61061a@redhat.com> X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,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 On 2022-09-24 at 06:00:19 -0700, Tom Rix wrote: > > On 9/23/22 5:17 AM, matthew.gerlach@linux.intel.com wrote: > > From: Basheer Ahmed Muddebihal > > > > Moving the DFH register offset and register definitions from > > drivers/fpga/dfl.h to include/linux/dfl.h. These definitions > > need to be accessed by dfl drivers that are outside of > > drivers/fpga. > > This comment does not match what is done. > > A move, a change in names and the introduction new defines. > > I am not sure if moving these #defines is the best approach, the later use > of the in the uart with FIELD_GET's i think should be wrapped as functions > and these functions exported rather than the #defines. I agree, to play with all domains across kernel, we'd better not expose too much bus specific details. Thanks, Yilun