28 Jan, 2021

1 commit


18 Jan, 2021

1 commit


29 Dec, 2020

1 commit

  • * aosp/upstream-f2fs-stable-linux-5.10.y:
    f2fs: compress: fix compression chksum
    f2fs: fix shift-out-of-bounds in sanity_check_raw_super()
    f2fs: fix race of pending_pages in decompression
    f2fs: fix to account inline xattr correctly during recovery
    f2fs: inline: fix wrong inline inode stat
    f2fs: inline: correct comment in f2fs_recover_inline_data
    f2fs: don't check PAGE_SIZE again in sanity_check_raw_super()
    f2fs: convert to F2FS_*_INO macro
    f2fs: introduce max_io_bytes, a sysfs entry, to limit bio size
    f2fs: don't allow any writes on readonly mount
    f2fs: avoid race condition for shrinker count
    f2fs: add F2FS_IOC_DECOMPRESS_FILE and F2FS_IOC_COMPRESS_FILE
    f2fs: add compress_mode mount option
    f2fs: Remove unnecessary unlikely()
    f2fs: init dirty_secmap incorrectly
    f2fs: remove buffer_head which has 32bits limit
    f2fs: fix wrong block count instead of bytes
    f2fs: use new conversion functions between blks and bytes
    f2fs: rename logical_to_blk and blk_to_logical
    f2fs: fix kbytes written stat for multi-device case
    f2fs: compress: support chksum
    f2fs: fix to avoid REQ_TIME and CP_TIME collision
    f2fs: change to use rwsem for cp_mutex
    f2fs: Handle casefolding with Encryption
    fscrypt: Have filesystems handle their d_ops
    libfs: Add generic function for setting dentry_ops
    f2fs: Remove the redundancy initialization
    f2fs: remove writeback_inodes_sb in f2fs_remount
    f2fs: fix double free of unicode map
    f2fs: fix compat F2FS_IOC_{MOVE,GARBAGE_COLLECT}_RANGE
    f2fs: avoid unneeded data copy in f2fs_ioc_move_range()
    f2fs: add F2FS_IOC_SET_COMPRESS_OPTION ioctl
    f2fs: add F2FS_IOC_GET_COMPRESS_OPTION ioctl
    f2fs: move ioctl interface definitions to separated file
    f2fs: fix to seek incorrect data offset in inline data file
    f2fs: call f2fs_get_meta_page_retry for nat page

    Bug: 174873661
    Signed-off-by: Jaegeuk Kim
    Change-Id: I1edcbc31855a7b9d5fd5623ad0fd420e4885eaf2

    Jaegeuk Kim
     

22 Dec, 2020

1 commit


18 Dec, 2020

1 commit


14 Dec, 2020

3 commits


28 Nov, 2020

