Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5D4DBC433F5 for ; Tue, 22 Feb 2022 14:48:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232031AbiBVOtK (ORCPT ); Tue, 22 Feb 2022 09:49:10 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39536 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232641AbiBVOtJ (ORCPT ); Tue, 22 Feb 2022 09:49:09 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91D81BD2C2 for ; Tue, 22 Feb 2022 06:48:41 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id az26-20020a05600c601a00b0037c078db59cso2028833wmb.4 for ; Tue, 22 Feb 2022 06:48:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=tnceEeGnrcuJoNr0+Cgdwzi8bAtUJ8PrVOXTOsxGiv8=; b=BLNhsgYEBr+ldXVFFu/RqMuSdMknUikmOnh+8PhlpuW1sex7DrIgwqFbS79lt+/9Fj eXInu65RHdP9/RaAHHicAaBN23Jee6z4YfIKtTIt5jhBGbqSiH7zL35GymIk22sC0g08 xHnyW1O0Im9gXYw7vKouOD2AAfu9LV+0K8noU24UdxG4szvFdJUX2OduZ/J4gioREeSO rGi4r5uVVa5HGCmYasymCdXYxR8jfWbRpPEcq1o2WuKlizofX49G9sUG9u8gG2zzYnje o4Ls8K10TAvHE/L/3CEwzT4fE5T6Z0tH/BQ0dAQMzo9dYX/eGOUmj6BUbtKHQO3073vD /DQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:organization:in-reply-to :content-transfer-encoding; bh=tnceEeGnrcuJoNr0+Cgdwzi8bAtUJ8PrVOXTOsxGiv8=; b=pzvPAtLPRzBKnN139ecfWYpufhW3WIHk9C3XbW59TNytLv2cHhy6VoLItG/Cg4PeiF QgiNbNLbxexiEQZBiRHv04S/Z3yU58VfbCfnBqz0OcDJx8B8Iehw5Q+eyL6K5Y8gy4mG POm0qyEmuVOCqih/Pb5FJEi21aar0cGByM4UfSYtS7quHd8B9ULu//wwMlppcjPJbzeQ 9NC2yAKdpCzALNlxOU8ws00jlOsGD2db4xL6/H8ILz237Rdy+KkSnUtRTHO1a04cWY0L Z5RDTSy368UCXd9BNACw1AkVGoNK4phCW5O5y4KDbryWsMPAFnNZuxMtwGaBOYfZOdfy 6Hiw== X-Gm-Message-State: AOAM530/yZYIG3Tz0okyQ2bdIZ/iiwWMvux92aQ7YhmkRnBVU8WL/uJY 23Clzyxh4YbZHCkOWTAaSUv/GQ== X-Google-Smtp-Source: ABdhPJzHLE6QCDQn+Ao6ARDEbUXD14NHh4L6o7VCIBQ8a6PNAyJ3LeVtt+yRC0QvCiQEGnMDHYR1+Q== X-Received: by 2002:a05:600c:3217:b0:380:e2a3:18cf with SMTP id r23-20020a05600c321700b00380e2a318cfmr1613415wmp.129.1645541319974; Tue, 22 Feb 2022 06:48:39 -0800 (PST) Received: from ?IPV6:2001:861:44c0:66c0:8df:a253:2751:6a9c? ([2001:861:44c0:66c0:8df:a253:2751:6a9c]) by smtp.gmail.com with ESMTPSA id k4-20020a05600c0b4400b0034a0cb4332csm2514284wmr.10.2022.02.22.06.48.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 22 Feb 2022 06:48:39 -0800 (PST) Message-ID: <1530c337-22b5-b20d-27ae-50696344e80f@baylibre.com> Date: Tue, 22 Feb 2022 15:48:38 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 0/6] auxdisplay: Add support for the Titanmec TM1628 7 segment display controller Content-Language: en-US To: =?UTF-8?Q?Andreas_F=c3=a4rber?= , Heiner Kallweit , Miguel Ojeda , Pavel Machek Cc: Mark Brown , Rob Herring , Krzysztof Kozlowski , Geert Uytterhoeven , Miguel Ojeda , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , "linux-spi@vger.kernel.org" , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , linux-amlogic@lists.infradead.org References: <4172e59f-b9d5-d87d-9dbd-a6f683a2173c@gmail.com> <862fc0e3-6c76-8dea-6725-a6c45ade1ecd@suse.de> <09bf3d8a-2902-723b-80d2-0c4d1c24f53d@gmail.com> From: Neil Armstrong Organization: Baylibre In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On 22/02/2022 13:12, Andreas Färber wrote: > On 19.02.22 18:16, Heiner Kallweit wrote: >> On 19.02.2022 17:07, Andreas Färber wrote: >>> Hi, >>> >>> On 19.02.22 14:37, Heiner Kallweit wrote: >>>> On 19.02.2022 14:27, Miguel Ojeda wrote: >>>>> On Sat, Feb 19, 2022 at 2:13 PM Heiner Kallweit wrote: >>>>>> >>>>>> This series adds support for the Titanmec TM1628 7 segment display >>>>>> controller. It's based on previous RFC work from Andreas Färber. >>>>>> The RFC version placed the driver in the LED subsystem, but this was >>>>>> NAK'ed by the LED maintainer. Therefore I moved the driver to >>>>>> /drivers/auxdisplay what seems most reasonable to me. >>>>> >>>>> Could you please link to the discussion and/or summarize the rationale >>>>> behind the NAK? >>>>> >>>> >>>> +Pavel >>>> >>>> I didn't find an explicit reason, but I suppose Pavel sees this driver as >>>> one that makes use of the LED subsystem, but doesn't belong to it. >>>> In the following mail he's expressing his opinion that the driver should >>>> be best placed under auxdisplay. >>>> >>>> https://lore.kernel.org/linux-arm-kernel/20200226130300.GB2800@duo.ucw.cz/ >>> >>> And I disagreed. It does not fit with the other drivers in auxdisplay >>> that were operating on a much higher level. >>> >> >> We need to find a place. And if Pavel has good reasons that it doesn't >> fit into the LED subsystem, and Miguel should be fine with having >> it in auxdisplay, then I'd see no reason to not go this way. >> >>> I'd also like to point out that I did implement the map_to_7segment API, >> >> Looking at the history of include/uapi/linux/map_to_7segment.h I see no >> commit from you. Seems I'm missing something here. > > You're replying inline too early: > >>> as was suggested, as you will find in my tree > > As I said, I implemented it in my driver: > > https://github.com/afaerber/linux/commit/bbecf951348c7de8ba922c6c002a09369b717d82 > > Thus me saying you are unnecessarily duplicating work that I already > did, without ping'ing the thread or me and claiming the credit for an > implementation change which I already did myself. > >>> - which you may have >>> missed, referencing only the RFC patchset and putting your authorship on >>> it exclusively? A move from one directory to another should not warrant >>> my author and SoB getting removed from the actual driver. >>> >> The driver includes major changes and I mentioned your work in the commit >> message. Also your still listed as MODULE_AUTHOR. My intention is to >> get a driver upstream, not to earn credits for something. >> So sure, your SoB can be (re-)added. > > https://github.com/afaerber/linux/commits/rtd1295-next > > Also note this 5-in-4 optimization: > > https://github.com/afaerber/linux/commit/ff8284b6ed9dc1e354c35840afdaf50b1cd97fea > > And several more chipsets being covered. > >>> Given that we need to manage a buffer with bits per segment or LED >>> symbol, one idea that I haven't found time for yet was to implement it >>> as framebuffer or drm device instead. (And most Realtek platforms got >>> broken by removing the adjustable text base defines.) >>> >> I'm not aware of the Realtek platform issue, do you have a link to a >> related discussion? > > Realtek has a boot ROM at the beginning of memory space, which has been > a problem from the first RFC and for most bootloaders required to tweak > the kernel's text offset for successful boot. (Some not Open Source (LK) > and/or not openly flashable.) > > http://lists.infradead.org/pipermail/linux-arm-kernel/2017-February/487718.html > > In 2020 that arm64 feature got removed without any further discussion: > > https://lore.kernel.org/all/20200825135440.11288-1-ardb@kernel.org/ Note the TEXT_OFFSET is only an issue with Amlogic vendor bootloader, it has never been an issue with mainline U-Boot. Neil > > I've tried to revert it, but that's been a pain: > > https://github.com/afaerber/linux/commit/0d2c647781bc89ee95bfa7b80d71237c7ebea230 > >> And wouldn't you think it's overengineering to >> write a DRM driver for a 7 segment display with 4 digits? >> Framebuffer seems to be deprecated based on my experience with >> pygame / SDL2. > > Is there any other API that would allow userspace to write to the buffer > and bitblt parts to the SPI device? > > Thinking of some optimizations I implemented in my driver to avoid > unnecessary SPI transfers: > > https://github.com/afaerber/linux/commit/46c40209db163a81474c6894ebbd90b5e238ce60 > > Regards, > Andreas >