Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1786130ybg; Wed, 23 Oct 2019 23:25:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqwspopmstlX8NgnxU8P0SuATW27E5LVc798ZVt+OHg/mTHgT7I9sLqbR3KdbtGADsEQNqmT X-Received: by 2002:a05:6402:124c:: with SMTP id l12mr1544620edw.82.1571898344436; Wed, 23 Oct 2019 23:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571898344; cv=none; d=google.com; s=arc-20160816; b=DToAZfMk4iet/EoDCkwRg+nEIx973MTbcJ8KbOiIa0oOuKpJ/fyQ19ZZKKY+YBIItk DDnGpJHZ9c1bFBafj2oabiqkb5noTnc+EVQDWdAikUjZb4uk13WjDYS+1U3F2TLf5hwE GQPTpjxsWB+eiNQ/0x7tvO2GHRvl4gdflVjkMLDy0j0eiSpy4t+zqSiuRGT3UAQiPA2y ikjHZJhJ6qLuwotM/O9PYR0HmfrcL7r1YU+bMJeFv09J5jc2NsltpLHmUcYJISpWybyw Ji/jqU/AIoxGiQRp9tuOtfKVEzGjRt1x7Jmb0PwCixsx2H621JUEyAj5qkoh1e89WB6M h/mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=DpQNk5GKVU5HAVsS2lfnhXVgbc1C81TBtl7IJMFJUG8=; b=tPuHtaOcoz1aAKDr6GE/DFogCOfMT45DiDFStzH7GFeCXns29nkjj5Kx0XyCgDNEfS Zt7jumRzM2fzaGu3jgdTcGeyk/ScmxooDkHnZ2Q6Z4hjwCPRvy4tAANUxLdfCh6MnkcF aVb8HPQorGjZUtJ8RaW9rJ49YS1+sW1FopD3R6W1CxlXu5MnnyOHbSNmuRCeBqs24mbh 21BjNHzXkkNrtfyoSdqUYDoeBePwh5CIc40lwKvoprIc7kUvcVR5I3LhYwqyt4zYQScI rND722j663VvhoKAdBBM2XsZccc4CLGVAjeEXAfgl6mqUISIaEb9rnb4QfFEeHFf8idu Wq8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xgJXyFrI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y27si10146692ejr.328.2019.10.23.23.25.19; Wed, 23 Oct 2019 23:25:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xgJXyFrI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2406801AbfJWP7s (ORCPT + 99 others); Wed, 23 Oct 2019 11:59:48 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:36892 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390259AbfJWP7r (ORCPT ); Wed, 23 Oct 2019 11:59:47 -0400 Received: by mail-wm1-f68.google.com with SMTP id f22so20196744wmc.2 for ; Wed, 23 Oct 2019 08:59:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=DpQNk5GKVU5HAVsS2lfnhXVgbc1C81TBtl7IJMFJUG8=; b=xgJXyFrIzYnIAL+3S/Laa0OGiram8c8HjJSo+AWxlLoq3e7mq7LkHGOB915fkNp8wD lG+QPGOP7/luA8dnleq8N8ayCsR5GEydJ+rS8AbUobNeUpV/V0jgZP27qayuOLKKVv9M DoBDrmBhvfkSVLHfEcXBdR/JRaOZziHAcOwuy+I9HkjEe6+w8KvFfy4HOhYRcugrS0I1 cXa4xJLf+OoeE+QLEGOYloarE798piBCSZHBJ8Rs80mpA8Bqj6IWhLzYbqVFHX1V6rwG T/2VbdGlZ821+osz4ww0BDRxzk5d6+wdSasO20trH//+HIpg886tg+Jqw+LufgO10cir KUbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=DpQNk5GKVU5HAVsS2lfnhXVgbc1C81TBtl7IJMFJUG8=; b=lEPX9ArlxLkI1vREz5mYxMBn/YeLuaa7Un0scOnCZ1S88O/9+dE/VSptODc4lZP2Ib 42QGCF8ZCHXfx5prqvOMcxI1Mb+rkOFFu1JuZhzlzgHl7y1Di+c41/h0GKoxDFnDeGka o5iZCq2HgzcWtaJbOzAh+IK6bbU4e/Hq8AIfnkT3oF1ERcsqRoh0Rby91sGvZkmcj0bR ig58ATL62FzbWubCqmK67/M2Nb1AswIrkgibwT/w8FJcqpb7Hj8zCvLtTmi1Lp63AiPM YSLXdkyYX1lsS1W9pQKn7HpzFSHM596dbC6sxNl/qMUEGUNU0v9/6q1sEghfUb1KJ+v9 dfgQ== X-Gm-Message-State: APjAAAX11QDlrSq06pdW1cc/1htDeLqlCLK/43p96PJfTHnEKf08x8kB L73s+W7/QD3Ixr+fIK54YuyY/if4g7GkqA== X-Received: by 2002:a1c:f714:: with SMTP id v20mr579631wmh.55.1571846384525; Wed, 23 Oct 2019 08:59:44 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id a186sm21168572wmd.3.2019.10.23.08.59.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 08:59:43 -0700 (PDT) Date: Wed, 23 Oct 2019 16:59:41 +0100 From: Daniel Thompson To: Bartosz Golaszewski Cc: Yoshinori Sato , Rich Felker , Lee Jones , Jingoo Han , Bartlomiej Zolnierkiewicz , Linus Walleij , Andy Shevchenko , Jacopo Mondi , Linux-sh list , Linux Kernel Mailing List , "open list:DRM PANEL DRIVERS" , Linux Fbdev development list , Bartosz Golaszewski Subject: Re: [PATCH v7 0/9] backlight: gpio: simplify the driver Message-ID: <20191023155941.q563d3cfizre4zvt@holly.lan> References: <20191022083630.28175-1-brgl@bgdev.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 22, 2019 at 11:29:54AM +0200, Bartosz Golaszewski wrote: > wt., 22 paź 2019 o 10:36 Bartosz Golaszewski napisał(a): > > > > From: Bartosz Golaszewski > > > > While working on my other series related to gpio-backlight[1] I noticed > > that we could simplify the driver if we made the only user of platform > > data use GPIO lookups and device properties. This series tries to do > > that. > > > > First two patches contain minor fixes. Third patch makes the driver > > explicitly drive the GPIO line. Fourth patch adds all necessary data > > structures to ecovec24. Patch 5/9 unifies much of the code for both > > pdata and non-pdata cases. Patches 6-7/9 remove unused platform data > > fields. Last two patches contain additional improvements for the GPIO > > backlight driver while we're already modifying it. > > > > I don't have access to this HW but hopefully this works. Only compile > > tested. > > > > [1] https://lkml.org/lkml/2019/6/25/900 > > > > v1 -> v2: > > - rebased on top of v5.3-rc1 and adjusted to the recent changes from Andy > > - added additional two patches with minor improvements > > > > v2 -> v3: > > - in patch 7/7: used initializers to set values for pdata and dev local vars > > > > v3 -> v4: > > - rebased on top of v5.4-rc1 > > - removed changes that are no longer relevant after commit ec665b756e6f > > ("backlight: gpio-backlight: Correct initial power state handling") > > - added patch 7/7 > > > > v4 -> v5: > > - in patch 7/7: added a comment replacing the name of the function being > > pulled into probe() > > > > v5 -> v6: > > - added a patch making the driver explicitly set the direction of the GPIO > > to output > > - added a patch removing a redundant newline > > > > v6 -> v7: > > - renamed the function calculating the new GPIO value for status update > > - collected more tags > > > > Bartosz Golaszewski (9): > > backlight: gpio: remove unneeded include > > backlight: gpio: remove stray newline > > backlight: gpio: explicitly set the direction of the GPIO > > sh: ecovec24: add additional properties to the backlight device > > backlight: gpio: simplify the platform data handling > > sh: ecovec24: don't set unused fields in platform data > > backlight: gpio: remove unused fields from platform data > > backlight: gpio: use a helper variable for &pdev->dev > > backlight: gpio: pull gpio_backlight_initial_power_state() into probe > > > > arch/sh/boards/mach-ecovec24/setup.c | 33 +++-- > > drivers/video/backlight/gpio_backlight.c | 128 +++++++------------ > > include/linux/platform_data/gpio_backlight.h | 3 - > > 3 files changed, 69 insertions(+), 95 deletions(-) > > > > -- > > 2.23.0 > > > > Lee, Daniel, Jingoo, > > Jacopo is travelling until November 1st and won't be able to test this > again before this date. Do you think you can pick it up and in case > anything's broken on SH, we can fix it after v5.5-rc1, so that it > doesn't miss another merge window? Outside of holidays and other emergencies Lee usually collects up the patches for backlight. I'm not sure when he plans to close things for v5.5 . Daniel.