linux-stable/Documentation/ABI
Linus Torvalds a7dcf5f235 power supply and reset changes for the v5.12 series
battery/charger driver changes:
  * acer_a500: new fuel gauge driver for Acer Iconia Tab A500
  * bq256xx: new charger driver
  * bq27xxx: Support CHARGE_NOW for bq27z561/bq28z610/bq34z100
  * bq27xxx: Fix inverted CURRENT_NOW sign
  * cpcap: rework fuel gauge and charger drivers
  * ltc4162l: new charger driver
  * max8997-charger: add extcon based current limit configuration
  * max8903, wm97xx, z2: convert to GPIO descriptors (incl. ARM board files)
  * misc. cleanup and fixes
 
 reset drivers:
  * new poweroff driver for ATC260x
  * at91-sama5d2_shdwc: add support for sama7g5
  * drop zte zx driver (SoC support is removed from kernel)
 -----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmAy7hUACgkQ2O7X88g7
 +po3vhAAgwtTzyqb1oVIaRRb4rz/aeEZqTe6TvQxKTXvZaq8S/aCT8QClSsB/FH2
 Pond8LaKOeF/R4CFFIdulA26hq65uCLo0sD1TbOf6mN2h9dsd/7Bqpp4lp69zZVJ
 0MfdBVgFguUwK/Uwzk15JsiEqyFe0TIZWnNGrveMy+NMpL9WqyYY2OoBGhlVsrnj
 c9k5anTHQVR6tlTaPOr03lUdt5Kb0UNZd5lIJNMCjVokYPkAhhnxxhLz6vFTjuyU
 w2oqeyK+p02cGYu+O0GrC7tRlBbwZEYdMxNGCPzgZOTPR1YUtjjxm1No8q8lzF/d
 mrV2IbTToyzjUELyXxjIWl4jYrZxV74MN3D63ZmkQrcvnwg9CggyhpaAbtj3n345
 wVGIp0fd6Hb98KgCXAV+YqslZVeBmC/rdt+5m+k7i+mGb5lGf2S+cPA6Nda58U/C
 Tk/mkL8oMfQ23olTcHywDe7H+rmD1crCsEaAFWu5V5a6eizBDW7fCzUzocxiYD4K
 uPreBfdiXw/hnBW4CMouwzBxbLH3INKtZWLvrvEWdpRgJ3v2c3QTh5gNwkpmDiu8
 pscPz2UeD/Lfe1ozqS97HseITLCc86E4q84B+BmZim0i/nfqRhNlYKD9YjbubawC
 gNP7Vj1u6bRPlhEGZ8QMw8LowMmSTBT6X2aGC8oQkUKbnlspAO0=
 =Efu2
 -----END PGP SIGNATURE-----

Merge tag 'for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply

Pull power supply and reset updates from Sebastian Reichel:
 "Battery/charger driver changes:
   - acer_a500: new fuel gauge driver for Acer Iconia Tab A500
   - bq256xx: new charger driver
   - bq27xxx: Support CHARGE_NOW for bq27z561/bq28z610/bq34z100
   - bq27xxx: Fix inverted CURRENT_NOW sign
   - cpcap: rework fuel gauge and charger drivers
   - ltc4162l: new charger driver
   - max8997-charger: add extcon based current limit configuration
   - max8903, wm97xx, z2: convert to GPIO descriptors (incl. ARM board files)
   - misc cleanup and fixes

  Reset drivers:
   - new poweroff driver for ATC260x
   - at91-sama5d2_shdwc: add support for sama7g5
   - drop zte zx driver (SoC support is removed from kernel)"

* tag 'for-v5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-power-supply: (55 commits)
  power-supply: use kobj_to_dev()
  power: supply: charger-manager: fix typo
  power/reset: remove zte zx driver
  power: supply: bq25980: Fix repetive bq25975 with bq25960
  power: supply: smb347-charger: Fix interrupt usage if interrupt is unavailable
  power: supply: axp20x_usb_power: Init work before enabling IRQs
  power: supply: fix sbs-charger build, needs REGMAP_I2C
  power: supply: bq27xxx: fix polarity of current_now
  power: supply: charger-manager: fix incorrect health status
  power: reset: at91-sama5d2_shdwc: add support for sama7g5
  dt-bindings: atmel-sysreg: add microchip,sama7g5-shdwc
  power: reset: at91-sama5d2_shdwc: fix wkupdbc mask
  dt-bindings: power/supply: Add ltc4162-l-charger
  power: supply: bq24190_charger: convert comma to semicolon
  power: supply: ab8500_fg: convert comma to semicolon
  power: supply: ds2780: Switch to using the new API kobj_to_dev()
  power: supply: bq27xxx: Support CHARGE_NOW for bq27z561/bq28z610/bq34z100
  power: supply: cpcap-charger: Fix power_supply_put on null battery pointer
  power: supply: cpcap-battery: constify psy_desc
  power: supply: cpcap-battery: Fix typo
  ...
