Skip to content

Commit 71ebd1a

Browse files
committed
Merge tag 'pinctrl-v4.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij: "Here are some overly ripe pin control fixes for the v4.2 series. They got delayed because of various crap commits and having to clean and rinse the patch stack a few times. Now they are however looking good. - some dead defines dropped from the Samsung driver, was targeted for -rc2 but got delayed - drop the strict mode from abx500, this was too strict - fix the R-Car sparse IRQs code to work as intended - fix the IRQ code for the pinctrl-single GPIO backend to not enforce threaded IRQs - clear the latched events/IRQs for the Broadcom BCM2835 driver - fix up debugfs for the Freescale imx1 driver - fix a typo bug in the Schmitt Trigger setup in the LPC18xx driver" * tag 'pinctrl-v4.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: lpc18xx: fix schmitt trigger setup Subject: pinctrl: imx1-core: Fix debug output in .pin_config_set callback pinctrl: bcm2835: Clear the event latch register when disabling interrupts pinctrl: single: ensure pcs irq will not be forced threaded sh-pfc: fix sparse GPIOs for R-Car SoCs pinctrl: abx500: remove strict mode pinctrl: samsung: Remove old unused defines
2 parents 8426fb3 + 681ccdc commit 71ebd1a

7 files changed

Lines changed: 8 additions & 12 deletions

File tree

‎drivers/pinctrl/bcm/pinctrl-bcm2835.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,8 @@ static void bcm2835_gpio_irq_disable(struct irq_data *data)
473473

474474
spin_lock_irqsave(&pc->irq_lock[bank], flags);
475475
bcm2835_gpio_irq_config(pc, gpio, false);
476+
/* Clear events that were latched prior to clearing event sources */
477+
bcm2835_gpio_set_bit(pc, GPEDS0, gpio);
476478
clear_bit(offset, &pc->enabled_irq_map[bank]);
477479
spin_unlock_irqrestore(&pc->irq_lock[bank], flags);
478480
}

‎drivers/pinctrl/freescale/pinctrl-imx1-core.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,13 @@ static int imx1_pinconf_set(struct pinctrl_dev *pctldev,
403403
unsigned num_configs)
404404
{
405405
struct imx1_pinctrl *ipctl = pinctrl_dev_get_drvdata(pctldev);
406-
const struct imx1_pinctrl_soc_info *info = ipctl->info;
407406
int i;
408407

409408
for (i = 0; i != num_configs; ++i) {
410409
imx1_write_bit(ipctl, pin_id, configs[i] & 0x01, MX1_PUEN);
411410

412411
dev_dbg(ipctl->dev, "pinconf set pullup pin %s\n",
413-
info->pins[pin_id].name);
412+
pin_desc_get(pctldev, pin_id)->name);
414413
}
415414

416415
return 0;

‎drivers/pinctrl/nomadik/pinctrl-abx500.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,6 @@ static const struct pinmux_ops abx500_pinmux_ops = {
787787
.set_mux = abx500_pmx_set,
788788
.gpio_request_enable = abx500_gpio_request_enable,
789789
.gpio_disable_free = abx500_gpio_disable_free,
790-
.strict = true,
791790
};
792791

793792
static int abx500_get_groups_cnt(struct pinctrl_dev *pctldev)

‎drivers/pinctrl/pinctrl-lpc18xx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static int lpc18xx_pconf_set_i2c0(struct pinctrl_dev *pctldev,
823823
break;
824824

825825
case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
826-
if (param)
826+
if (param_val)
827827
*reg &= ~(LPC18XX_SCU_I2C0_ZIF << shift);
828828
else
829829
*reg |= (LPC18XX_SCU_I2C0_ZIF << shift);
@@ -876,7 +876,7 @@ static int lpc18xx_pconf_set_pin(struct pinctrl_dev *pctldev,
876876
break;
877877

878878
case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
879-
if (param)
879+
if (param_val)
880880
*reg &= ~LPC18XX_SCU_PIN_ZIF;
881881
else
882882
*reg |= LPC18XX_SCU_PIN_ZIF;

‎drivers/pinctrl/pinctrl-single.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1760,7 +1760,8 @@ static int pcs_irq_init_chained_handler(struct pcs_device *pcs,
17601760
int res;
17611761

17621762
res = request_irq(pcs_soc->irq, pcs_irq_handler,
1763-
IRQF_SHARED | IRQF_NO_SUSPEND,
1763+
IRQF_SHARED | IRQF_NO_SUSPEND |
1764+
IRQF_NO_THREAD,
17641765
name, pcs_soc);
17651766
if (res) {
17661767
pcs_soc->irq = -1;

‎drivers/pinctrl/samsung/pinctrl-samsung.c‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@
3333
#include "../core.h"
3434
#include "pinctrl-samsung.h"
3535

36-
#define GROUP_SUFFIX "-grp"
37-
#define GSUFFIX_LEN sizeof(GROUP_SUFFIX)
38-
#define FUNCTION_SUFFIX "-mux"
39-
#define FSUFFIX_LEN sizeof(FUNCTION_SUFFIX)
40-
4136
/* list of all possible config options supported */
4237
static struct pin_config {
4338
const char *property;

‎drivers/pinctrl/sh-pfc/sh_pfc.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ struct sh_pfc_soc_info {
224224

225225
/* PINMUX_GPIO_GP_ALL - Expand to a list of sh_pfc_pin entries */
226226
#define _GP_GPIO(bank, _pin, _name, sfx) \
227-
[(bank * 32) + _pin] = { \
227+
{ \
228228
.pin = (bank * 32) + _pin, \
229229
.name = __stringify(_name), \
230230
.enum_id = _name##_DATA, \

0 commit comments

Comments
 (0)