[PATCH v3 2/2] drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer

2018-03-12 Thread Meghana Madhyastha
Remove chunk splitting in tinydrm_spi_transfer in tinydrm-helpers as the spi core will split a buffer into max_dma_len chunks for the spi controller driver to handle, automatic byte swapping in tinydrm_spi_transfer as it doesn't have users. Signed-off-by: Meghana Madhyastha --- driver

[PATCH v3 1/2] spi: Split spi message into chunks of <65535 in the spi subsystem

2018-03-12 Thread Meghana Madhyastha
her segment is required to be multiple of 4. The size has to be <65535 due to hardware limitations. Signed-off-by: Meghana Madhyastha --- drivers/spi/spi-bcm2835.c | 22 -- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/drivers/spi/spi-bcm2835.c b/drivers/s

[PATCH v3 0/2] Chunk splitting of spi transfers

2018-03-12 Thread Meghana Madhyastha
() -Change master->max_dma_len in patch 0/2 and explain why it is changed Meghana Madhyastha (2): spi: Split spi message into chunks of <65535 in the spi subsystem drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer drivers/gpu/drm/tinydrm/core/tinydrm-helpers.

[PATCH v2 2/2] drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer

2018-03-10 Thread Meghana Madhyastha
Remove chunk splitting in tinydrm_spi_transfer in tinydrm-helpers as the spi core will split a buffer into max_dma_len chunks for the spi controller driver to handle, automatic byte swapping in tinydrm_spi_transfer as it doesn't have users. Signed-off-by: Meghana Madhyastha --- driver

[PATCH v2 1/2] spi: Split spi message into chunks of <65535 in the spi subsystem

2018-03-10 Thread Meghana Madhyastha
Split spi messages into chunks of <65535 in the spi subsystem and remove the message length warning in bcm2835_spi_can_dma. This is so that the messages can be transferred via dma and that the tinydrm drivers need not split it. Signed-off-by: Meghana Madhyastha --- drivers/spi/spi-bcm283

[PATCH v2 0/2] Chunk splitting of spi transfers

2018-03-10 Thread Meghana Madhyastha
line deletions -Remove bcm2835_spi_transfer_one_message and add spi_split_transfers_maxsize in __spi_pump_messages. This solves the DMA time out error. Meghana Madhyastha (2): spi: Split spi message into chunks of <65535 in the spi subsystem drm/tinydrm: Remove chunk splitting

[no subject]

2018-03-05 Thread Meghana Madhyastha
linux-...@vger.kernel.org,Noralf Trønnes ,Sean Paul ,ker...@martin.sperl.org Cc: Bcc: Subject: Re: [PATCH v2 0/2] Chunk splitting of spi transfers Reply-To: In-Reply-To: On Sun, Mar 04, 2018 at 06:38:42PM +0100, Noralf Trønnes wrote: > > Den 02.03.2018 12.11, skrev Meghana Madhyastha:

Re: [PATCH v2 0/2] Chunk splitting of spi transfers

2018-03-02 Thread Meghana Madhyastha
On Sun, Feb 25, 2018 at 02:19:10PM +0100, Lukas Wunner wrote: > [cc += linux-rpi-ker...@lists.infradead.org] > > On Sat, Feb 24, 2018 at 06:15:59PM +, Meghana Madhyastha wrote: > > I've added bcm2835_spi_transfer_one_message in spi-bcm2835. This calls > > spi_split_

[PATCH v2 1/2] drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer

2018-02-25 Thread Meghana Madhyastha
nsfer length in bcm2835_spi_can_dma(). Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 48 -- drivers/gpu/drm/tinydrm/mipi-dbi.c | 10 ++ drivers/spi/spi-bcm2835.c | 15 +--- 3 files chang

[PATCH v2 2/2] spi/spi-bcm2835: Add bcm2835_spi_transfer_one_message in spi-bcm2835.c

