> > [Pekon] you need separate DT binding for controller and child devices. > > And then separate for Tx and Rx in each of them. > > Also, I suggest you add devicetree-discuss maillist when you update the > > Device-tree documentation for same. > > > Just as you said above, master node describe the total data wires on > SOC, slave node describe the detailed capability selected, which is > logically right. But to master, the drivers have already supplied this > infomation in probe, so do we still need to add in device tree and > provide another method in master driver to get the info from device > tree? > [Pekon]: Yes, for controller the controller_driver should parse or fill in this info in the spi_master->mode. But, still you need to add check while probing spi_device DT that only common supported compatibilities get into spi_device. Example: if spi_master->mode == SPI_TX_DUAL only and of_spi_device() returns SPI_TX_QUAD, then you should return back with error showing mis-match in controller and device capabilities. So, spi_device capabilites should always be sub-set of spi_master capabilities.
> > I havn't seen any traffic on next version of this patch? > > Did I miss, or you are working on it? > > > No, because of other jobs so didn't fix the patch in time, sorry for > that. Even now I still in puzzled that whether to make quad in mode or > add a new member in all the related struct. My trend is the previous > scheme. However they both have strong and weak points. > If add in mode: > [strong points]: > The existed operation such as compare master mode and device mode, DT > interface, mode set in master driver and so on which will be a benifit > to make the quad code clear and smooth. > [weak points] > But to expand mode will make spidev not back compatible and the > modified spidev code to fix the compatible problems looks a little > wierd. > Also another point from Trent, to make it consistent between > spi_transfer and spi_device. just like: > spi_transfer->speed_hz depend on spi_device->speed_hz; > spi_transfer->bits_per_word depends on spi_device->bits_per_word; > So is that add the similar member as below looks better? > spi_transfer->tx_nbits depends on spi_device->tx_nbits not spi_device->mode. > if add new member: > The previous strong points and weak points will become exchanged. > I still hope some suggestions to make one scheme extremely powerful > and I will provide the patch this week. [Pekon]: I'm also inclined to your suggestion of previous scheme, but we don't break the binary compatibility with userspace applications. (as Matt pointed out earlier). But I think its more of an upgrade|extension of of IOCTL than re-defining it. And as SPI is evolving we need to make these upgrades in our interface to adapt to newer SPI. But its upto maintainers to accept that. So, I suggest you send the spidev related patch separately, so that there could be more discussion on that. with regards, pekon ------------------------------------------------------------------------------ Get 100% visibility into Java/.NET code with AppDynamics Lite! It's a free troubleshooting tool designed for production. Get down to code-level detail for bottlenecks, with <2% overhead. Download for free and get started troubleshooting in minutes. http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk _______________________________________________ spi-devel-general mailing list spi-devel-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/spi-devel-general