Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp769484rdb; Thu, 22 Feb 2024 21:42:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWV0xxfbJ4pZkc/zHBfPhOyR0m35FOt4vHi/FVViXG7gTTXA6cIWGUgWqkD/oIx+aBNd5Cb7kboz7S8WT7hqJPHcvJkve9CmKUX/4tdNg== X-Google-Smtp-Source: AGHT+IGJ3uW6LznNh9p/XiVbmO7ZT/UTjuktK+EO16clW7dHMqvO8/yeNvz3fYD2SaANvNJvdRor X-Received: by 2002:a05:6808:14d3:b0:3c1:559d:b56b with SMTP id f19-20020a05680814d300b003c1559db56bmr1298370oiw.14.1708666970379; Thu, 22 Feb 2024 21:42:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708666970; cv=pass; d=google.com; s=arc-20160816; b=Crn0+9mnYjHp5YHfubxwXyF15UKRgm2oDZxIrwFY7XKNQf2EfSkdJZQs+6MWX5D5bo keQPhrka8X/fMTl8fmcNLmWnPc0SXMa4Ho8lapaYrV10bP4tcIAm3RUmu2aIJ9qufXTX QHWYSpxH/ipXCu+Ht/KEn7EZLBJiT1jwZINoQExfW9Yl+kCEnek4A7/UICSOUGzmoGg6 AaaI1O0IEV235hB1lMyI6o4LQrSqkVcOMPO2CXcTKDNbvrFTDQGdk+5UbH2HKJBSDU+f LWHAbHko2Lt572b9XR7iv5QXrSrB3okz+PG62QYF3ctfmsek5wvI2LmuYxHXX62FX7ps JdnA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id; bh=u3fMKCP86/cH49U6myXWg26shsQVwMm09R/fDfj0GGo=; fh=+WDkUa8mgNqSPofcg1IhHPLNYhj/2O6BQNYLvVFD/ls=; b=xpp6E4Mt/3fMKP78kcnqSubOZt5nLzE8w5ZX3WiBN1X8sFJ+9pPuqeF6x7+NWLMuzg 7TbafX2hsE/XinQOX30ih+NX9oox1QPujyORBiGvyOm+e5SiWKyULObwVpr7CGpzrY27 J+6v5YrUwFcAcz8W8xPUyszUiunhLd80OqdZk8yTOBb4p7N/nCTMz1emjOIRWnMYNvBv X0XH+LY3Gq6iIlSVg6fud29QaJWJ73sqYPqH9a/M4zxOsw8L1cF4hfsVuHiKDUZEiYcK 48NHWjQFbeKt0fp8PKv4ErIN/6W0fRr04GAjmclRYTZcwITsOp0LKKweg9/533Scm1px fJKg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77798-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id hq16-20020a056a00681000b006e3b0284fc3si10178562pfb.301.2024.02.22.21.42.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 21:42:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77798-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-77798-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77798-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 17BA02885D3 for ; Fri, 23 Feb 2024 05:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2D82D12E76; Fri, 23 Feb 2024 05:42:22 +0000 (UTC) Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D974F12E54; Fri, 23 Feb 2024 05:42:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708666941; cv=none; b=JztDm0pfo/laP0qbVI7Gx32EGhCNoF8c5StjzuRI9rYk22W+IWZiXS3ZPJh1imIN4youkyjBW2jv6B7digfg7Zg7B7PX0GzfdDPiSSNzydt85EiBNxsmj2m5HYfkr7hmKo8swD0R31MLCeg3MCetpaZIPxHcYZfL34ytyaQ25uA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708666941; c=relaxed/simple; bh=b/iRBuxfuwlp3wxx3egxrn06Tj+jjVs9XIQQVj34xwY=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=WaZenATkYRYpIeZrOvDdh8kBH/xsz+3RHvGlCQeFWpRJP4RO82R/p5rl4PYKvVwEBrwEAT0ZstnemiZJLJeeLan8rsgVhAel1hOKnH88lPdIPSSMgymwim/mzxkg5FdHLn7aNypmqBJEMMGpK+OGQl28s5ATTK9mKiRvTHQNh90= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d2509c66daso6733551fa.3; Thu, 22 Feb 2024 21:42:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708666938; x=1709271738; h=content-transfer-encoding:in-reply-to:autocrypt:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=u3fMKCP86/cH49U6myXWg26shsQVwMm09R/fDfj0GGo=; b=bZM2Jwor1tojMCNE+ZCzdo64/+S2OMru1vxSHtLWxKzmkwsWmKrZ0UwgYL7q1rkudJ nSmmFcbX0VjzO3e7lghYG2gbj86SlauMNo7gyOdsiwS2qh7W2Z5XbaCQj5srtEfPn4kk 2dOQ0CVdm+qRIqoyxAnkJj2WYlwhwJP/kr3PZ/hTod9g8NMUgv3dCkqI8GthERlcELXZ CQCRKUxyWlycReEGKSnExgcD2jEN1Lr8JxyKCFwy+6wQX8tH4S4/5jjv+7ryEzdhf+H0 CFELRFZyqzRlRyohA81CZOoc8W8wlHSjnfYfjPLsBbnJj4jPV8xq4Urtl9xjdd/AP0+1 NxCA== X-Forwarded-Encrypted: i=1; AJvYcCVDGuWavo2XUFnJSe+X+LRMZe3fi1fA95uTuIBcVCMcpLv4+OBtE9dtJixwiW7Vv/LKQ3VHPQum5/tkQVkXkG0KkpKiPADZ2My9fuK2BTPkVDUa1jYd3cgXEY2JubQ6NRjUy7rcEVdB5dousuoyzr/aCt8I/WG10edkpudMDsfdHsUSAEjLUX8ypFO71MkD8kKJDUro6B1yhNIw5wQxQ9M7lWVK X-Gm-Message-State: AOJu0YxIuuFIk0QmflkE8jiPCX57AEaZKmJyGtTtriaQs4xLQkZPMqEt JGNoHq6upPIlFRX9Ev5HCllHDgLrcJziTwNaTfNWVsOvzqSvSlJU X-Received: by 2002:a05:651c:1a12:b0:2d2:734f:f387 with SMTP id by18-20020a05651c1a1200b002d2734ff387mr165929ljb.0.1708666937801; Thu, 22 Feb 2024 21:42:17 -0800 (PST) Received: from ?IPV6:2a0b:e7c0:0:107::aaaa:59? ([2a0b:e7c0:0:107::aaaa:59]) by smtp.gmail.com with ESMTPSA id e3-20020adfe383000000b0033cf637eea2sm1393902wrm.29.2024.02.22.21.42.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 22 Feb 2024 21:42:17 -0800 (PST) Message-ID: Date: Fri, 23 Feb 2024 06:42:15 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 02/14] serial: core: Add UPIO_UNSET constant for unset port type To: Andy Shevchenko Cc: Greg Kroah-Hartman , Thomas Gleixner , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-aspeed@lists.ozlabs.org, linux-rpi-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linux-tegra@vger.kernel.org, Joel Stanley , Andrew Jeffery , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Al Cooper , =?UTF-8?Q?Ilpo_J=C3=A4rvinen?= , Paul Cercueil , Vladimir Zapolskiy , Thierry Reding , Jonathan Hunter , Kunihiko Hayashi , Masami Hiramatsu References: <20240221183442.4124354-1-andriy.shevchenko@linux.intel.com> <20240221183442.4124354-3-andriy.shevchenko@linux.intel.com> <5aeee02f-45a6-48e5-a6f4-e55b76d4b959@kernel.org> Content-Language: en-US From: Jiri Slaby Autocrypt: addr=jirislaby@kernel.org; keydata= xsFNBE6S54YBEACzzjLwDUbU5elY4GTg/NdotjA0jyyJtYI86wdKraekbNE0bC4zV+ryvH4j rrcDwGs6tFVrAHvdHe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ECAAkFAk6S 54YCGwwACgkQvSWxBAa0cEk3tRAAgO+DFpbyIa4RlnfpcW17AfnpZi9VR5+zr496n2jH/1ld wRO/S+QNSA8qdABqMb9WI4BNaoANgcg0AS429Mq0taaWKkAjkkGAT7mD1Q5PiLr06Y/+Kzdr 90eUVneqM2TUQQbK+Kh7JwmGVrRGNqQrDk+gRNvKnGwFNeTkTKtJ0P8jYd7P1gZb9Fwj9YLx jhn/sVIhNmEBLBoI7PL+9fbILqJPHgAwW35rpnq4f/EYTykbk1sa13Tav6btJ+4QOgbcezWI wZ5w/JVfEJW9JXp3BFAVzRQ5nVrrLDAJZ8Y5ioWcm99JtSIIxXxt9FJaGc1Bgsi5K/+dyTKL wLMJgiBzbVx8G+fCJJ9YtlNOPWhbKPlrQ8+AY52Aagi9WNhe6XfJdh5g6ptiOILm330mkR4g W6nEgZVyIyTq3ekOuruftWL99qpP5zi+eNrMmLRQx9iecDNgFr342R9bTDlb1TLuRb+/tJ98 f/bIWIr0cqQmqQ33FgRhrG1+Xml6UXyJ2jExmlO8JljuOGeXYh6ZkIEyzqzffzBLXZCujlYQ DFXpyMNVJ2ZwPmX2mWEoYuaBU0JN7wM+/zWgOf2zRwhEuD3A2cO2PxoiIfyUEfB9SSmffaK/ S4xXoB6wvGENZ85Hg37C7WDNdaAt6Xh2uQIly5grkgvWppkNy4ZHxE+jeNsU7tg= In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 22. 02. 24, 14:21, Andy Shevchenko wrote: > On Thu, Feb 22, 2024 at 07:58:32AM +0100, Jiri Slaby wrote: >> On 21. 02. 24, 19:31, Andy Shevchenko wrote: > > ... > >>> unsigned char iotype; /* io access style */ >>> +#define UPIO_UNSET ((unsigned char)~0U) /* UCHAR_MAX */ >> >> Perhaps making the var u8 and this U8_MAX then? It would make more sense to >> me. > > WFM, should it be a separate change? Likely. > Btw, how can I justify it? Hmm, thinking about it, why is it not an enum? But it could be also an u8 because you want it be exactly 8 bits as you want to be sure values up to 255 fit. thanks, -- js suse labs