* Re: [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c [not found] ` <20120715081715.GA2429-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org> @ 2012-07-21 12:44 ` Wolfram Sang [not found] ` <20120721124406.GA9946-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Wolfram Sang @ 2012-07-21 12:44 UTC (permalink / raw) To: Shawn Guo Cc: Marek Vasut, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Detlev Zundel, Dong Aisheng, Fabio Estevam, Linux ARM kernel, Sascha Hauer, Stefano Babic, Uwe Kleine-König, Wolfgang Denk, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A [-- Attachment #1: Type: text/plain, Size: 1503 bytes --] On Sun, Jul 15, 2012 at 04:17:16PM +0800, Shawn Guo wrote: > On Fri, Jul 13, 2012 at 10:22:49AM +0200, Wolfram Sang wrote: > > > + /* > > > + * TODO: This is a temporary solution and should be changed > > > + * to use generic DMA binding later when the helpers get in. > > > + */ > > > > @Shawn: Any idea when this is going to happen? And why do we need this? > > See thread [1] for current statues. I'm not sure when it's going to > happen though. Phew, [1] is a bit too much too read. I will just assume there are still issues. > > AFAICT it will be always channel 6/7 on mx28? > > > Yes, but it might be a different channel on mx23. Just like we define > IO region and interrupt number in device tree, dma channel is just > another resource of hardware block that we choose to define in device > tree. What makes me wonder now that I come to think of it (not necessarily a question for Shawn but to all): If I have an I2C slave with an interrupt line tied to something, GPIO or external IRQ from the SoC, it makes perfect sense to define that in the devicetree. Yet, if I know the compatible property for the mxs I2C driver, and also know the CPU type (be it MX23 or MX28), I can deduce from that a lot of information, including DMA channel. That is fix. Why encode it? Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20120721124406.GA9946-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c [not found] ` <20120721124406.GA9946-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2012-07-21 14:11 ` Marek Vasut [not found] ` <201207211611.58956.marex-ynQEQJNshbs@public.gmane.org> 2012-07-28 8:02 ` Shawn Guo 1 sibling, 1 reply; 6+ messages in thread From: Marek Vasut @ 2012-07-21 14:11 UTC (permalink / raw) To: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r Cc: Wolfram Sang, Shawn Guo, Fabio Estevam, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A, Wolfgang Denk, Detlev Zundel, Stefano Babic, Sascha Hauer, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Uwe Kleine-König, Dong Aisheng Dear Wolfram Sang, > On Sun, Jul 15, 2012 at 04:17:16PM +0800, Shawn Guo wrote: > > On Fri, Jul 13, 2012 at 10:22:49AM +0200, Wolfram Sang wrote: > > > > + /* > > > > + * TODO: This is a temporary solution and should be changed > > > > + * to use generic DMA binding later when the helpers get in. > > > > + */ > > > > > > @Shawn: Any idea when this is going to happen? And why do we need this? > > > > See thread [1] for current statues. I'm not sure when it's going to > > happen though. > > Phew, [1] is a bit too much too read. I will just assume there are still > issues. > > > > AFAICT it will be always channel 6/7 on mx28? > > > > Yes, but it might be a different channel on mx23. Just like we define > > IO region and interrupt number in device tree, dma channel is just > > another resource of hardware block that we choose to define in device > > tree. > > What makes me wonder now that I come to think of it (not necessarily a > question for Shawn but to all): > > If I have an I2C slave with an interrupt line tied to something, GPIO or > external IRQ from the SoC, it makes perfect sense to define that in the > devicetree. > > Yet, if I know the compatible property for the mxs I2C driver, and also > know the CPU type (be it MX23 or MX28), I can deduce from that a lot of > information, including DMA channel. That is fix. Why encode it? You know the compatible and the "fallback compatible". From the later one, you can deduce nothing if that happens to kick in. btw. the PIO discussion on DT discuss is completely ignored. How shall we proceed, this driver is stalled for too long. > Regards, > > Wolfram Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <201207211611.58956.marex-ynQEQJNshbs@public.gmane.org>]
* Re: [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c [not found] ` <201207211611.58956.marex-ynQEQJNshbs@public.gmane.org> @ 2012-07-21 15:41 ` Wolfram Sang [not found] ` <20120721154153.GA25874-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Wolfram Sang @ 2012-07-21 15:41 UTC (permalink / raw) To: Marek Vasut Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Shawn Guo, Fabio Estevam, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A, Wolfgang Denk, Detlev Zundel, Stefano Babic, Sascha Hauer, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Uwe Kleine-König, Dong Aisheng [-- Attachment #1: Type: text/plain, Size: 1041 bytes --] > > Yet, if I know the compatible property for the mxs I2C driver, and also > > know the CPU type (be it MX23 or MX28), I can deduce from that a lot of > > information, including DMA channel. That is fix. Why encode it? > > You know the compatible and the "fallback compatible". From the later one, you > can deduce nothing if that happens to kick in. Even if the driver was matched because of an MX23-I2C "compatible" binding, both devicetree and runtime could provide data that it actually runs on MX28. That shouldn't be a problem. > btw. the PIO discussion on DT discuss is completely ignored. How shall we > proceed, this driver is stalled for too long. IIRC I mentioned that a discussion about the bindings won't make the next merge window. That's why I proposed either module_parameter or dropping the binding entirely as possible inbetween options. -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <20120721154153.GA25874-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>]
* Re: [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c [not found] ` <20120721154153.GA25874-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> @ 2012-07-21 15:54 ` Marek Vasut [not found] ` <201207211754.29372.marex-ynQEQJNshbs@public.gmane.org> 0 siblings, 1 reply; 6+ messages in thread From: Marek Vasut @ 2012-07-21 15:54 UTC (permalink / raw) To: Wolfram Sang Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Shawn Guo, Fabio Estevam, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A, Wolfgang Denk, Detlev Zundel, Stefano Babic, Sascha Hauer, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Uwe Kleine-König, Dong Aisheng, pavel-+ZI9xUNit7I Dear Wolfram Sang, > > > Yet, if I know the compatible property for the mxs I2C driver, and also > > > know the CPU type (be it MX23 or MX28), I can deduce from that a lot of > > > information, including DMA channel. That is fix. Why encode it? > > > > You know the compatible and the "fallback compatible". From the later > > one, you can deduce nothing if that happens to kick in. > > Even if the driver was matched because of an MX23-I2C "compatible" > binding, both devicetree and runtime could provide data that it actually > runs on MX28. That shouldn't be a problem. You mean like ... cpu_is_mx28() ? We got rid of that in favor of DT. > > btw. the PIO discussion on DT discuss is completely ignored. How shall we > > proceed, this driver is stalled for too long. > > IIRC I mentioned that a discussion about the bindings won't make the > next merge window. Yet another merge window, I have to mention. And only because very long pauses inbetween reviews and very minor nitpicks. I'm being annoyed by this patch so much I'm thinking of giving up on this. I wasted too much of my free time on this and the result is as is. > That's why I proposed either module_parameter Which I explained is not a way to go. > or > dropping the binding entirely as possible inbetween options. Which is not an option either. And this discussion is only further stalling the patch. We're adding fsl,something properties all over the DT all the time, yet this one is of concern? Best regards, Marek Vasut ^ permalink raw reply [flat|nested] 6+ messages in thread
[parent not found: <201207211754.29372.marex-ynQEQJNshbs@public.gmane.org>]
* Re: [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c [not found] ` <201207211754.29372.marex-ynQEQJNshbs@public.gmane.org> @ 2012-07-22 8:33 ` Wolfram Sang 0 siblings, 0 replies; 6+ messages in thread From: Wolfram Sang @ 2012-07-22 8:33 UTC (permalink / raw) To: Marek Vasut Cc: linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Shawn Guo, Fabio Estevam, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A, Wolfgang Denk, Detlev Zundel, Stefano Babic, Sascha Hauer, linux-i2c-u79uwXL29TY76Z2rM5mHXA, Uwe Kleine-König, Dong Aisheng, pavel-+ZI9xUNit7I [-- Attachment #1: Type: text/plain, Size: 2275 bytes --] > > Even if the driver was matched because of an MX23-I2C "compatible" > > binding, both devicetree and runtime could provide data that it actually > > runs on MX28. That shouldn't be a problem. > > You mean like ... cpu_is_mx28() ? We got rid of that in favor of DT. Might be. But the information is probably somewhere. > > IIRC I mentioned that a discussion about the bindings won't make the > > next merge window. > > Yet another merge window, I have to mention. And only because very long pauses > inbetween reviews and very minor nitpicks. I'm being annoyed by this patch so > much I'm thinking of giving up on this. I wasted too much of my free time on > this and the result is as is. For you it might be a minor nitpick, for me (as a maintainer) it is not. You have to deal with just one binding, I have to deal with many. And since they have to be supported forever, this can easily mess up code and make the subsystem clumsy and whatnot. > > That's why I proposed either module_parameter > > Which I explained is not a way to go. That's why I called it inbetween solution so the patch could go in. It's fine if you don't like it, I prefer dropping the binding as well. > > or > > dropping the binding entirely as possible inbetween options. > > Which is not an option either. It would enable you to add the binding as an out-of-tree patch. > And this discussion is only further stalling the > patch. > We're adding fsl,something properties all over the DT all the time, yet this one > is of concern? Yes. Adding all these properties is IMO not the right way, and I have the impression they often came in because of time pressure like this. If I think it is wrong for the kernel, I have to reject a patch unless I am convinced otherwise. Which did not happen yet; as you found out discussions on devicetree-discuss are slow. Might be another indication that devictree things happen too much at the time currently. This is not specific to your patch, there are more which need discussion or had to be reworked. Regards, Wolfram -- Pengutronix e.K. | Wolfram Sang | Industrial Linux Solutions | http://www.pengutronix.de/ | [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 198 bytes --] ^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c [not found] ` <20120721124406.GA9946-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2012-07-21 14:11 ` Marek Vasut @ 2012-07-28 8:02 ` Shawn Guo 1 sibling, 0 replies; 6+ messages in thread From: Shawn Guo @ 2012-07-28 8:02 UTC (permalink / raw) To: Wolfram Sang Cc: Marek Vasut, Fabio Estevam, devicetree-discuss-mnsaURCQ41sdnm+yROfE0A, Wolfgang Denk, Detlev Zundel, Linux ARM kernel, Sascha Hauer, Uwe Kleine-König, linux-i2c-u79uwXL29TY76Z2rM5mHXA On Sat, Jul 21, 2012 at 02:44:06PM +0200, Wolfram Sang wrote: > Yet, if I know the compatible property for the mxs I2C driver, and also > know the CPU type (be it MX23 or MX28), I can deduce from that a lot of > information, including DMA channel. That is fix. Why encode it? > The driver shouldn't know the CPU type but just the IP type/version. We can definitely have "fsl,imx23-i2c" and "fsl,imx28-i2c" compatible strings for iMX23 and iMX28 respectively if the I2C controller on these two SoC differs on the IP inside aspects. But we shouldn't do that for IO region, interrupt number, DMA channel such differences at SoC integration level. -- Regards, Shawn ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-07-28 8:02 UTC | newest] Thread overview: 6+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <1341850974-11977-1-git-send-email-marex@denx.de> [not found] ` <1341850974-11977-2-git-send-email-marex@denx.de> [not found] ` <20120713082249.GF32184@pengutronix.de> [not found] ` <20120715081715.GA2429@S2100-06.ap.freescale.net> [not found] ` <20120715081715.GA2429-+NayF8gZjK2ctlrPMvKcciBecyulp+rMXqFh9Ls21Oc@public.gmane.org> 2012-07-21 12:44 ` [PATCH 2/2 V3] MXS: Implement DMA support into mxs-i2c Wolfram Sang [not found] ` <20120721124406.GA9946-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2012-07-21 14:11 ` Marek Vasut [not found] ` <201207211611.58956.marex-ynQEQJNshbs@public.gmane.org> 2012-07-21 15:41 ` Wolfram Sang [not found] ` <20120721154153.GA25874-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> 2012-07-21 15:54 ` Marek Vasut [not found] ` <201207211754.29372.marex-ynQEQJNshbs@public.gmane.org> 2012-07-22 8:33 ` Wolfram Sang 2012-07-28 8:02 ` Shawn Guo
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).