Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp585544pxa; Tue, 4 Aug 2020 12:44:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw80OBzQQRCdDR7CrL5kT4BszvduXNptzpAEGgIATd/3cg4oGb7HxNxa4J8XMJrz+6I/nnP X-Received: by 2002:a05:6402:16d0:: with SMTP id r16mr22663578edx.124.1596570244490; Tue, 04 Aug 2020 12:44:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596570244; cv=none; d=google.com; s=arc-20160816; b=YrKe2QvntHpXASBj+Pyl3EsV0NCDcn8/06TXksCm0aucHQO2+EcNa7tIB0DxUk0aMm axM/Xn7RiSJVVu4y1uVc4B12vkdROUvXeZZblTAkR+3EMSIHOc17wkalal39PAlV2DK5 OiXrvLgUWSawRUbUcrzjXt/dalENqJqTrTrRYyIR80mZy+dzzy6Aeu1HqjmSYv2C0UWG vGB8xP7oY5f7PzW1ROcrTS62CB1GRdfTIFPdSNF+4VmsibRQhYY3XNjyB9IKYS4Gh3Dh b/Kpx525Qtllb+pEryVlI1VEmOgiWWiAyz8VDcgxzc9So+yJzqUhPxEsBdAbYpzPZ/hQ VORQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=dSlSO2Zd9jkm/qIiBUSX2pIA2UBSkdUFM49R5g/2fa4=; b=r0ZgBDKRnB9tEu6A+ZLyaC5uYiP7j1P/VlJAGY6N3sy7SUUQLi18RnOcw/k3HAPXqi 8kT9nKqkYl0G1pBKzQ+dNOv/2xP2pFXCNwANJcjeCk9DQS0yaD9maP0DV2BQuHzzy3Zw 0qq/JWiId8VGqBvg+Ubhx95xj7tPpJd9Gq0HdlTc6kvfDgHfdGdEX37pfb3E2QwHpYHd FMFsRssidwXgq3+x0SXJJ+AETo5H8WRuoXsBEoSlWe3nFhJnX6EG4/A4+rEjU/gGuaeS LT0YHBx+tspPseXcK6Wga4kiuD/BZd8rBWXyEAHFSmFM9n8AwwlY2NmuazHYNsnQLCgX ac3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CwKotEeF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v5si15578888edi.437.2020.08.04.12.43.42; Tue, 04 Aug 2020 12:44:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=CwKotEeF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbgHDTng (ORCPT + 99 others); Tue, 4 Aug 2020 15:43:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726824AbgHDTnf (ORCPT ); Tue, 4 Aug 2020 15:43:35 -0400 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C023C061756 for ; Tue, 4 Aug 2020 12:43:35 -0700 (PDT) Received: by mail-qt1-x841.google.com with SMTP id k18so31876423qtm.10 for ; Tue, 04 Aug 2020 12:43:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=dSlSO2Zd9jkm/qIiBUSX2pIA2UBSkdUFM49R5g/2fa4=; b=CwKotEeFTnw1upnSHoKsi58txKyhF+rlF0h+eBu8/NituD1yNVhftmi4SR920UYDbC KJAgfxS5HRaUsfa1d34Ako9v8rtlOtEJl6Uv0x3ad83vS9v7+zwKXit+3jTL7J4duQ2G xjJBKjC3ygeHZ2ice7rStZ93Og4+zZ0aZ5y5pozO6ElaO9FcV2OH+4geH1Y1IuUj3hNi nJY/nSk7PtZQ4Aky5znOBvUpnnIKuGjpV/hI5oYRfuza+Ij1fx9ZVz4V0MtSIj6K4sEK d38vT+shF+dwY0CSpULHY0lSvbbH/PPrwVDUsaOOrtr8luAYLCQKqhQyFEKVW1phBiBP TprQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dSlSO2Zd9jkm/qIiBUSX2pIA2UBSkdUFM49R5g/2fa4=; b=IN+m6yV7VayHYtZGKn+broVKFrur3+fuxkoeJHyM4z4sART3KfCJk1fCU6jG9Su5t6 +nyCS/V87nBN96xFPVQh24vatkUSxCz0HKbLZv1/nLaD3Q6b0F/Q7H5Xi+wazRlxEEoK l9b3skSxm7q0k1d0tbRB2WC4NspmRXQv6vte+E6wFKwjGU1bE100Ty1sJEc9Bu/v0GaT 8S/tmJcuSuHPVRuZVR0X6mLzvGfOCg0vPjXsvAh44RodgPlK2TGhWcavFBvF1MvxmE0P W1eTBdzz21vmf+m5A6esTxos0Nw1w5N9acNuhmCaXExqzaajZigphO0/FkUl9pzUaFft CYFQ== X-Gm-Message-State: AOAM532F4S3MrmsmjIicCJ1Vbj5/+XGpdcDCIyRVycThMq8d+OgZV3r+ VV9XPAK1uNht4mvXdPAAbx6Noo6TP3tcAYKThmP3ug== X-Received: by 2002:ac8:4e39:: with SMTP id d25mr9122163qtw.208.1596570214100; Tue, 04 Aug 2020 12:43:34 -0700 (PDT) MIME-Version: 1.0 References: <20200725041955.9985-1-warthog618@gmail.com> <20200725041955.9985-12-warthog618@gmail.com> In-Reply-To: <20200725041955.9985-12-warthog618@gmail.com> From: Bartosz Golaszewski Date: Tue, 4 Aug 2020 21:43:23 +0200 Message-ID: Subject: Re: [PATCH v2 11/18] gpio: uapi: document uAPI v1 as deprecated To: Kent Gibson Cc: LKML , linux-gpio , Linus Walleij Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jul 25, 2020 at 6:22 AM Kent Gibson wrote: > > Update uAPI documentation to deprecate v1 structs and ioctls. > > Signed-off-by: Kent Gibson > --- > include/uapi/linux/gpio.h | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > > diff --git a/include/uapi/linux/gpio.h b/include/uapi/linux/gpio.h > index 3f6db33014f0..92a74c245534 100644 > --- a/include/uapi/linux/gpio.h > +++ b/include/uapi/linux/gpio.h > @@ -278,6 +278,9 @@ struct gpioline_event { > > /* > * ABI v1 > + * > + * This version of the ABI is deprecated and will be removed in the future. > + * Use the latest version if the ABI, defined above, instead. typo: of the ABI > */ > > /* Informational flags */ > @@ -301,6 +304,9 @@ struct gpioline_event { > * @consumer: a functional name for the consumer of this GPIO line as set by > * whatever is using it, will be empty if there is no current user but may > * also be empty if the consumer doesn't set this up > + * > + * This struct part of ABI v1 and is deprecated. "This struct is part of ABI (...)" > + * Use struct gpioline_info_v2 instead. > */ > struct gpioline_info { > __u32 line_offset; > @@ -325,6 +331,9 @@ struct gpioline_info { > * guarantee there are no implicit holes between it and subsequent members. > * The 20-byte padding at the end makes sure we don't add any implicit padding > * at the end of the structure on 64-bit architectures. > + * > + * This struct part of ABI v1 and is deprecated. Same as above and same below. Bart > + * Use struct gpioline_info_changed_v2 instead. > */ > struct gpioline_info_changed { > struct gpioline_info info; > @@ -364,6 +373,9 @@ struct gpioline_info_changed { > * @fd: if successful this field will contain a valid anonymous file handle > * after a GPIO_GET_LINEHANDLE_IOCTL operation, zero or negative value > * means error > + * > + * This struct part of ABI v1 and is deprecated. > + * Use struct gpioline_request instead. > */ > struct gpiohandle_request { > __u32 lineoffsets[GPIOHANDLES_MAX]; > @@ -383,6 +395,9 @@ struct gpiohandle_request { > * this specifies the default output value, should be 0 (low) or > * 1 (high), anything else than 0 or 1 will be interpreted as 1 (high) > * @padding: reserved for future use and should be zero filled > + * > + * This struct part of ABI v1 and is deprecated. > + * Use struct gpioline_config instead. > */ > struct gpiohandle_config { > __u32 flags; > @@ -395,6 +410,9 @@ struct gpiohandle_config { > * @values: when getting the state of lines this contains the current > * state of a line, when setting the state of lines these should contain > * the desired target state > + * > + * This struct part of ABI v1 and is deprecated. > + * Use struct gpioline_values instead. > */ > struct gpiohandle_data { > __u8 values[GPIOHANDLES_MAX]; > @@ -418,6 +436,9 @@ struct gpiohandle_data { > * @fd: if successful this field will contain a valid anonymous file handle > * after a GPIO_GET_LINEEVENT_IOCTL operation, zero or negative value > * means error > + * > + * This struct part of ABI v1 and is deprecated. > + * Use struct gpioline_request instead. > */ > struct gpioevent_request { > __u32 lineoffset; > @@ -437,6 +458,9 @@ struct gpioevent_request { > * struct gpioevent_data - The actual event being pushed to userspace > * @timestamp: best estimate of time of event occurrence, in nanoseconds > * @id: event identifier > + * > + * This struct part of ABI v1 and is deprecated. > + * Use struct gpioline_event instead. > */ > struct gpioevent_data { > __u64 timestamp; > @@ -461,6 +485,8 @@ struct gpioevent_data { > > /* > * v1 ioctl()s > + * > + * These ioctl()s are deprecated. Use the v2 equivalent instead. > */ > #define GPIO_GET_LINEINFO_IOCTL _IOWR(0xB4, 0x02, struct gpioline_info) > #define GPIO_GET_LINEHANDLE_IOCTL _IOWR(0xB4, 0x03, struct gpiohandle_request) > -- > 2.27.0 >