From: Xu Yilun <yilun.xu@linux.intel.com> To: Charles Perry <charles.perry@savoirfairelinux.com> Cc: mdf@kernel.org, avandiver@markem-imaje.com, bcody@markem-imaje.com, Wu Hao <hao.wu@intel.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Michal Simek <michal.simek@amd.com>, 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 Date: Tue, 19 Mar 2024 12:20:15 +0800 [thread overview] Message-ID: <ZfkSf6QG5nIY0zpx@yilunxu-OptiPlex-7050> (raw) 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
WARNING: multiple messages have this Message-ID (diff)
From: Xu Yilun <yilun.xu@linux.intel.com> To: Charles Perry <charles.perry@savoirfairelinux.com> Cc: mdf@kernel.org, avandiver@markem-imaje.com, bcody@markem-imaje.com, Wu Hao <hao.wu@intel.com>, Xu Yilun <yilun.xu@intel.com>, Tom Rix <trix@redhat.com>, Rob Herring <robh+dt@kernel.org>, Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>, Conor Dooley <conor+dt@kernel.org>, Michal Simek <michal.simek@amd.com>, 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 Date: Tue, 19 Mar 2024 12:20:15 +0800 [thread overview] Message-ID: <ZfkSf6QG5nIY0zpx@yilunxu-OptiPlex-7050> (raw) 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2024-03-19 4:24 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-13 22:57 [PATCH v5 0/3] fpga: xilinx-selectmap: add new driver Charles Perry 2024-03-13 22:57 ` Charles Perry 2024-03-13 22:57 ` [PATCH v5 1/3] fpga: xilinx-spi: extract a common driver core Charles Perry 2024-03-13 22:57 ` Charles Perry 2024-03-19 4:20 ` Xu Yilun [this message] 2024-03-19 4:20 ` Xu Yilun 2024-03-19 13:18 ` Charles Perry 2024-03-19 13:18 ` Charles Perry 2024-03-13 22:57 ` [PATCH v5 2/3] dt-bindings: fpga: xlnx,fpga-selectmap: add DT schema Charles Perry 2024-03-13 22:57 ` Charles Perry 2024-03-14 7:02 ` Krzysztof Kozlowski 2024-03-14 7:02 ` Krzysztof Kozlowski 2024-03-13 22:57 ` [PATCH v5 3/3] fpga: xilinx-selectmap: add new driver Charles Perry 2024-03-13 22:57 ` Charles Perry 2024-03-19 6:35 ` Xu Yilun 2024-03-19 6:35 ` Xu Yilun 2024-03-19 13:05 ` Charles Perry 2024-03-19 13:05 ` Charles Perry
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=ZfkSf6QG5nIY0zpx@yilunxu-OptiPlex-7050 \ --to=yilun.xu@linux.intel.com \ --cc=avandiver@markem-imaje.com \ --cc=bcody@markem-imaje.com \ --cc=charles.perry@savoirfairelinux.com \ --cc=conor+dt@kernel.org \ --cc=devicetree@vger.kernel.org \ --cc=hao.wu@intel.com \ --cc=krzysztof.kozlowski+dt@linaro.org \ --cc=linux-arm-kernel@lists.infradead.org \ --cc=linux-fpga@vger.kernel.org \ --cc=linux-kernel@vger.kernel.org \ --cc=mdf@kernel.org \ --cc=michal.simek@amd.com \ --cc=robh+dt@kernel.org \ --cc=trix@redhat.com \ --cc=yilun.xu@intel.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.