Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Hello Richard > > Hmm, will we ever need the new function for in-tree drivers? > In general we add new functions only if they have an in-tree user > for it. It is part of a driver for a camera at qtec.com . The policy so far has been that we offer the code to our clients but we cannot afford to

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Richard Weinberger
Hi! Am 02.02.2015 um 20:33 schrieb Ricardo Ribalda Delgado: > Hello > > On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger > wrote: >> On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado >> >> Can you please also send a patch which shows the usage of this new function >> by a driver? > >

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Hello On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger wrote: > On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado > > Can you please also send a patch which shows the usage of this new function > by a driver? It is currently out of tree, but here you can see the relevant code:

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Richard Weinberger
On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado wrote: > Currently, there is no way to find out the offset of an mtd partition by > a driver. This might be needed by external hardware. > > For example, a flash containing the firmware of an external device that > is also accessible by the

[PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Currently, there is no way to find out the offset of an mtd partition by a driver. This might be needed by external hardware. For example, a flash containing the firmware of an external device that is also accessible by the main cpu/kernel. The flash is big enough to have two partitions with 2

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Richard Weinberger
Hi! Am 02.02.2015 um 20:33 schrieb Ricardo Ribalda Delgado: Hello On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger richard.weinber...@gmail.com wrote: On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado Can you please also send a patch which shows the usage of this new function by

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Hello Richard Hmm, will we ever need the new function for in-tree drivers? In general we add new functions only if they have an in-tree user for it. It is part of a driver for a camera at qtec.com . The policy so far has been that we offer the code to our clients but we cannot afford to

[PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Currently, there is no way to find out the offset of an mtd partition by a driver. This might be needed by external hardware. For example, a flash containing the firmware of an external device that is also accessible by the main cpu/kernel. The flash is big enough to have two partitions with 2

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Richard Weinberger
On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado ricardo.riba...@gmail.com wrote: Currently, there is no way to find out the offset of an mtd partition by a driver. This might be needed by external hardware. For example, a flash containing the firmware of an external device that is

Re: [PATCH] mtd: Expose partition offset to the drivers

2015-02-02 Thread Ricardo Ribalda Delgado
Hello On Mon, Feb 2, 2015 at 8:17 PM, Richard Weinberger richard.weinber...@gmail.com wrote: On Mon, Feb 2, 2015 at 5:22 PM, Ricardo Ribalda Delgado Can you please also send a patch which shows the usage of this new function by a driver? It is currently out of tree, but here you can see the