Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1835705rdb; Thu, 7 Dec 2023 09:59:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHFDa8g226St4Q948oYDvPOaag2CGg980i8HC2PdPJ80RYPRN7wZKuNVU+NftG2DzYre9hC X-Received: by 2002:a17:90b:230c:b0:286:6cc1:5fc5 with SMTP id mt12-20020a17090b230c00b002866cc15fc5mr2689304pjb.72.1701971944604; Thu, 07 Dec 2023 09:59:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701971944; cv=none; d=google.com; s=arc-20160816; b=bAkuPbZjg1KJtuGe1BHFWdGALex3OVNMFjP70ifQ3H319f5UFvkSkckSUZfObzKlo4 ebsJpuqiWZau/uK+Ikdz55wk/qTxy55pJYwiLBpeJ+/2m1gKLiZzOt4i8aQtG3LCx8S/ Q4Z1pPB77FJ62AOJ85WvalF97sXic+egW3AXBsNQo2hNKWZPW5z5cDE82bz2jfS5P8RZ zJ/o3sm+60s53gJ2qqUTGk3vKPwAE9tCMpzShSVJkg5zKuS17190FPW0WttP4D6DiykG GmR2nfMmyfn/3UlXhTqXoWbYYNY5CzRhvsihU79PLuAQqhSWb2zsVi7FjOGJ7r1Embmr rblQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:references:subject:from:to:cc :message-id:date:content-transfer-encoding:mime-version :dkim-signature; bh=Ztrqr2r+NdGGR17MQHZJfBYqrLR90ks+eNJU1UUR484=; fh=NpTdxWBXHFMKvs7Rq/QJAjRce6/BcuxDSUAOizkf8PI=; b=P0yOrelDBtBQix9StRDcfqjJOOuHCeu02Y87ac/GpsYKjBZ/Vqlx+8Ow8EYPXHPREG VTNEXqYNK70vPOVjwOSMQVUjBhI3mH+o0mtfMmkVKzhShjW8iDYniDS69tJ2wR5/4Psv 2npu5V9EkWyZ6ETxP2eYIs5mGAoPY3epdDgbw8zvshQxSeHnDQDhDiGfMBGrumfu+FcC xQ0WjLPdivBeYfwjTNqAH1IG5qB4DmfIN65koxGbQzitA0NuNY2gVFKT8/dvahch87/n hpIf3Nj6ivKp7TfRtAioycuDOs0IGGqvEO+1rgBU2XuHmXD6qstGnVFeBk1JoKsVmUDZ uH4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BPvuM+nE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id gv1-20020a17090b11c100b00286cd18da88si1463254pjb.137.2023.12.07.09.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 09:59:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=BPvuM+nE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E770F8028A69; Thu, 7 Dec 2023 09:59:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1443644AbjLGR6h (ORCPT + 99 others); Thu, 7 Dec 2023 12:58:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35818 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235228AbjLGR6g (ORCPT ); Thu, 7 Dec 2023 12:58:36 -0500 Received: from relay8-d.mail.gandi.net (relay8-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::228]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5911A173A; Thu, 7 Dec 2023 09:58:25 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 50ED81BF20D; Thu, 7 Dec 2023 17:58:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701971903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ztrqr2r+NdGGR17MQHZJfBYqrLR90ks+eNJU1UUR484=; b=BPvuM+nEK1j7qHnJ+Jq4urfc+MAFM7wsIQRL9vOmCGapoIbcgM3x6O4ttn155bCQoAFsB2 e2wUr9Alq0uET6He5daVB/IHufexQwpI0MkJopgOc4OvovUHTETfP0kPasGmxDN8+S0dNI OKPS+bv5gbtpxkcn8EWHcpbbAfz4IsL2wPSKdJ9g8NNylm8fCJ43e9c0xFWykY52tocyIL 5+LFGLc1G7vU6By0RqUlVfU74saXZH31nJgxJRllWqQASxk7F8mXHuN83zjvF2Fhng/ogj I8mVfFMS5As3J5EOr1217b7pV7WrSm6EVU768zWgEobD7sia8vIj/VCT7ci4kw== Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Thu, 07 Dec 2023 18:58:12 +0100 Message-Id: Cc: "Greg Kroah-Hartman" , "Russell King" , "Jiri Slaby" , "LKML" , "linux-serial" , "Linus Walleij" , =?utf-8?q?Gr=C3=A9gory_Clement?= , "Alexandre Belloni" , "Thomas Petazzoni" , "Vladimir Kondratiev" , "Tawfik Bayouk" To: =?utf-8?q?Ilpo_J=C3=A4rvinen?= From: =?utf-8?q?Th=C3=A9o_Lebrun?= Subject: Re: [PATCH v5 2/9] tty: serial: amba: Use linux/{bits,bitfield}.h macros X-Mailer: aerc 0.15.2 References: <20231130-mbly-uart-v5-0-6566703a04b5@bootlin.com> <20231130-mbly-uart-v5-2-6566703a04b5@bootlin.com> <2023120742-argue-slighting-6120@gregkh> <42e8faf-5293-18e4-3877-25e4d094f1d@linux.intel.com> In-Reply-To: <42e8faf-5293-18e4-3877-25e4d094f1d@linux.intel.com> X-GND-Sasl: theo.lebrun@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Thu, 07 Dec 2023 09:59:02 -0800 (PST) Hello, On Thu Dec 7, 2023 at 10:56 AM CET, Ilpo J=C3=A4rvinen wrote: > On Thu, 7 Dec 2023, Th=C3=A9o Lebrun wrote: > > On Thu Dec 7, 2023 at 2:37 AM CET, Greg Kroah-Hartman wrote: > > > On Thu, Nov 30, 2023 at 03:07:14PM +0100, Th=C3=A9o Lebrun wrote: > > > > The driver uses bit shifts and hexadecimal expressions to declare > > > > constants. Replace that with the BIT(), GENMASK() & FIELD_PREP_CONS= T() > > > > macros to clarify intent. > > > >=20 > > > > Reviewed-by: Linus Walleij > > > > Reviewed-by: Ilpo J=C3=A4rvinen > > > > Signed-off-by: Th=C3=A9o Lebrun > > > > --- > > > > include/linux/amba/serial.h | 248 +++++++++++++++++++++++---------= ------------ > > > > 1 file changed, 127 insertions(+), 121 deletions(-) > > > > > > As 0-day had a problem with this patch, I've applied only patch 1 of > > > this series. Can you fix it up and rebase and resend the rest again > > > (while adding the collected reviewed-by that some patches in this ser= ies > > > had)? > >=20 > > So the issue is this: the header file gets included in > > arch/arm/include/debug/pl01x.S that gets included in arch/arm/kernel/de= bug.S > > (see #include CONFIG_DEBUG_LL_INCLUDE). > >=20 > > I don't see any easy way out of this, so I guess it means the patch mus= t be > > dropped. If someone confirms that there are indeed no solution to have = BIT(), > > GENMASK() & FIELD_PREP_CONST() accessible from assembly, I'll send the = next > > version. > > Yeah, it seems to require UART01x_FR_TXFF and UART01x_FR_BUSY, plus=20 > UART01x_DR and UART01x_FR that are not touched by your patch. > > I suppose the rest might be convertable though.. Thanks Greg and Ilpo! v6 has been sent. Regards, -- Th=C3=A9o Lebrun, Bootlin Embedded Linux and Kernel engineering https://bootlin.com