[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180319180950.GA15921@harukaze>
Date: Mon, 19 Mar 2018 19:09:50 +0100
From: Paolo Pisati <p.pisati@...il.com>
To: Moritz Fischer <mdf@...nel.org>
Cc: Paolo Pisati <p.pisati@...il.com>, Alan Tull <atull@...nel.org>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
linux-fpga@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] fpga: lattice machxo2: Add Lattice MachXO2 support
On Fri, Mar 16, 2018 at 09:26:54AM -0700, Moritz Fischer wrote:
> >
> > +static enum fpga_mgr_states machxo2_spi_state(struct fpga_manager *mgr)
> > +{
> > + return FPGA_MGR_STATE_UNKNOWN;
> > +}
>
> To understand this correctly: Further up you have a way to determine the
> state you're in, but then you only use that for debug printout, while
> here where you should provide the status you say FPGA_MGR_STATE_UNKNOWN?
>
> Am I missing something here?
This is more of a generic function ('What's the state of the FPGA now?') while
dump_status_reg() is invoked after a specific SPI command is sent to the FPGA to
keep track of the status of the chip and check that it adhere to the state
machine.
I'll send a v7.
--
bye,
p.
Powered by blists - more mailing lists