2018-02-25 Thread Meghana Madhyastha
Add bcm2835_spi_transfer_one_message in spi-bcm2835.c. This function calls the helper spi_split_transfers_maxsize before calling spi_transfer_one_message to split the message into smaller chunks to be able to use dma. Signed-off-by: Meghana Madhyastha --- drivers/spi/spi-bcm2835.c | 14

[PATCH v2 0/2] Chunk splitting of spi transfers

2018-02-25 Thread Meghana Madhyastha
able to accomodate upto 65535 bytes for dma transfers, the splitting of chunks to 65535 bytes results in a dma transfer time out error. However, when the chunks are split to <64 bytes it seems to work fine. Changes in v2: -Patch 2 did not exist in v1. Meghana Madhyastha (2): drm/tinydrm: Remo

[PATCH] drm/tinydrm: Remove chunk splitting in tinydrm_spi_transfer

2018-02-19 Thread Meghana Madhyastha
nsfer length in bcm2835_spi_can_dma(). Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 48 -- drivers/gpu/drm/tinydrm/mipi-dbi.c | 10 ++ drivers/spi/spi-bcm2835.c | 15 +--- 3 files chang

[PATCH v19 10/10] drm/omapdrm: Use of_find_backlight helper

2018-01-24 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- Changes in v19: -Changed to devm version of of_find_backlight in omapdrm (patch 10) -removed assigning pdev->dev to variable dev

[PATCH v19 09/10] drm/panel: Use of_find_backlight helper

2018-01-24 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 24 - drivers

[PATCH v19 08/10] drm/omapdrm: Use backlight_enable/disable helpers

2018-01-24 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/omapdrm/displays/panel

[PATCH v19 07/10] drm/panel: Use backlight_enable/disable helpers

2018-01-24 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux

[PATCH v19 06/10] drm/tinydrm: Call devres version of of_find_backlight

2018-01-24 Thread Meghana Madhyastha
Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/gpu/drm/tinydrm/st7735r.c | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH v19 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-24 Thread Meghana Madhyastha
Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Acked-by: Daniel Thompson Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/video/backlight

