Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp2784669ybg; Thu, 24 Oct 2019 15:19:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqyttxXVS/eAcxuC7MhvzRF1GnmhlCHu0hILMQMP69Xr/aPIDsbm1vBuppBrT0npD5920FYv X-Received: by 2002:aa7:c502:: with SMTP id o2mr474008edq.223.1571955578058; Thu, 24 Oct 2019 15:19:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571955578; cv=none; d=google.com; s=arc-20160816; b=um2QLB21ZO2/l78vJC6JDLsB+b3uOR3j6fX/Om1PrCwlX3ZloirOU7N3jHNcs6NsyT FYN+L/F0kkiYLaNNWb6vPQ2B9r8YRkp+iMrISvfZPmbRAdFtUcF/UIxAerfelJtx/bk2 MaPuqktIs5B6y5LfH+8QB9i6m+tZ/F4R5+b26WbWzwYe3izHqEVLeyxiVSFAP0O/8L5O 8FP6hNbUA/f1S9DXCMcPLcBFwV9puvB3CBIXOLqQF9DaCgWqoFobIS/zS9IoplsbzsGE BOak8PvARy2UHKUsrl9ahFdcTbGfGudiYpcEYiX8grRdxsm1GXc6BeCf8Uoego/gJ1Dr c6Mg== 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=UclEmd8YX++NCf8kPKkA+46Pa3LHuXqjjWzo9Z3XdYM=; b=Hf441E4L86dKUfYCw57qtAKxXKRW7VdZH8FohCANqQdpgkIkSOZ4jnvZtQD7z1RBQI x1Wer7Pk7HfALweqgZWiM08d9tev3sEDfjO7Fh6PS8PoRb56BAPj4pxqeQM/IBRZKp+0 lU/8Yqv3zyjbHluP2hYAGD7E0C1pPaY6JUd8oXMq16KmRSYuuYmiagZggCGkPHPSEzgp Y2xnjMjkPWgzbWqUa3TOLuzpNBP6sM3XKCfTJv+z6i+0lyWiaQh+MzipT42AQlQBmBqb 5T8UtJuKIsLPjG27fTWonzJKoYazyFx5prmwlPwRiVOKtPwGrSBvbRbDrGPOO1cYX18h coUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SO7SqUbR; 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 h17si62937ejt.173.2019.10.24.15.19.13; Thu, 24 Oct 2019 15:19:38 -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=SO7SqUbR; 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 S2437778AbfJXGrc (ORCPT + 99 others); Thu, 24 Oct 2019 02:47:32 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:46028 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2437772AbfJXGrb (ORCPT ); Thu, 24 Oct 2019 02:47:31 -0400 Received: by mail-wr1-f66.google.com with SMTP id q13so19693980wrs.12 for ; Wed, 23 Oct 2019 23:47:29 -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=UclEmd8YX++NCf8kPKkA+46Pa3LHuXqjjWzo9Z3XdYM=; b=SO7SqUbR2Vy59Qq6nC05Ir/m4UFWccS9Wg42Qz+tm9gLjOJBtQVpbadit9ajsImgB8 c8fISobck8KfXDkvhVEAnmQQnj/ONNNXGGRdnlPWFSRZNoHaRE7yF/P0cfwLmTpjqdj/ o5OntZbUc+OPgDWBm113VxzXeoq8Q1/qkHgFnq10DL28gdpjzZWxSDUC/Yj86kvQO/ty kIU+AlVHw0avbfCfFkY02yWNr9dkyKePz29U7S/ucuVeQxt4fC7HtLggOu4eqCEw+pZo jrazNHTw0zilOZKo4xWqKHCeWWdeLZLc51W7hWl1BXY5W8cXvNGqmOH+TqBFnCufB1qz ViCA== 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=UclEmd8YX++NCf8kPKkA+46Pa3LHuXqjjWzo9Z3XdYM=; b=EMEnabvMvyPmRZ7YqsIj1E2uZNWmKIpHvSIjha+cI8Ul3rhpzgw+EdaQZfAWz/G/2X pJD4t7iU4ZPsAS6Ofb+bckC5w1X4zxpeSONxXxWGB7S/aKNxF/0reJKqn/3vnmDGzpnc 72xZ0bRPbQ10DuiTFTTvKmhPFag5BxZVgW+YDZE+JD65vhXOTSE+o7gkesQ/a663y6Sl HXa2eUIiVvpGItTSa1aTbvW4//24y0nVMd4s87wxzQINT0xnd6sSeD120F0lEph//bA9 HjOs8Qb5PkefL9ZEBVzmIPSHMHvRHkkoopdYaa7CikBgi9AL+L33hxfwq/wvoUmCZwdz JFZQ== X-Gm-Message-State: APjAAAUL/01bNN6a8T71rvCzcqJJrWiDWT61ZYjplmVs9/2Yx4OqrKR2 N67eNAUfiSoOgzwz+UNbrVp8+w== X-Received: by 2002:adf:e34b:: with SMTP id n11mr2183760wrj.250.1571899648399; Wed, 23 Oct 2019 23:47:28 -0700 (PDT) Received: from dell ([95.149.164.99]) by smtp.gmail.com with ESMTPSA id q11sm1694268wmq.21.2019.10.23.23.47.27 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 23 Oct 2019 23:47:27 -0700 (PDT) Date: Thu, 24 Oct 2019 07:47:26 +0100 From: Lee Jones To: Daniel Thompson Cc: Bartosz Golaszewski , Yoshinori Sato , Rich Felker , 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: <20191024064726.GB15843@dell> References: <20191022083630.28175-1-brgl@bgdev.pl> <20191023155941.q563d3cfizre4zvt@holly.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191023155941.q563d3cfizre4zvt@holly.lan> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 23 Oct 2019, Daniel Thompson wrote: > 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(-) > > > > > > > > > > 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? November 1st (-rc6) will be fine. I'd rather apply it late-tested than early-non-tested. Hopefully Jacopo can prioritise testing this on Thursday or Friday, since Monday will be -rc7 which is really cutting it fine. > 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. In special cases such as these I can remain flexible. -- Lee Jones [李琼斯] Linaro Services Technical Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog