Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp642854lqt; Mon, 18 Mar 2024 21:25:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUZgFJtJyX2xgP/qU+he2/e8cHXoeHyGbgFNRCV0V0AsR3A8nZBMqRimVsvWGpjMA+Ug8MwWV5stbCW1DVGfMm1BmzfpHvoPZ5Dc7Vx0g== X-Google-Smtp-Source: AGHT+IHkDvxmWTUnots9hakQLsaJhfguitNRBr0HpgaUEXuX07ulPfuO7LPQW450fFt8MbfWPF3m X-Received: by 2002:a05:6808:11c5:b0:3c2:5195:8314 with SMTP id p5-20020a05680811c500b003c251958314mr14830482oiv.26.1710822303338; Mon, 18 Mar 2024 21:25:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710822303; cv=pass; d=google.com; s=arc-20160816; b=i/XwCHTWQrAeH8LqtSm9ylV8vFzl1jEJNX27WJuQ7IiBaqmxkXzA50D9O8ACBC4pjL cElWB5ELiJmfAgdI9zDgOjOnXbsqDCehjXF8mYDay3OMfe/S+xod2SgHoZbPEqtBBrMf D6XD7GxHlHnMQmrmX799o4MBBevxh7Im4HPVg7l9XQYkqGiYNG4ylWvghu3NWV80/u4B NtoFYKu2mU7Lz0wtQ5CMS9v/S0Ly446aOF0CoqK7XoIX61kEuAcfmT5h7tlg79rwAXm1 ShOj9DRdV09qMx/E3+KAE5ciUjoEW/6JqF87ZSzSmOPyUkU8PFfDVme0ClQ0jc/n6+uC pPrA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=xjumzDcsUnpD6cDhDzSseegWEdC6S92ZXzGVyGlxjuo=; fh=odv3siBkyPeVb9G92gO5k4awbWsf0QmhRC4a25u6pQE=; b=j1O/9Ldc9LzycwwMwvsc48PC5f0rk2sR4vFtE3xX1Via7r0QoYz/xP8mKUG2AGvUrK zwj5HH1x2qMQcheR5ckfRbSSy+t1GaX3bxURMAL2tWTZa5cXaVNm3lYOmq/2Ovx7xHiK CfiSpxrlrp2tTRV4q2YeUIIdlFK2cu/3dzZ75KK4AokdmQPLd6vZIo6nomm7Qr+qYThM jDYl1fzVIa5EeYBYY8p9MkFiwsrS0O02HUYMIcxxvWegPwobk00gKa9sckjTyw4l2/xt uYOiyYp89B8FbQmRS9XlzCKzLw4MujoiqyXXMcC8hAI4BtrbMDsDTCfoIL5ggbL3Io6b sgfQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mdpkWybJ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-106988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q128-20020a632a86000000b005dc352a5637si9184560pgq.323.2024.03.18.21.25.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 21:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=mdpkWybJ; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-106988-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106988-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 02C47283208 for ; Tue, 19 Mar 2024 04:25:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D84597C093; Tue, 19 Mar 2024 04:24:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mdpkWybJ" Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 50D0B5F544; Tue, 19 Mar 2024 04:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710822294; cv=none; b=E3O24uuruA7HrZUOkpJKbnjH2dP6lflJEfTR/gJnkxQJyrK6dBeV3TBzCHw0o4nwDpvuCYIvfXGGAjUZRL+KyWb43drVecgYJWjok+vUlZNejADtImtgkUsvi2Z5o7DjWYnQufNJmWsniRTKxh+kn+SWtMscfMbKrnpafX0JcRU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710822294; c=relaxed/simple; bh=8COTqAO78HYhmDSxjg8TTpsRSgxaVPz9po3QmqxHMyA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rRAEJtSrAVT4IjZXpTrYx2KyeEEUzxIBd1kCur7Ujr2meEYCEJCzHvRAPo/WcHjTAmMNoZq24ZiA8Pu8x1utJw45WZdvrB92UCtFCvUv50gYch6dHBDNZn/aOL+G4rIfwjPVidpR/+MO1nlgAl6GNFuBDc/DDw/9cb4lOXKYLFw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mdpkWybJ; arc=none smtp.client-ip=192.198.163.8 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710822292; x=1742358292; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8COTqAO78HYhmDSxjg8TTpsRSgxaVPz9po3QmqxHMyA=; b=mdpkWybJg0oQLh7VDqqnVeY7ZQ9Uxi7u+g5so/ZLpXEf1Z6mjJeECiQD eZg0iQEh0G8QpaE5J58xhP7cYJwJeRp+Yv3h4bokXpjlbQ9BLQevEdsqD LHmwMi8Icnmu8GHUNHJVXCMrBWoEsKGfkZLBx4HBI8YJMaZdHeY91zTLy Fd6ZWufro/6Mzbs3dD257ltfS2/ZPr/75aQ7dwFRGxVX/AXy3BieYoQ3w jJfrOmMPRu+Sm4CJAjJm0YXbHwwf8INKIl4dh6bxpBBh7x2+7GdVbo+VB CX3xgVllAzXrNxO4rqNVWqeYzzUO22JF427Xj5Vo8oJH7w2ap7JhNv/pf Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11017"; a="23174513" X-IronPort-AV: E=Sophos;i="6.07,135,1708416000"; d="scan'208";a="23174513" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2024 21:24:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,135,1708416000"; d="scan'208";a="14146453" Received: from yilunxu-optiplex-7050.sh.intel.com (HELO localhost) ([10.239.159.165]) by orviesa007.jf.intel.com with ESMTP; 18 Mar 2024 21:24:47 -0700 Date: Tue, 19 Mar 2024 12:20:15 +0800 From: Xu Yilun To: Charles Perry Cc: mdf@kernel.org, avandiver@markem-imaje.com, bcody@markem-imaje.com, Wu Hao , Xu Yilun , Tom Rix , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Michal Simek , linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v5 1/3] fpga: xilinx-spi: extract a common driver core Message-ID: References: <20240313225746.489253-1-charles.perry@savoirfairelinux.com> <20240313225746.489253-2-charles.perry@savoirfairelinux.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240313225746.489253-2-charles.perry@savoirfairelinux.com> > +/** > + * struct xilinx_fpga_core - interface between the driver and the core manager > + * of Xilinx 7 Series FPGA manager > + * @dev: device node > + * @write: write callback of the driver > + * @prog_b: PROGRAM_B gpio descriptor > + * @init_b: INIT_B gpio descriptor > + * @done: DONE gpio descriptor Please re-check the Documentation again: "Structure fields that are inside a private: area are not listed in the generated output documentation" > + */ > +struct xilinx_fpga_core { > +/* public: */ > + struct device *dev; > + int (*write)(struct xilinx_fpga_core *core, const char *buf, > + size_t count); > +/* private: handled by xilinx-core */ > + struct gpio_desc *prog_b; > + struct gpio_desc *init_b; > + struct gpio_desc *done; > +}; > + [...] > - > static int xilinx_spi_probe(struct spi_device *spi) > { > - struct xilinx_spi_conf *conf; > - struct fpga_manager *mgr; > + struct xilinx_fpga_core *conf; Why do you name it conf? Maybe "core" is better? Thanks, Yilun