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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6326EC433F5 for ; Fri, 4 Feb 2022 15:30:36 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AD43883A5E; Fri, 4 Feb 2022 16:30:34 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=kernel.org header.i=@kernel.org header.b="SkTLK2AZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5A1B683A5F; Fri, 4 Feb 2022 16:30:33 +0100 (CET) Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 829D583A5D for ; Fri, 4 Feb 2022 16:30:29 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pali@kernel.org Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6387C61696; Fri, 4 Feb 2022 15:30:27 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 81E5CC004E1; Fri, 4 Feb 2022 15:30:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1643988626; bh=gFGJD3iuYsx6PFgh0B3mzAjVO53pmQe4UCTGCy6rfjU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SkTLK2AZgPCWz/mSiike5RNHZKfnqdt/uN0HrN1jWnMO7jzdyT+5xizDOGLhxnEb7 9N/dPmJXm6wj7nC54v6ze1ALbDNGCmhGCT9ChxnIpX7axa6OAxS7mqks5OTfKDEHaA ygK/v7UVquuJZ27KsWYwis8hdbpdPfkNWwydmaRzGSduzf6BYuEn11NoL3gkzWiphz dLrWRYLFMBKaqeJsgF27UFHlbJ2bsD7uJXUCusSA8/v3jkwUyPxVJxDEt34wgr1Tyn QGD/Dy8yuIOC90r8P1NuPm7qaB2KdEV5Z4LFlVqaw6mnlu6W30BKPfsRkBxwPBZzrt v4Py0jvkl7JmA== Received: by pali.im (Postfix) id E3A7AA80; Fri, 4 Feb 2022 16:30:23 +0100 (CET) Date: Fri, 4 Feb 2022 16:30:23 +0100 From: Pali =?utf-8?B?Um9ow6Fy?= To: Simon Glass Cc: Tom Rini , U-Boot Mailing List Subject: Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_KEYBOARD Message-ID: <20220204153023.7oc5lyc5ageanveo@pali> References: <20220203211623.GY7515@bill-the-cat> <20220203214544.GA7515@bill-the-cat> <20220203215307.GB7515@bill-the-cat> <20220204105652.sluginmttbwgcwku@pali> <20220204134155.GP7515@bill-the-cat> <20220204135539.n24gfoh5nw3wzjw7@pali> <20220204140055.GQ7515@bill-the-cat> <20220204141310.lfbjvrqpct5y7stg@pali> 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 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean On Friday 04 February 2022 08:24:03 Simon Glass wrote: > Hi Pali, > > On Fri, 4 Feb 2022 at 07:13, Pali Rohár wrote: > > > > On Friday 04 February 2022 09:00:55 Tom Rini wrote: > > > On Fri, Feb 04, 2022 at 02:55:39PM +0100, Pali Rohár wrote: > > > > On Friday 04 February 2022 08:41:55 Tom Rini wrote: > > > > > On Fri, Feb 04, 2022 at 11:56:52AM +0100, Pali Rohár wrote: > > > > > > On Thursday 03 February 2022 15:02:02 Simon Glass wrote: > > > > > > > Hi, > > > > > > > > > > > > > > On Thu, 3 Feb 2022 at 14:53, Tom Rini wrote: > > > > > > > > > > > > > > > > On Thu, Feb 03, 2022 at 04:45:44PM -0500, Tom Rini wrote: > > > > > > > > > On Thu, Feb 03, 2022 at 04:16:23PM -0500, Tom Rini wrote: > > > > > > > > > > On Thu, Feb 03, 2022 at 07:38:50PM +0100, Pali Rohár wrote: > > > > > > > > > > > > > > > > > > > > > Signed-off-by: Pali Rohár > > > > > > > > > > > --- > > > > > > > > > > > > > > > > > > > > > > I would really appreciate if U-Boot test framework starts printing > > > > > > > > > > > deprecation warnings, instead of sending patches which directly drop > > > > > > > > > > > support for some boards. > > > > > > > > > > > > > > > > > > > > > > There is absolutely no warning during building U-Boot for RX-51 board > > > > > > > > > > > that this board has not been converted to DM_KEYBOARD yet. > > > > > > > > > > > > > > > > > > > > Please send some patch that implements what you're wanting to see for > > > > > > > > > > how to make the warnings more visible. I do agree the warning for > > > > > > > > > > v2022.10 only showed up after the merge to -next once v2022.01 came out, > > > > > > > > > > but it's still a fairly long time to clean up the few unconverted > > > > > > > > > > boards. > > > > > > > > > > > > > > > > > > Oh, I see what's going on. Simon, the DM_KEYBOARD check isn't > > > > > > > > > triggering for any boards. I'll look more. > > > > > > > > > > > > > > > > And here's where we're at. nokia_rx51 doesn't set CONFIG_KEYBOARD, so > > > > > > > > didn't trigger the warning about migration. Every platform that sets > > > > > > > > CONFIG_KEYBOARD is migrated. I don't know how many other platforms are > > > > > > > > in the situation nokia_rx51 is in. Yanking out the legacy code and > > > > > > > > seeing what fails to build, and going from there is probably the next > > > > > > > > option. > > > > > > > > > > > > > > Yes. > > > > > > > > > > > > > > As to your questoin, none that I know of. I sent a series to drop > > > > > > > cfb_console which was how this used to work, although in fact it > > > > > > > hasn't worked for a while. The problem here seems to be that this > > > > > > > board was multiple migrations behind and so was not caught. > > > > > > > > > > > > It is not truth that cfb_console has not worked. This driver is / was > > > > > > working fine on n900 without any issues. > > > > > > > > > > Yes, it's such an old missed migration that there's no check for it. > > > > > > > > > > > > We should be able to remove the migration check. > > > > > > > > > > > > > > Pali, just to explain from the other POV, I am finding it increasingly > > > > > > > frustrating dealing with ad-hoc CONFIG options, old drivers, etc. We > > > > > > > really need to complete some of the migrations we started 6 years ago. > > > > > > > > > > > > > > Regards, > > > > > > > Simon > > > > > > > > > > > > Well, I see and understand you. But as I explained it more times, it was > > > > > > me who is/was waiting for review of n900 patches and I was not able to > > > > > > speed up review process. There was always some n900 patch in waiting > > > > > > state. > > > > > > > > > > > > Now when pending n900 patches were reviewed and merged, I prepared and > > > > > > sent another one -- this DM_KEYBOARD which removes one part of > > > > > > cfb_console code from n900 board code. > > > > > > > > > > Alright. So, do you see the warning about DM_SERIAL? Are you going to > > > > > start work on that migration now, or in about a week or two when I pick > > > > > this up, assuming no changes are requested? > > > > > > > > I do not see any warning, neither about DM_SERIAL nor any other in RX-51 > > > > test job which builds bootable image for RX-51. See CI link: > > > > https://dev.azure.com/u-boot/u-boot/_build/results?buildId=3580&view=logs&j=7f54f624-c8dd-54be-07eb-7f2dda6bba78&t=fc9e5b19-7cbc-51d2-a2e2-6e73893dece5 > > > > > > > > But there is CONFIG_DM_SERIAL warning for nokia_rx51 board in the > > > > Build the World omap job, see CI link: > > > > https://dev.azure.com/u-boot/u-boot/_build/results?buildId=3580&view=logs&j=36d465ef-27e5-5934-99d6-cf4495f0bf3d&t=2b422a7f-7065-531c-aa25-e0171b04f5d1 > > > > > > It's also visible when just doing "make CROSS_COMPILE=... > > > nokia_rx51_config all" so I guess you need to debug your script and see > > > why it's not showing that? > > > > > > > After this DM_KEYBOARD patch, I'm planning to look at DM_VIDEO as Simon > > > > really wants it and then I can look at DM_SERIAL. > > > > > > OK. But, are you going to start before or after this gets merged? > > > > > > -- > > > Tom > > > > As that cfb code shares both video and keyboard functionality, switching > > to DM_VIDEO depends on working DM_KEYBOARD migration. So I can start > > working on DM_VIDEO changes after I would see how support for > > DM_KEYBOARD for n900 would look like. I do not want before because I > > would enter into rebase, conflicts, rework and reimplementation from > > zero circle (with which I have experience from past n900 u-boot patches). > > If the problem is reviews I can help with that. If it is lost patches > then we should be able to get them all in now-ish. Can you resend > everything that is outstanding. This is the only outstanding patch right now. All others were finally reviewed and merged. > Yes you do need to put drivers in drivers/ so please create a Kconfig > for your keyboard driver and put it in drivers/input But this is not easy and make it harder to develop and debug. All these functionality shares lot of functions, variables and locks; so it cannot be moved into drivers/input unless you want also watchdog or other code in drivers/input. Not mentioning that this is specific board code which is not on any other board, so I do not see any value of trying to invest lot of time in this.