~asmaam/ubuntu/+source/linux-bluefield:master-next-gpio

Last commit made on 2023-09-13
Get this branch:
git clone -b master-next-gpio https://git.launchpad.net/~asmaam/ubuntu/+source/linux-bluefield
Only Asmaa Mnebhi can upload to this branch. If you are Asmaa Mnebhi please log in for upload directions.

Branch merges

Branch information

Name:
master-next-gpio
Repository:
lp:~asmaam/ubuntu/+source/linux-bluefield

Recent commits

e1552bb... by Krzysztof Kozlowski <email address hidden>

gpio: mlxbf3: use capital "OR" for multiple licenses in SPDX

BugLink: https://bugs.launchpad.net/bugs/2033439

Documentation/process/license-rules.rst and checkpatch expect the SPDX
identifier syntax for multiple licenses to use capital "OR". Correct it
to keep consistent format and avoid copy-paste issues.

Signed-off-by: Krzysztof Kozlowski <email address hidden>
Reviewed-by: Andy Shevchenko <email address hidden>
Signed-off-by: Bartosz Golaszewski <email address hidden>
(cherry picked from commit 1d2a22fa6d2511d5871d87c15b4fe7a944fe3b2a)
Signed-off-by: Asmaa Mnebhi <email address hidden>

ccfed1a... by Asmaa Mnebhi <email address hidden>

gpio: mlxbf3: Support add_pin_ranges()

BugLink: https://bugs.launchpad.net/bugs/2033439

Support add_pin_ranges() so that pinctrl_gpio_request() can be called.
The GPIO value is not modified when the user runs the "gpioset" tool.
This is because when gpiochip_generic_request is invoked by the gpio-mlxbf3
driver, "pin_ranges" is empty so it skips "pinctrl_gpio_request()".
pinctrl_gpio_request() is essential in the code flow because it changes the
mux value so that software has control over modifying the GPIO value.
Adding add_pin_ranges() creates a dependency on the pinctrl-mlxbf3.c driver.

Fixes: cd33f216d24 ("gpio: mlxbf3: Add gpio driver support")
Signed-off-by: Asmaa Mnebhi <email address hidden>
Reviewed-by: Andy Shevchenko <email address hidden>
Reviewed-by: Linus Walleij <email address hidden>
Signed-off-by: Bartosz Golaszewski <email address hidden>
(cherry picked from commit 38a700efc51080c7184f71edbf5e49561da9754f)
Signed-off-by: Asmaa Mnebhi <email address hidden>

7c0869d... by Asmaa Mnebhi <email address hidden>

gpio: mlxbf3: Add gpio driver support

BugLink: https://bugs.launchpad.net/bugs/2033439

Add support for the BlueField-3 SoC GPIO driver.
This driver configures and handles GPIO interrupts. It also enables a user
to manipulate certain GPIO pins via libgpiod tools or other kernel drivers.
The usables pins are defined via the "gpio-reserved-ranges" property.

Signed-off-by: Asmaa Mnebhi <email address hidden>
Reviewed-by: Andy Shevchenko <email address hidden>
Reviewed-by: Linus Walleij <email address hidden>
Signed-off-by: Bartosz Golaszewski <email address hidden>
(backported from commit cd33f216d241520385a5166ae73a0771197a9f0b)
Signed-off-by: Asmaa Mnebhi <email address hidden>

ce6079d... by Asmaa Mnebhi <email address hidden>

pinctrl: mlxbf3: Remove gpio_disable_free()

BugLink: https://bugs.launchpad.net/bugs/2033439

Remove support for gpio_disable_free() because it is called when the libgpiod
command "gpioset" is invoked. This gives the GPIO control back to hardware which
cancels out the effort to set the GPIO value.

Reminder of the code flow to change a GPIO value from software:
1) All GPIOs are controlled by hardware by default
2) To change the GPIO value, enable software control via a mux.
3) Once software has control over the GPIO pin, the gpio-mlxbf3 driver
   will be able to change the direction and value of the GPIO.

