Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1218213 > unrolled thread
| Started by | Mark Brown <broonie@kernel.org> |
|---|---|
| First post | 2015-09-03 14:20 +0200 |
| Last post | 2015-09-04 17:50 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe Mark Brown <broonie@kernel.org> - 2015-09-03 14:20 +0200
Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe Martin Sperl <martin@sperl.org> - 2015-09-04 14:40 +0200
Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe Mark Brown <broonie@kernel.org> - 2015-09-04 17:40 +0200
Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe Martin Sperl <martin@sperl.org> - 2015-09-04 17:50 +0200
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2015-09-03 14:20 +0200 |
| Subject | Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe |
| Message-ID | <q4BEM-3hX-49@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
On Wed, Aug 26, 2015 at 11:56:04AM +0530, Ranjit Waghmode wrote: > To support dual parallel mode operation of ZynqMP GQSPI controller > following API's are added inside the core: As covered in SubmittingPatches please try to make each patch a single change rather than having multiple separate changes in one commit. > + /* Controller may support more than one chip. > + * This flag will enable that feature. > + */ > +#define SPI_MASTER_BOTH_CS BIT(8) /* enable both chips */ This isn't saying that the controller supports more than one chip, it's saying that the controller supports asserting more than one chip select at once which isn't the same thing. I'm also not entirely sure that this makes sense as a separate feature to the data striping one - I'm struggling to think of a way to use this sensibly separately to that.
[toc] | [next] | [standalone]
| From | Martin Sperl <martin@sperl.org> |
|---|---|
| Date | 2015-09-04 14:40 +0200 |
| Subject | Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe |
| Message-ID | <q4YrE-292-9@gated-at.bofh.it> |
| In reply to | #1218213 |
> On 03.09.2015, at 14:12, Mark Brown <broonie@kernel.org> wrote: > > On Wed, Aug 26, 2015 at 11:56:04AM +0530, Ranjit Waghmode wrote: > >> To support dual parallel mode operation of ZynqMP GQSPI controller >> following API's are added inside the core: > > As covered in SubmittingPatches please try to make each patch a single > change rather than having multiple separate changes in one commit. > >> + /* Controller may support more than one chip. >> + * This flag will enable that feature. >> + */ >> +#define SPI_MASTER_BOTH_CS BIT(8) /* enable both chips */ > > This isn't saying that the controller supports more than one chip, it's > saying that the controller supports asserting more than one chip select > at once which isn't the same thing. I'm also not entirely sure that > this makes sense as a separate feature to the data striping one - I'm > struggling to think of a way to use this sensibly separately to that. Well - there is one use-case that I can think of: fbtft has the requirement for some devices to control a GPIO to differentiate between command and data getting transferred - sort of 9 bit. Right now it is done outside of spi in the fbtft driver itself wrapping spi_sync(). Similarly a “hold” line on an eeprom or similar could get (de)asserted without requiring holding a spi-bus-lock. But then the current patch would not allow this kind of “generic” use-case. Martin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [next] | [standalone]
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Date | 2015-09-04 17:40 +0200 |
| Message-ID | <q51fP-6d7-7@gated-at.bofh.it> |
| In reply to | #1218894 |
[Multipart message — attachments visible in raw view] — view raw
On Fri, Sep 04, 2015 at 02:35:52PM +0200, Martin Sperl wrote: > > On 03.09.2015, at 14:12, Mark Brown <broonie@kernel.org> wrote: > > This isn't saying that the controller supports more than one chip, it's > > saying that the controller supports asserting more than one chip select > > at once which isn't the same thing. I'm also not entirely sure that > > this makes sense as a separate feature to the data striping one - I'm > > struggling to think of a way to use this sensibly separately to that. > Well - there is one use-case that I can think of: > fbtft has the requirement for some devices to control a GPIO to > differentiate between command and data getting transferred > - sort of 9 bit. That's another thing again, isn't it? It's one device switching between two different control interfaces at runtime rather than two devices controlled in lockstep.
[toc] | [prev] | [next] | [standalone]
| From | Martin Sperl <martin@sperl.org> |
|---|---|
| Date | 2015-09-04 17:50 +0200 |
| Subject | Re: [LINUX RFC v2 1/4] spi: add support of two chip selects & data stripe |
| Message-ID | <q51pw-6oq-13@gated-at.bofh.it> |
| In reply to | #1219121 |
> On 04.09.2015, at 17:37, Mark Brown <broonie@kernel.org> wrote: > > On Fri, Sep 04, 2015 at 02:35:52PM +0200, Martin Sperl wrote: >>> On 03.09.2015, at 14:12, Mark Brown <broonie@kernel.org> wrote: > >>> This isn't saying that the controller supports more than one chip, it's >>> saying that the controller supports asserting more than one chip select >>> at once which isn't the same thing. I'm also not entirely sure that >>> this makes sense as a separate feature to the data striping one - I'm >>> struggling to think of a way to use this sensibly separately to that. > >> Well - there is one use-case that I can think of: >> fbtft has the requirement for some devices to control a GPIO to >> differentiate between command and data getting transferred >> - sort of 9 bit. > > That's another thing again, isn't it? It's one device switching between > two different control interfaces at runtime rather than two devices > controlled in lockstep. I agree, but there may be a solution that can handle both, so I wanted to mention it. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web