Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1350068 > unrolled thread
| Started by | Clemens Ladisch <clemens@ladisch.de> |
|---|---|
| First post | 2016-03-04 10:40 +0100 |
| Last post | 2016-03-04 19:50 +0100 |
| Articles | 3 — 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: [PATCH 1/5] usb: gadget: f_midi: refactor state machine Clemens Ladisch <clemens@ladisch.de> - 2016-03-04 10:40 +0100
Re: [PATCH 1/5] usb: gadget: f_midi: refactor state machine Felipe Ferreri Tonello <eu@felipetonello.com> - 2016-03-04 19:50 +0100
Re: [PATCH 1/5] usb: gadget: f_midi: refactor state machine Clemens Ladisch <clemens@ladisch.de> - 2016-03-04 19:50 +0100
| From | Clemens Ladisch <clemens@ladisch.de> |
|---|---|
| Date | 2016-03-04 10:40 +0100 |
| Subject | Re: [PATCH 1/5] usb: gadget: f_midi: refactor state machine |
| Message-ID | <r8Uni-4Eo-67@gated-at.bofh.it> |
Felipe Ferreri Tonello wrote: > On 03/03/16 11:38, Clemens Ladisch wrote: >> But in what way was the old state machine not "proper"? > > Because it didn't reflect all the correct and possible MIDI states The whole point of the one-byte real-time messages is that they do not affect the parsing of the surrounding MIDI stream. So not making them part of the state machine is the proper way of handling them. (Also see the flowchart in appendix A of the spec.) > This patch doesn't change any functionality. But the important thing > here is that it improves the driver maintainability [...] Then I won't get in the way of this driver's maintainer. Regards, Clemens
[toc] | [next] | [standalone]
| From | Felipe Ferreri Tonello <eu@felipetonello.com> |
|---|---|
| Date | 2016-03-04 19:50 +0100 |
| Message-ID | <r92Xy-2wT-81@gated-at.bofh.it> |
| In reply to | #1350068 |
Hi Clemens, On March 4, 2016 8:07:40 AM GMT+00:00, Clemens Ladisch <clemens@ladisch.de> wrote: >Felipe Ferreri Tonello wrote: >> On 03/03/16 11:38, Clemens Ladisch wrote: >>> But in what way was the old state machine not "proper"? >> >> Because it didn't reflect all the correct and possible MIDI states > >The whole point of the one-byte real-time messages is that they do not >affect the parsing of the surrounding MIDI stream. So not making them >part of the state machine is the proper way of handling them. (Also >see the flowchart in appendix A of the spec.) I really don't get your point. So why do we have a state machine at all? > >> This patch doesn't change any functionality. But the important thing >> here is that it improves the driver maintainability [...] > >Then I won't get in the way of this driver's maintainer. Clemens, I really value your feedback. I just want to understand what's the problem of this patch. Felipe -- Sent from my Android device with K-9 Mail. Please excuse my brevity.
[toc] | [prev] | [next] | [standalone]
| From | Clemens Ladisch <clemens@ladisch.de> |
|---|---|
| Date | 2016-03-04 19:50 +0100 |
| Message-ID | <r92Xz-2wT-105@gated-at.bofh.it> |
| In reply to | #1350517 |
Felipe Ferreri Tonello wrote: > On March 4, 2016 8:07:40 AM GMT+00:00, Clemens Ladisch <clemens@ladisch.de> wrote: >> Felipe Ferreri Tonello wrote: >>> On 03/03/16 11:38, Clemens Ladisch wrote: >>>> But in what way was the old state machine not "proper"? >>> >>> Because it didn't reflect all the correct and possible MIDI states >> >> The whole point of the one-byte real-time messages is that they do not >> affect the parsing of the surrounding MIDI stream. So not making them >> part of the state machine is the proper way of handling them. (Also >> see the flowchart in appendix A of the spec.) > > I really don't get your point. So why do we have a state machine at all? To parse all the other messages. Regards, Clemens
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web