On Thu, 26 Sep 2019 at 18:34, Philippe Mathieu-Daudé <f4...@amsat.org> wrote: > > The BCM2835 AUX UART is compatible with the 16650 model, when > the registers belong the the 16650 block, use its trace events, > else use bcm2835_aux_read/write. > > Signed-off-by: Philippe Mathieu-Daudé <f4...@amsat.org> > ---
> + if (is_16650(offset)) { > + trace_serial_ioport_read((offset & 0x1f) >> 2, res); > + } else { > + trace_bcm2835_aux_read(offset, res); > + } I'm not really a fan of this. I would expect that if I turn on the trace point for reads from the device that I see all the reads, not just a subset of them. The device may be minimally software-compatible with a 16650, but it isn't actually a 16650, and there doesn't seem to be much point in sharing the serial_ioport_read() tracepoint. thanks -- PMM