When the user runs "gpioset gpiochip0 0=0" for example, the gpio
pin value should change from 1 to 0. In this case, mlxbf3_gpio_request_enable()
is called via gpiochip_generic_request(). The latter switches GPIO control from
hardware to software. Then the GPIO value is changed from 1 to 0. However,
gpio_disable_free() is also called which changes control back to hardware
which changes the GPIO value back to 1.

Fixes: d11f932808dc ("pinctrl: mlxbf3: Add pinctrl driver support")
Signed-off-by: Asmaa Mnebhi <email address hidden>
Reviewed-by: Linus Walleij <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Linus Walleij <email address hidden>
(cherry picked from commit 69657e60b8a7faf83b583c658ec7ce1f5ece9eb3)
Signed-off-by: Asmaa Mnebhi <email address hidden>

17b1459... by Krzysztof Kozlowski <email address hidden>

pinctrl: use capital "OR" for multiple licenses in SPDX

BugLink: https://bugs.launchpad.net/bugs/2033439

Documentation/process/license-rules.rst and checkpatch expect the SPDX
identifier syntax for multiple licenses to use capital "OR". Correct it
to keep consistent format and avoid copy-paste issues.

Correct also the placement of SPDX identifier in pinctrl-meson-axg
files:

  WARNING: Misplaced SPDX-License-Identifier tag - use line 1 instead

Signed-off-by: Krzysztof Kozlowski <email address hidden>
Reviewed-by: Neil Armstrong <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Linus Walleij <email address hidden>
(cherry picked from commit c0f84760b01e8d8b59e9e186a4f7fa8f081a4488)
Signed-off-by: Asmaa Mnebhi <email address hidden>

cbf17e9... by Tom Rix <email address hidden>

pinctrl: mlxbf3: set varaiable mlxbf3_pmx_funcs storage-class-specifier to static

BugLink: https://bugs.launchpad.net/bugs/2033439

smatch reports
drivers/pinctrl/pinctrl-mlxbf3.c:162:20: warning: symbol
  'mlxbf3_pmx_funcs' was not declared. Should it be static?

This variable is only used in one file so it should be static.

Signed-off-by: Tom Rix <email address hidden>
Link: https://<email address hidden>
Signed-off-by: Linus Walleij <email address hidden>
(cherry picked from commit 743d3336029ffe2bb38e982a3b572ced243c6d43)
Signed-off-by: Asmaa Mnebhi <email address hidden>

232e8ff... by Asmaa Mnebhi <email address hidden>

Revert "UBUNTU: SAUCE: Support BlueField-3 GPIO driver"

BugLink: https://bugs.launchpad.net/bugs/2033439

This reverts commit d8ed16e1a9f7def537d8a8892e9f801b1a676148.

Signed-off-by: Asmaa Mnebhi <email address hidden>

0103563... by Asmaa Mnebhi <email address hidden>

Revert "UBUNTU: SAUCE: gpio: mlxbf3: Add gpio driver support"

BugLink: https://bugs.launchpad.net/bugs/2033439

This reverts commit 778c82d06e5ef7c1abc202139628c240a0c8b68f.

Signed-off-by: Asmaa Mnebhi <email address hidden>

3186ef6... by Asmaa Mnebhi <email address hidden>

UBUNTU: SAUCE: Revert fix the build for gpio-mlxbf[3] driver

BugLink: https://bugs.launchpad.net/bugs/2033439

This reverts commit df3c6a01efaa657dc84cb5675620ac3780c187c7 for
gpio-mlxbf3.c driver only. The driver will be removed in a
separate commit.

Signed-off-by: Asmaa Mnebhi <email address hidden>

1d8d5ce... by Bartlomiej Zolnierkiewicz

UBUNTU: Ubuntu-bluefield-5.15.0-1022.24

Signed-off-by: Bartlomiej Zolnierkiewicz <email address hidden>