2021-02-22 09:49:59 -08:00
..
obsolete batman-adv: Drop deprecated sysfs support 2020-12-04 08:40:52 +01:00
removed docs: ABI: cleanup several ABI documents 2020-10-30 13:14:29 +01:00
stable tpmdd updates for Linux v5.12-rc1 2021-02-21 17:15:44 -08:00
testing power supply and reset changes for the v5.12 series 2021-02-22 09:49:59 -08:00
README docs: ABI: README: specify that files should be ReST compatible 2020-10-30 13:07:01 +01:00

This directory attempts to document the ABI between the Linux kernel and
userspace, and the relative stability of these interfaces.  Due to the
everchanging nature of Linux, and the differing maturity levels, these
interfaces should be used by userspace programs in different ways.

We have four different levels of ABI stability, as shown by the four
different subdirectories in this location.  Interfaces may change levels
of stability according to the rules described below.

The different levels of stability are:

  stable/
	This directory documents the interfaces that the developer has
	defined to be stable.  Userspace programs are free to use these
	interfaces with no restrictions, and backward compatibility for
	them will be guaranteed for at least 2 years.  Most interfaces
	(like syscalls) are expected to never change and always be
	available.

  testing/
	This directory documents interfaces that are felt to be stable,
	as the main development of this interface has been completed.
	The interface can be changed to add new features, but the
	current interface will not break by doing this, unless grave
	errors or security problems are found in them.  Userspace
	programs can start to rely on these interfaces, but they must be
	aware of changes that can occur before these interfaces move to
	be marked stable.  Programs that use these interfaces are
	strongly encouraged to add their name to the description of
	these interfaces, so that the kernel developers can easily
	notify them if any changes occur (see the description of the
	layout of the files below for details on how to do this.)

  obsolete/
	This directory documents interfaces that are still remaining in
	the kernel, but are marked to be removed at some later point in
	time.  The description of the interface will document the reason
	why it is obsolete and when it can be expected to be removed.

  removed/
	This directory contains a list of the old interfaces that have
	been removed from the kernel.

Every file in these directories will contain the following information:

What:		Short description of the interface
Date:		Date created
KernelVersion:	Kernel version this feature first showed up in.
Contact:	Primary contact for this interface (may be a mailing list)
Description:	Long description of the interface and how to use it.
Users:		All users of this interface who wish to be notified when
		it changes.  This is very important for interfaces in
		the "testing" stage, so that kernel developers can work
		with userspace developers to ensure that things do not
		break in ways that are unacceptable.  It is also
		important to get feedback for these interfaces to make
		sure they are working in a proper way and do not need to
		be changed further.


Note:
   The fields should be use a simple notation, compatible with ReST markup.
   Also, the file **should not** have a top-level index, like::

	===
	foo
	===

How things move between levels:

Interfaces in stable may move to obsolete, as long as the proper
notification is given.

Interfaces may be removed from obsolete and the kernel as long as the
documented amount of time has gone by.

Interfaces in the testing state can move to the stable state when the
developers feel they are finished.  They cannot be removed from the
kernel tree without going through the obsolete state first.

It's up to the developer to place their interfaces in the category they
wish for it to start out in.


Notable bits of non-ABI, which should not under any circumstances be considered
stable:

- Kconfig.  Userspace should not rely on the presence or absence of any
  particular Kconfig symbol, in /proc/config.gz, in the copy of .config
  commonly installed to /boot, or in any invocation of the kernel build
  process.

- Kernel-internal symbols.  Do not rely on the presence, absence, location, or
  type of any kernel symbol, either in System.map files or the kernel binary
  itself.  See Documentation/process/stable-api-nonsense.rst.