5 commits

  • USB Power Delivery Specification defines a set of product
    types for partners and cables. The product type can be read
    from the ID Header VDO which is the first object in the
    response to the Discover Identity command. This attribute
    will display the product type of the partner. The cables
    already have the attribute.

    This sysfs attribute file is only created for the partners
    and cables if the product type is really known in the
    driver. Some interfaces do not give access to the Discover
    Identity response from the partner or cable, but they may
    still supply the product type separately in some cases.

    When the product type of the partner or cable is detected,
    uevent is also raised with PRODUCT_TYPE set to show the
    actual product type (for example PRODUCT_TYPE=host).

    Bug: 174347172
    Signed-off-by: Heikki Krogerus
    Link: https://lore.kernel.org/r/20201126115735.50529-1-heikki.krogerus@linux.intel.com
    Signed-off-by: Greg Kroah-Hartman
    (cherry picked from commit ab37fa851c488be805f6568ecaabb67b13cd937c
    https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
    Cc: Badhri Jagan Sridharan
    Cc: Will McVicker
    Signed-off-by: Greg Kroah-Hartman
    Change-Id: I56e332210d32dbed4d1264b6aa9adae758539463

    Heikki Krogerus
     
  • A PD-capable device can return up to 3 Product Type VDOs as part of its
    DiscoverIdentity Response (USB PD Spec, Rev 3.0, Version 2.0, Section
    6.4.4.3.1). Add sysfs attributes to expose these to userspace.

    Bug: 174347172
    Cc: Benson Leung
    Cc: Heikki Krogerus
    Reviewed-by: Heikki Krogerus
    Signed-off-by: Prashant Malani
    Link: https://lore.kernel.org/r/20201125084911.1077462-2-pmalani@chromium.org
    Signed-off-by: Greg Kroah-Hartman
    (cherry picked from commit 2e70c495cadebdcc6f80fde3553401bb0987b29f
    https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
    Cc: Badhri Jagan Sridharan
    Cc: Will McVicker
    Signed-off-by: Greg Kroah-Hartman
    Change-Id: I40f39f5774227b73635b87ce3b6f4c69f33b0aa7

    Prashant Malani
     
  • Both partner and cable have identity VDOs. These are listed separately
    in the Documentation/ABI/testing/sysfs-class-typec. Factor these out
    into a common location to avoid the duplication.

    Bug: 174347172
    Acked-by: Heikki Krogerus
    Signed-off-by: Prashant Malani
    Link: https://lore.kernel.org/r/20201125084911.1077462-1-pmalani@chromium.org
    Signed-off-by: Greg Kroah-Hartman
    (cherry picked from commit fd2c35b2f59f3d4a92e8604c7105f001d1da503c
    https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
    Cc: Badhri Jagan Sridharan
    Cc: Will McVicker
    Signed-off-by: Greg Kroah-Hartman
    Change-Id: Ie6001441a2a000592846c9cebfbe14631f41c072

    Prashant Malani
     
  • Add a field to the typec_plug struct to record the number of available
    altmodes as well as the corresponding sysfs attribute to expose this to
    userspace.

    This allows userspace to determine whether there are any
    remaining alternate modes left to be registered by the kernel driver. It
    can begin executing any policy state machine after all available
    alternate modes have been registered with the connector class framework.

    This value is set to "-1" initially, signifying that a valid number of
    alternate modes haven't been set for the plug. The sysfs file remains
    hidden as long as the attribute value is -1.

    We re-use the partner attribute for number_of_alternate_modes since the
    usage and name is similar, and update the corresponding *_show() command
    to support both partner and plugs.

    Bug: 174347172
    Signed-off-by: Prashant Malani
    Reviewed-by: Heikki Krogerus
    Link: https://lore.kernel.org/r/20201116201150.2919178-4-pmalani@chromium.org
    Signed-off-by: Greg Kroah-Hartman
    (cherry picked from commit e1e52361c61afdf81d81cfbbfa3ce08971e60f50
    https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
    Cc: Badhri Jagan Sridharan
    Cc: Will McVicker
    Signed-off-by: Greg Kroah-Hartman
    Change-Id: Ief9c7656847cfc1576a1658fb91967dbf2927966

    Prashant Malani
     
  • Add a user-visible attribute for the number of alternate modes available
    in a partner. This allows userspace to determine whether there are any
    remaining alternate modes left to be registered by the kernel driver. It
    can begin executing any policy state machine after all available
    alternate modes have been registered with the connector class framework.

    This value is set to "-1" initially, signifying that a valid number of
    alternate modes haven't been set for the partner.

    Also add a sysfs file which exposes this attribute. The file remains
    hidden as long as the attribute value is -1.

    Bug: 174347172
    Cc: Benson Leung
    Cc: Heikki Krogerus
    Signed-off-by: Prashant Malani
    Reviewed-by: Heikki Krogerus
    Link: https://lore.kernel.org/r/20201116201150.2919178-3-pmalani@chromium.org
    Signed-off-by: Greg Kroah-Hartman
    (cherry picked from commit a0ccdc4a77a1b36b682ae60361879eca0a0f88d6
    https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
    Cc: Badhri Jagan Sridharan
    Cc: Will McVicker
    Signed-off-by: Greg Kroah-Hartman
    Change-Id: Id33c6eb2a4a293589ca7d085d3fccafd3c2708d5

    Prashant Malani
     

23 Nov, 2020

2 commits

  • Linux 5.10-rc5

    Signed-off-by: Greg Kroah-Hartman
    Change-Id: Ia5b23cceb3e0212c1c841f1297ecfab65cc9aaa6

    Greg Kroah-Hartman
     
  • Pull staging and IIO fixes from Greg KH:
    "Here are some small Staging and IIO driver fixes for 5.10-rc5. They
    include:

    - IIO fixes for reported regressions and problems

    - new device ids for IIO drivers

    - new device id for rtl8723bs driver

    - staging ralink driver Kconfig dependency fix

    - staging mt7621-pci bus resource fix

    All of these have been in linux-next all week with no reported issues"

    * tag 'staging-5.10-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging:
    iio: accel: kxcjk1013: Add support for KIOX010A ACPI DSM for setting tablet-mode
    iio: accel: kxcjk1013: Replace is_smo8500_device with an acpi_type enum
    docs: ABI: testing: iio: stm32: remove re-introduced unsupported ABI
    iio: light: fix kconfig dependency bug for VCNL4035
    iio/adc: ingenic: Fix AUX/VBAT readings when touchscreen is used
    iio/adc: ingenic: Fix battery VREF for JZ4770 SoC
    staging: rtl8723bs: Add 024c:0627 to the list of SDIO device-ids
    staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK
    staging: mt7621-pci: avoid to request pci bus resources
    iio: imu: st_lsm6dsx: set 10ms as min shub slave timeout
    counter/ti-eqep: Fix regmap max_register
    iio: adc: stm32-adc: fix a regression when using dma and irq
    iio: adc: mediatek: fix unset field
    iio: cros_ec: Use default frequencies when EC returns invalid information

    Linus Torvalds
     

13 Nov, 2020

1 commit

  • Remove unsupported ABI that has been re-introduced due to a rebase hunk.
    This ABI has been moved in the past in commit b299d00420e2
    ("IIO: stm32: Remove quadrature related functions from trigger driver")

    This also fixes a couple of warnings seen with:
    ./scripts/get_abi.pl validate 2>&1|grep iio

    Fixes: 34433332841d ("docs: ABI: testing: make the files compatible with ReST output")
    Acked-by: Jonathan Cameron
    Signed-off-by: Fabrice Gasnier
    Link: https://lore.kernel.org/r/1604685016-2434-1-git-send-email-fabrice.gasnier@st.com
    Signed-off-by: Greg Kroah-Hartman

    Fabrice Gasnier
     

09 Nov, 2020

1 commit


02 Nov, 2020

3 commits


30 Oct, 2020

17 commits

  • The ABI files are supposed to be unique. Yet,
    in the specific case of hw_pattern, there are some duplicated
    entries as warned by scripts/get_abi.pl:

    Warning: /sys/class/leds//hw_pattern is defined 3 times: Documentation/ABI/testing/sysfs-class-led-trigger-pattern:14 Documentation/ABI/testing/sysfs-class-led-driver-sc27xx:0 Documentation/ABI/testing/sysfs-class-led-driver-el15203000:0

    Drop the duplication from the ABI files, moving the specific
    definitions to files inside Documentation/leds.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/038e57881550550b298e598f8f9b7f20515cbe15.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • Both adp8860 and adp8870 define some extensions to the
    backlight class. This causes warnings:

    Warning: /sys/class/backlight//ambient_light_level is defined 2 times: /sys/class/backlight//ambient_light_level:8 /sys/class/backlight//ambient_light_level:30
    Warning: /sys/class/backlight//ambient_light_zone is defined 2 times: /sys/class/backlight//ambient_light_zone:18 /sys/class/backlight//ambient_light_zone:40

    As ABI definitions shouldn't be duplicated.

    Unfortunately, the ABI is dependent on the specific device
    features. As such, ambient_light_level range is somewhat
    different among the supported devices.

    The ambient_light_zone is even worse: the meanings of each
    preset are different, and there's no ABI to retrieve
    the supported types nor their meanins. Unfortunately,
    it is too late to fix it without causing regressions,
    as this has been used since Kernel v2.6.35.

    Rewrite those ABI documentation using the current documentation
    as a reference, and double-checking at the datasheets:

    https://www.analog.com/media/en/technical-documentation/data-sheets/ADP8870.pdf
    https://www.analog.com/media/en/technical-documentation/data-sheets/ADP8860.pdf

    in order to properly document the differences between those two
    drivers.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/342195ad5a819d9bcfcebc133c77ab69b4211672.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • As warned by scripts/get_abi.pl:
    Warning: /sys/class/c2port/c2portX/flash_erase is defined 2 times: Documentation/ABI/testing/sysfs-c2port:60 Documentation/ABI/testing/sysfs-c2port:68

    This entry was added twice at the same patch. Probalby a
    cut-and paste issue.

    Fixes: 4e17e1db9647 ("Add c2 port support")
    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/4ea2b31ddc76161fbae004f2f2ed91dfb757703f.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • The ABI is not supposed to have duplicated entries, as warned
    by get_abi.pl:

    $ ./scripts/get_abi.pl validate 2>&1|grep sysfs-class-power
    Warning: /sys/class/power_supply//current_avg is defined 2 times: Documentation/ABI/testing/sysfs-class-power:108 Documentation/ABI/testing/sysfs-class-power:391
    Warning: /sys/class/power_supply//current_max is defined 2 times: Documentation/ABI/testing/sysfs-class-power:121 Documentation/ABI/testing/sysfs-class-power:404
    Warning: /sys/class/power_supply//current_now is defined 2 times: Documentation/ABI/testing/sysfs-class-power:130 Documentation/ABI/testing/sysfs-class-power:414
    Warning: /sys/class/power_supply//temp is defined 2 times: Documentation/ABI/testing/sysfs-class-power:281 Documentation/ABI/testing/sysfs-class-power:493
    Warning: /sys/class/power_supply//temp_alert_max is defined 2 times: Documentation/ABI/testing/sysfs-class-power:291 Documentation/ABI/testing/sysfs-class-power:505
    Warning: /sys/class/power_supply//temp_alert_min is defined 2 times: Documentation/ABI/testing/sysfs-class-power:306 Documentation/ABI/testing/sysfs-class-power:521
    Warning: /sys/class/power_supply//temp_max is defined 2 times: Documentation/ABI/testing/sysfs-class-power:322 Documentation/ABI/testing/sysfs-class-power:537
    Warning: /sys/class/power_supply//temp_min is defined 2 times: Documentation/ABI/testing/sysfs-class-power:333 Documentation/ABI/testing/sysfs-class-power:547
    Warning: /sys/class/power_supply//voltage_max is defined 2 times: Documentation/ABI/testing/sysfs-class-power:356 Documentation/ABI/testing/sysfs-class-power:571
    Warning: /sys/class/power_supply//voltage_min is defined 2 times: Documentation/ABI/testing/sysfs-class-power:367 Documentation/ABI/testing/sysfs-class-power:581
    Warning: /sys/class/power_supply//voltage_now is defined 2 times: Documentation/ABI/testing/sysfs-class-power:378 Documentation/ABI/testing/sysfs-class-power:591

    Yet, both USB and Battery share a common set of charging-related
    properties.

    Unify the entries for such properties in order to avoid
    duplication, while preserving the battery and USB-specific
    data properly documented.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/bcdf5f76326ea48a990a7cac612af216c387537d.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • This ABI is defined twice, one for normal leds and another
    one for multicolor ones.

    Ensure that just one definition is there at ABI.

    Acked-by: Pavel Machek
    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/1115022e7f172b19ee8610f2ad28cc2f0ca93592.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • Perhaps due to a wrong cut-and-paste, this entry:

    What: /sys/bus/vmbus/devices//channels//cpu

    was added twice by the same patch, one following the other.

    Remove the duplication.

    Fixes: c2e5df616e1a ("vmbus: add per-channel sysfs info")
    Acked-by: Wei Liu
    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/091e8de5543c280ceb47edcb3ab6d0e9f3fa085b.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • Unfortunately, (R) and (W) are valid markups for enumerated
    lists, as described at:
    https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#enumerated-lists

    So, we ned to replace them by:

    (R) -> (Read)
    (W) -> (Write)

    As otherwise, (R) will be displayed as R., with is not what
    it is desired.

    There's no need to touch (RO) and (RW).

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/6e81ad8064f3ed4f8dc265086fdf1c618043f935.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • There are some ABI documents that, while they don't generate
    any warnings, they have issues when parsed by get_abi.pl script
    on its output result.

    Address them, in order to provide a clean output.

    Reviewed-by: Tom Rix # for fpga-manager
    Reviewed-By: Kajol Jain # for sysfs-bus-event_source-devices-hv_gpci and sysfs-bus-event_source-devices-hv_24x7
    Acked-by: Jonathan Cameron #for IIO
    Acked-by: Oded Gabbay # for Habanalabs
    Acked-by: Vaibhav Jain # for sysfs-bus-papr-pmem
    Acked-by: Cezary Rojewski # for catpt
    Acked-by: Suzuki K Poulose
    Acked-by: Ilya Dryomov # for rbd
    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/5bc78e5b68ed1e9e39135173857cb2e753be868f.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • This ABI is not following the format described at ABI/README.

    Use it, filling in the blanks with the git log that added it,
    and using the current e-mail from Dan.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/9ec379cbf6dcf65ce3039c3671baf7bcaea532f4.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • This ABI is not following the format described at ABI/README.

    Use it, filling in the blanks with the git log that added it,
    and using the current e-mail from Andy.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/28c7cf3a71e15fb7499b70ec8f38c2efaaf4add2.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • There are a number of new changes at the ABI files that cause
    them to produce warnings when generating ABI output.

    Fix them.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/55a89f423cf122982c462d257722e44d6ece4b36.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • There are some problems with this file when a ReST content
    is produced. Fix it.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/f56daf94b80f1051438e8c787ba04552adb66e67.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • With just a single fix, the contents there can be parsed properly
    without the need to escape any ReST incompatible stuff.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/472f4574b6aa2ff4de5a819db1a4a5c9a34f5168.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • - Replace " by ``, in order to use monospaced fonts;
    - mark literal blocks as such.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/63904cc9b6a8581c5fc2ea1dca5d925874c67372.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • Some files over there won't parse well by Sphinx.

    Fix them.

    Acked-by: Jonathan Cameron # for IIO
    Acked-by: Fabrice Gasnier
    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/58cf3c2d611e0197fb215652719ebd82ca2658db.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • Several entries at the stable ABI files won't parse if we pass
    them directly to the ReST output.

    Adjust them, in order to allow adding their contents as-is at
    the stable ABI book.

    Acked-by: Srinivas Kandagatla
    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/467a0dfbcdf00db710a629d3fe4a2563750339d8.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     
  • As we plan to remove the escaping code from the scripts/get_abi.pl,
    specify at the ABI README file that the content of the file should
    be ReST compatible.

    Acked-by: Jonathan Corbet
    Signed-off-by: Mauro Carvalho Chehab
    Link: https://lore.kernel.org/r/178a997070debd1953ba7d302c375948501d6193.1604042072.git.mchehab+huawei@kernel.org
    Signed-off-by: Greg Kroah-Hartman

    Mauro Carvalho Chehab
     

29 Oct, 2020

1 commit


27 Oct, 2020

1 commit


26 Oct, 2020

1 commit