Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1393382
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications |
| Date | 2016-05-03 14:30 +0200 |
| Message-ID | <ruHCF-86V-11@gated-at.bofh.it> (permalink) |
| References | <rpMtk-61D-11@gated-at.bofh.it> <rpMD0-65k-13@gated-at.bofh.it> <rsYeC-7Pw-13@gated-at.bofh.it> <rsZX5-15D-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, Apr 28, 2016 at 10:37:57PM +0300, Octavian Purdila wrote: > On Thu, Apr 28, 2016 at 8:42 PM, Mark Brown <broonie@kernel.org> wrote: > > There's more code here now than I remember but this all looks *really* > > close to the DT code except for the OF_POPULATED flag that we set when > > things are instantiated in DT. The duplication seems bad but the fact > > that we're missing the flag worries me... do we have guarantees that > > ACPI won't double register? > We use the adev->flags.visited to check when a device has been already > enumerated, and we skip registering a new SPI slave in that case. OK, but the fact that I need to know that isn't exactly thrilling - that's really the issue with the not quite duplication here. It's not just if the code works but also the maintainability.
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: [RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications Mark Brown <broonie@kernel.org> - 2016-04-28 19:50 +0200
Re: [RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications Octavian Purdila <octavian.purdila@intel.com> - 2016-04-28 21:40 +0200
Re: [RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications Mark Brown <broonie@kernel.org> - 2016-05-03 14:30 +0200
Re: [RFC PATCH v2 06/10] spi: add support for ACPI reconfigure notifications Octavian Purdila <octavian.purdila@intel.com> - 2016-05-04 17:10 +0200
csiph-web