[PATCH v19 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight

2018-01-24 Thread Meghana Madhyastha
hack that is no longer needed. Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/Kconfig| 2 -- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm/mi0283qt.c

[PATCH v19 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-24 Thread Meghana Madhyastha
Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that can be used by other drivers to avoid repetition of code and simplify things. Acked-by: Daniel Thompson Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha

[PATCH v19 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable

2018-01-24 Thread Meghana Madhyastha
Remove tinydrm_enable/disable_backlight and let the callers call the more generic backlight_enable/disable helpers Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 -- drivers

[PATCH v19 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-24 Thread Meghana Madhyastha
-by: Daniel Thompson Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul Signed-off-by: Meghana Madhyastha --- include/linux/backlight.h | 32 1 file changed, 32 insertions(+) diff --git a/include/linux/backlight.h b/include/linux/backlight.h index af7003548

[PATCH v19 00/10] Add backlight helper functions

2018-01-24 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v19: -Changed to devm version of of_find_backlight in omapdrm (patch 10) -removed assigning pdev->dev to variable dev in omapdrm (patch 10) Meghana Madhyastha (10): vi

Re: [PATCH v18 10/10] drm/omapdrm: Use of_find_backlight helper

2018-01-23 Thread Meghana Madhyastha
On Tue, Jan 23, 2018 at 03:37:38PM +0100, Noralf Trønnes wrote: > > Den 22.01.2018 15.56, skrev Meghana Madhyastha: > >Replace of_find_backlight_by_node and of the code around it > >with of_find_backlight helper to avoid repetition of code. > > > >Sig

[PATCH v18 10/10] drm/omapdrm: Use of_find_backlight helper

2018-01-22 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- Changes in v18: -Fixed warnings resulting from passing device_node* to of_find_backlight. Fixed it by passing struct device* to

[PATCH v18 09/10] drm/panel: Use of_find_backlight helper

2018-01-22 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- Changes in v18: -Fixed warnings resulting from passing device_node* to of_find_backlight. Fixed it by passing struct device* to

[PATCH v18 07/10] drm/panel: Use backlight_enable/disable helpers

2018-01-22 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 6 ++ drivers/gpu/drm/panel/panel

[PATCH v18 08/10] drm/omapdrm: Use backlight_enable/disable helpers

2018-01-22 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 11 ++- 1 file changed, 2 insertions

[PATCH v18 06/10] drm/tinydrm: Call devres version of of_find_backlight

2018-01-22 Thread Meghana Madhyastha
Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Signed-off-by: Meghana Madhyastha --- Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/gpu/drm/tinydrm/st7735r.c | 2 +- 2 files changed, 2 insertions(+), 2

[PATCH v18 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight

2018-01-22 Thread Meghana Madhyastha
hack that is no longer needed. Signed-off-by: Meghana Madhyastha --- Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul drivers/gpu/drm/tinydrm/Kconfig| 2 -- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm/mi0283qt.c

[PATCH v18 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-22 Thread Meghana Madhyastha
Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Signed-off-by: Meghana Madhyastha --- Acked-by: Daniel Thompson Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul drivers/video/backlight

[PATCH v18 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-22 Thread Meghana Madhyastha
Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that can be used by other drivers to avoid repetition of code and simplify things. Signed-off-by: Meghana Madhyastha --- Acked-by: Daniel Thompson Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul

[PATCH v18 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable

2018-01-22 Thread Meghana Madhyastha
Remove tinydrm_enable/disable_backlight and let the callers call the more generic backlight_enable/disable helpers Signed-off-by: Meghana Madhyastha --- Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 -- drivers

[PATCH v18 00/10] Add backlight helper functions

2018-01-22 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v18: -Fixed warnings resulting from passing device_node* to of_find_backlight. Fixed it by passing struct device* to of_find_backlight Meghana Madhyastha (10): video

[PATCH v18 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-22 Thread Meghana Madhyastha
-off-by: Meghana Madhyastha --- Acked-by: Daniel Thompson Reviewed-by: Noralf Trønnes Reviewed-by: Sean Paul include/linux/backlight.h | 32 1 file changed, 32 insertions(+) diff --git a/include/linux/backlight.h b/include/linux/backlight.h index af7003548

[PATCH v17 10/10] drm/omapdrm: Use of_find_backlight helper

2018-01-19 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove put_device() to avoid double put as we are using the devm version drivers/gpu/drm/omapdrm/displays/panel-dpi.c

[PATCH v17 09/10] drm/panel: Use of_find_backlight helper

2018-01-19 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove put_device() to avoid double put as we are using the devm version drivers/gpu/drm/panel/panel-innolux-p079zca.c

[PATCH v17 07/10] drm/panel: Use backlight_enable/disable helpers

2018-01-19 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove redundant NULL check drivers/gpu/drm/panel/panel-innolux-p079zca.c

[PATCH v17 08/10] drm/omapdrm: Use backlight_enable/disable helpers

2018-01-19 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- changes in v17: -remove redundant NULL check drivers/gpu/drm/omapdrm/displays/panel-dpi.c

[PATCH v17 06/10] drm/tinydrm: Call devres version of of_find_backlight

2018-01-19 Thread Meghana Madhyastha
Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Signed-off-by: Meghana Madhyastha --- changes in v17: -convert st7735r callers from tinydrm specific helpers to new generic backlight helpers drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/gpu/drm/tinydrm

[PATCH v17 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-19 Thread Meghana Madhyastha
Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Signed-off-by: Meghana Madhyastha --- changes in v17: -fix checkpath errors/warnings -rename devm_backlight_put to devm_backlight_release

[PATCH v17 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight

2018-01-19 Thread Meghana Madhyastha
hack that is no longer needed. Signed-off-by: Meghana Madhyastha --- changes in v17: -rebase with drm-misc-next -convert st7735r callers from tinydrm specific helpers to new generic backlight helpers -remove select BACKLIGHT_LCD_SUPPORT and select BACKLIGHT_CLASS_DEVICE from tinydrm/Kconfig

[PATCH v17 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-19 Thread Meghana Madhyastha
Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that can be used by other drivers to avoid repetition of code and simplify things. Signed-off-by: Meghana Madhyastha --- changes in v17: -rebase with drm-misc-next -convert st7735r callers from

[PATCH v17 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable

2018-01-19 Thread Meghana Madhyastha
Remove tinydrm_enable/disable_backlight and let the callers call the more generic backlight_enable/disable helpers Signed-off-by: Meghana Madhyastha --- changes in v17: -rebase with drm-misc-next drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 -- drivers/gpu/drm

[PATCH v17 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-19 Thread Meghana Madhyastha
-off-by: Meghana Madhyastha --- changes in v17: -set fb_blank along with clearing the BL_CORE_FBBLANK bit include/linux/backlight.h | 32 1 file changed, 32 insertions(+) diff --git a/include/linux/backlight.h b/include/linux/backlight.h index af7003548..ace825e2c

[PATCH v17 00/10] Add backlight helper functions

2018-01-19 Thread Meghana Madhyastha
devm_backlight_put to devm_backlight_release -remove redundant NULL check -remove put_device() to avoid double put as we are using the devm version Meghana Madhyastha (10): video: backlight: Add helpers to enable and disable backlight drm/tinydrm: Convert tinydrm_enable/disable_backlight to

Re: [PATCH v16 09/10] drm/panel: Use of_find_backlight helper

2018-01-18 Thread Meghana Madhyastha
On Tue, Jan 16, 2018 at 06:08:53PM +0100, Noralf Trønnes wrote: > > Den 16.01.2018 11.36, skrev Meghana Madhyastha: > >Replace of_find_backlight_by_node and of the code around it > >with of_find_backlight helper to avoid repetition of code. > > > >Sig

Re: [PATCH v16 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-18 Thread Meghana Madhyastha
On Wed, Jan 17, 2018 at 05:09:57PM +, Daniel Thompson wrote: > On 16/01/18 10:34, Meghana Madhyastha wrote: > >Add devm_of_find_backlight and the corresponding release > >function because some drivers use devres versions of functions > >for acquiring device resources.

Re: [PATCH v16 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-18 Thread Meghana Madhyastha
On Wed, Jan 17, 2018 at 11:03:24PM +0100, Noralf Trønnes wrote: > > Den 17.01.2018 18.00, skrev Daniel Thompson: > > > > > >On 16/01/18 10:31, Meghana Madhyastha wrote: > >>Add helper functions backlight_enable and backlight_disable to > >>enable/disable

[PATCH v16 10/10] drm/omapdrm: Use of_find_backlight helper

2018-01-16 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 10 +++--- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/drivers/gpu

[PATCH v16 09/10] drm/panel: Use of_find_backlight helper

2018-01-16 Thread Meghana Madhyastha
Replace of_find_backlight_by_node and of the code around it with of_find_backlight helper to avoid repetition of code. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 10 +++--- drivers/gpu/drm/panel/panel-sharp-lq101r1sx01.c | 10 +++--- drivers

[PATCH v16 08/10] drm/omapdrm: Use backlight_enable/disable helpers

2018-01-16 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/omapdrm/displays/panel-dpi.c | 12 1 file changed, 4

[PATCH v16 07/10] drm/panel: Use backlight_enable/disable helpers

2018-01-16 Thread Meghana Madhyastha
Use backlight_enable/disable helpers instead of changing the property and calling backlight_update_status for cleaner and simpler code and also to avoid repetitions. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/panel/panel-innolux-p079zca.c | 6 ++ drivers/gpu/drm/panel/panel

[PATCH v16 06/10] drm/tinydrm: Call devres version of of_find_backlight

2018-01-16 Thread Meghana Madhyastha
Call devm_of_find_backlight (the devres version) instead of of_find_backlight. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tinydrm/mi0283qt.c b/drivers/gpu/drm/tinydrm/mi0283qt.c

[PATCH v16 05/10] video: backlight: Add devres versions of of_find_backlight

2018-01-16 Thread Meghana Madhyastha
Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Signed-off-by: Meghana Madhyastha --- drivers/video/backlight/backlight.c | 29 + include/linux/backlight.h

[PATCH v16 04/10] drm/tinydrm: Replace tinydrm_of_find_backlight with of_find_backlight

2018-01-16 Thread Meghana Madhyastha
Remove tinydrm_of_find_backlight from tinydrm-helpers.c. We now have a generic of_find_backlight defined in backlight.c. Let the callers of tinydrm_of_find_backlight call of_find_backlight. Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40

[PATCH v16 03/10] video: backlight: Add of_find_backlight helper in backlight.c

2018-01-16 Thread Meghana Madhyastha
Add of_find_backlight, a helper function which is a generic version of tinydrm_of_find_backlight that can be used by other drivers to avoid repetition of code and simplify things. Signed-off-by: Meghana Madhyastha --- Changes in v16: -Add comment about brightness in of_find_backlight drivers

[PATCH v16 02/10] drm/tinydrm: Convert tinydrm_enable/disable_backlight to backlight_enable/disable

2018-01-16 Thread Meghana Madhyastha
Remove tinydrm_enable/disable_backlight and let the callers call the more generic backlight_enable/disable helpers Signed-off-by: Meghana Madhyastha --- drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55 -- drivers/gpu/drm/tinydrm/mipi-dbi.c | 4

[PATCH v16 01/10] video: backlight: Add helpers to enable and disable backlight

2018-01-16 Thread Meghana Madhyastha
-off-by: Meghana Madhyastha --- include/linux/backlight.h | 30 ++ 1 file changed, 30 insertions(+) diff --git a/include/linux/backlight.h b/include/linux/backlight.h index af7003548..7b6a9a2a3 100644 --- a/include/linux/backlight.h +++ b/include/linux/backlight.h

[PATCH v16 00/10] Add backlight helper functions

2018-01-16 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v16: -Add a comment about setting brightness = max_brightness in of_find_backlight -Add dri-devel and linux-kernel mailing lists Meghana Madhyastha (10): video: backlight

Re: [PATCH v14 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-12-25 Thread Meghana Madhyastha
On Thu, Dec 21, 2017 at 11:52:43AM +0100, Noralf Trønnes wrote: > > Den 11.12.2017 18.56, skrev Noralf Trønnes: > > > >Den 11.12.2017 18.45, skrev Noralf Trønnes: > >> > >>Den 11.12.2017 15.58, skrev Meghana Madhyastha: > >>>On Mon, Dec 11

Re: [PATCH v14 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-12-11 Thread Meghana Madhyastha
On Mon, Dec 11, 2017 at 03:12:06PM +0100, Noralf Trønnes wrote: > > Den 11.12.2017 14.17, skrev Meghana Madhyastha: > >On Sat, Dec 09, 2017 at 03:09:28PM +0100, Noralf Trønnes wrote: > >>Den 21.10.2017 13.55, skrev Meghana Madhyastha: > >>>Changes in v14: > &g

Re: [PATCH v14 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-12-11 Thread Meghana Madhyastha
On Sat, Dec 09, 2017 at 03:09:28PM +0100, Noralf Trønnes wrote: > > Den 21.10.2017 13.55, skrev Meghana Madhyastha: > >Changes in v14: > >- s/backlight_get/of_find_backlight/ in patch 2/3 > >- Change commit message in patch 3/3 from requiring to acquiring > > > &

Re: [Outreachy kernel] [PATCH v14 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-12-06 Thread Meghana Madhyastha
On Tue, Oct 24, 2017 at 06:45:34PM +0200, Noralf Trønnes wrote: > > Den 24.10.2017 17.42, skrev Sean Paul: > >On Sat, Oct 21, 2017 at 05:27:33PM +0530, Meghana Madhyastha wrote: > >>Rename tinydrm_of_find_backlight to of_find_backlight and move > >>it to linux/back

[PATCH v14 3/3] drm/tinydrm: Add devres versions of of_find_backlight

2017-10-21 Thread Meghana Madhyastha
Add devm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for acquiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v14: - s/devm_backlight_get/devm_of_find_backlight/ - change commit message from requiring to

[PATCH v14 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-21 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to of_find_backlight and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v14: -s/backlight_get/of_find_backlight/ drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40

[PATCH v14 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-21 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v14: - None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55

[PATCH v14 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-21 Thread Meghana Madhyastha
Changes in v14: - s/backlight_get/of_find_backlight/ in patch 2/3 - Change commit message in patch 3/3 from requiring to acquiring Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c drm

Re: [Outreachy kernel] [PATCH v13 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-18 Thread Meghana Madhyastha
On Mon, Oct 16, 2017 at 02:26:00PM -0400, Sean Paul wrote: > On Fri, Oct 13, 2017 at 6:42 PM, Noralf Trønnes wrote: > > > > Den 13.10.2017 22.25, skrev Sean Paul: > >> > >> On Fri, Oct 13, 2017 at 04:11:43PM +0530, Meghana Madhyastha wrote: > >>&

[PATCH v13 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-13 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v13: -Add devm_backlight_put to backlight.c drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers

[PATCH v13 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-13 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v13: -Add backlight_put to backlight.h in this patch drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40

[PATCH v13 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-13 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v13: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55

[PATCH v13 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-13 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v13: -Rebase against drm-misc -Put devm_backlight_put back Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h drm/tinydrm

[PATCH v12 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. drivers/gpu/drm/tinydrm/mi0283qt.c

[PATCH v12 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -Move backlight_put() to the patch 2/3 from patch 3/3. -Remove #if IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)..#endif

[PATCH v12 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v12: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55

[PATCH v12 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
x27;t enabled Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c drm/tinydrm: Add devres versions of backlight_get drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c

[PATCH v11 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v11: -None drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/video/backlight/backlight.c | 31

[PATCH v11 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v11: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm

[PATCH v11 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v11: -Move over tinydrm_disable_backlight to backlight_disable in the

[PATCH v11 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v11: -Move over tinydrm_disable_backlight to backlight_disable in the caller in mipi-dbi.c Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers

[PATCH v10 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-12 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v10: -None drivers/gpu/drm/tinydrm/mi0283qt.c | 2 +- drivers/video/backlight/backlight.c | 31

[PATCH v10 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-12 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v10: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm

[PATCH v10 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-12 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v10: -Change from enable_backlight to backlight_enable drivers/gpu/drm

[PATCH v10 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-12 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v10: -Change enable_backlight to backlight_enable Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h drm/tinydrm: Move

[PATCH v9 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-11 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v9: -Change function name from devm_backlight_get_release to devm_backlight_put because it is more

[PATCH v9 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-11 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v9: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40 -- drivers/gpu/drm/tinydrm

[PATCH v9 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-11 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v9: -None drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 55

[PATCH v9 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-11 Thread Meghana Madhyastha
Move drm helper functions from tinydrm-helpers to linux/backlight for ease of use by callers in other drivers. Changes in v9: -Change function name from devm_backlight_get_release to devm_backlight_put because it is more apt name. Meghana Madhyastha (3): drm/tinydrm: Move helper functions from

Re: [PATCH v8 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-11 Thread Meghana Madhyastha
On Wed, Oct 11, 2017 at 04:56:25PM +0300, Jani Nikula wrote: > On Wed, 11 Oct 2017, Meghana Madhyastha wrote: > > Add devm_backlight_get and the corresponding release > > function because some drivers use devres versions of functions > > for requiring device resources.

[PATCH v8 3/3] drm/tinydrm: Add devres versions of backlight_get

2017-10-11 Thread Meghana Madhyastha
Add devm_backlight_get and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v8: -Put the devres version to backlight.c along with backlight_get. drivers/gpu/drm/tinydrm

[PATCH v8 2/3] drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c

2017-10-11 Thread Meghana Madhyastha
Rename tinydrm_of_find_backlight to backlight_get and move it to linux/backlight.c so that it can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v8: -Changed the name of the tinydrm_of_find_backlight to backlight_get and moved it to backlight.c drivers/gpu/drm

[PATCH v8 1/3] drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h

2017-10-11 Thread Meghana Madhyastha
Move the helper functions enable_backlight and disable_backlight from tinydrm-helpers.c to backlight.h as static inline functions so that they can be used by other drivers. Signed-off-by: Meghana Madhyastha --- Changes in v8: -This patch was not present in the earlier versions. drivers/gpu/drm

[PATCH v8 0/3] Move backlight helper functions from tinydrm-helpers to linux/backlight

2017-10-11 Thread Meghana Madhyastha
. Meghana Madhyastha (3): drm/tinydrm: Move helper functions from tinydrm-helpers to backlight.h drm/tinydrm: Move tinydrm_of_find_backlight to backlight.c drm/tinydrm: Add devres versions of backlight_get drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 95 -- drivers

Re: [PATCH v3 1/2] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c

2017-10-04 Thread Meghana Madhyastha
On Tue, Oct 03, 2017 at 07:38:29PM +0200, Noralf Trønnes wrote: > > Den 03.10.2017 18.02, skrev Noralf Trønnes: > > > >Den 03.10.2017 16.58, skrev Noralf Trønnes: > >> > >>Den 02.10.2017 10.13, skrev Jani Nikula: > >>>On Mon, 02 Oct 2017, Daniel Vetter wrote: > Also adding Jani, who looked at

Re: [PATCH v6 1/2] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c

2017-10-01 Thread Meghana Madhyastha
On Sun, Oct 01, 2017 at 04:47:26PM +0200, Noralf Trønnes wrote: > > Den 01.10.2017 15.34, skrev Meghana Madhyastha: > >On Sun, Oct 01, 2017 at 03:26:36PM +0200, Noralf Trønnes wrote: > >>Den 01.10.2017 06.14, skrev Meghana Madhyastha: > >>>On Sat, Sep 30, 2017 at

[PATCH v7 3/3] drm/tinydrm: Add devres versions of drm_of_find_backlight

2017-10-01 Thread Meghana Madhyastha
Add devm_drm_of_find_backlight and the corresponding release function because some drivers use devres versions of functions for requiring device resources. Signed-off-by: Meghana Madhyastha --- Changes in v7: -None drivers/gpu/drm/drm_of.c | 40

[PATCH v7 2/3] drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c

2017-10-01 Thread Meghana Madhyastha
along with the other _of.c functions. Signed-off-by: Meghana Madhyastha --- Changes in v7: -Move function declarations back to drm_of.h drivers/gpu/drm/drm_of.c | 45 ++ drivers/gpu/drm/tinydrm/core/tinydrm-helpers.c | 40

[PATCH v7 1/3] backlight: Add IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE)

2017-10-01 Thread Meghana Madhyastha
Add IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE) as part of the if directive for the function declaration of of_find_backlight_by_node in order to avoid module dependency errors. Signed-off-by: Meghana Madhyastha --- Changes in v7: -This patch did not exist in v6. include/linux/backlight.h | 2

[PATCH v7 0/3] drm/tinydrm: drm_of_find_backlight helper

2017-10-01 Thread Meghana Madhyastha
errors. Meghana Madhyastha (3): backlight: Add IS_ENABLED(CONFIG_BACKLIGHT_CLASS_DEVICE) drm/tinydrm: Move tinydrm_of_find_backlight into drm_of.c drm/tinydrm: Add devres versions of drm_of_find_backlight drivers/gpu/drm/drm_of.c | 85

  1   2   >