Lines Matching full:pctrl

101 static struct intel_community *intel_get_community(struct intel_pinctrl *pctrl,  in intel_get_community()  argument
107 for (i = 0; i < pctrl->ncommunities; i++) { in intel_get_community()
108 community = &pctrl->communities[i]; in intel_get_community()
114 dev_warn(pctrl->dev, "failed to find community for pin %u\n", pin); in intel_get_community()
134 static void __iomem *intel_get_padcfg(struct intel_pinctrl *pctrl, in intel_get_padcfg() argument
141 community = intel_get_community(pctrl, pin); in intel_get_padcfg()
154 static bool intel_pad_owned_by_host(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_owned_by_host() argument
161 community = intel_get_community(pctrl, pin); in intel_pad_owned_by_host()
179 static bool intel_pad_acpi_mode(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_acpi_mode() argument
186 community = intel_get_community(pctrl, pin); in intel_pad_acpi_mode()
222 static int intel_pad_locked(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_locked() argument
230 community = intel_get_community(pctrl, pin); in intel_pad_locked()
260 static bool intel_pad_is_unlocked(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_is_unlocked() argument
262 return (intel_pad_locked(pctrl, pin) & PAD_LOCKED) == PAD_UNLOCKED; in intel_pad_is_unlocked()
265 static bool intel_pad_usable(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pad_usable() argument
267 return intel_pad_owned_by_host(pctrl, pin) && intel_pad_is_unlocked(pctrl, pin); in intel_pad_usable()
272 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_get_groups_count() local
274 return pctrl->soc->ngroups; in intel_get_groups_count()
280 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_get_group_name() local
282 return pctrl->soc->groups[group].grp.name; in intel_get_group_name()
288 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_get_group_pins() local
290 *pins = pctrl->soc->groups[group].grp.pins; in intel_get_group_pins()
291 *npins = pctrl->soc->groups[group].grp.npins; in intel_get_group_pins()
298 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_pin_dbg_show() local
304 if (!intel_pad_owned_by_host(pctrl, pin)) { in intel_pin_dbg_show()
309 cfg0 = readl(intel_get_padcfg(pctrl, pin, PADCFG0)); in intel_pin_dbg_show()
310 cfg1 = readl(intel_get_padcfg(pctrl, pin, PADCFG1)); in intel_pin_dbg_show()
321 padcfg = intel_get_padcfg(pctrl, pin, PADCFG2); in intel_pin_dbg_show()
325 locked = intel_pad_locked(pctrl, pin); in intel_pin_dbg_show()
326 acpi = intel_pad_acpi_mode(pctrl, pin); in intel_pin_dbg_show()
355 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_get_functions_count() local
357 return pctrl->soc->nfunctions; in intel_get_functions_count()
363 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_get_function_name() local
365 return pctrl->soc->functions[function].name; in intel_get_function_name()
373 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_get_function_groups() local
375 *groups = pctrl->soc->functions[function].groups; in intel_get_function_groups()
376 *ngroups = pctrl->soc->functions[function].ngroups; in intel_get_function_groups()
383 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_pinmux_set_mux() local
384 const struct intel_pingroup *grp = &pctrl->soc->groups[group]; in intel_pinmux_set_mux()
388 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_pinmux_set_mux()
395 if (!intel_pad_usable(pctrl, grp->grp.pins[i])) { in intel_pinmux_set_mux()
396 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_pinmux_set_mux()
406 padcfg0 = intel_get_padcfg(pctrl, grp->grp.pins[i], PADCFG0); in intel_pinmux_set_mux()
419 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_pinmux_set_mux()
474 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_gpio_request_enable() local
478 padcfg0 = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_gpio_request_enable()
480 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_gpio_request_enable()
482 if (!intel_pad_owned_by_host(pctrl, pin)) { in intel_gpio_request_enable()
483 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_request_enable()
487 if (!intel_pad_is_unlocked(pctrl, pin)) { in intel_gpio_request_enable()
488 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_request_enable()
499 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_request_enable()
505 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_request_enable()
514 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_gpio_set_direction() local
518 padcfg0 = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_gpio_set_direction()
520 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_gpio_set_direction()
522 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_set_direction()
536 static int intel_config_get_pull(struct intel_pinctrl *pctrl, unsigned int pin, in intel_config_get_pull() argument
544 community = intel_get_community(pctrl, pin); in intel_config_get_pull()
545 padcfg1 = intel_get_padcfg(pctrl, pin, PADCFG1); in intel_config_get_pull()
547 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_config_get_pull()
549 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_config_get_pull()
612 static int intel_config_get_debounce(struct intel_pinctrl *pctrl, unsigned int pin, in intel_config_get_debounce() argument
620 padcfg2 = intel_get_padcfg(pctrl, pin, PADCFG2); in intel_config_get_debounce()
624 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_config_get_debounce()
626 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_config_get_debounce()
639 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_config_get() local
644 if (!intel_pad_owned_by_host(pctrl, pin)) in intel_config_get()
651 ret = intel_config_get_pull(pctrl, pin, param, &arg); in intel_config_get()
657 ret = intel_config_get_debounce(pctrl, pin, param, &arg); in intel_config_get()
670 static int intel_config_set_pull(struct intel_pinctrl *pctrl, unsigned int pin, in intel_config_set_pull() argument
681 community = intel_get_community(pctrl, pin); in intel_config_set_pull()
682 padcfg1 = intel_get_padcfg(pctrl, pin, PADCFG1); in intel_config_set_pull()
684 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_config_set_pull()
759 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_config_set_pull()
764 static int intel_config_set_debounce(struct intel_pinctrl *pctrl, in intel_config_set_debounce() argument
771 padcfg2 = intel_get_padcfg(pctrl, pin, PADCFG2); in intel_config_set_debounce()
775 padcfg0 = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_config_set_debounce()
777 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_config_set_debounce()
791 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_config_set_debounce()
804 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_config_set_debounce()
812 struct intel_pinctrl *pctrl = pinctrl_dev_get_drvdata(pctldev); in intel_config_set() local
815 if (!intel_pad_usable(pctrl, pin)) in intel_config_set()
823 ret = intel_config_set_pull(pctrl, pin, configs[i]); in intel_config_set()
829 ret = intel_config_set_debounce(pctrl, pin, in intel_config_set()
858 * @pctrl: Pinctrl structure
870 static int intel_gpio_to_pin(struct intel_pinctrl *pctrl, unsigned int offset, in intel_gpio_to_pin() argument
876 for (i = 0; i < pctrl->ncommunities; i++) { in intel_gpio_to_pin()
877 const struct intel_community *comm = &pctrl->communities[i]; in intel_gpio_to_pin()
906 * @pctrl: Pinctrl structure
913 static __maybe_unused int intel_pin_to_gpio(struct intel_pinctrl *pctrl, int pin) in intel_pin_to_gpio() argument
918 community = intel_get_community(pctrl, pin); in intel_pin_to_gpio()
931 struct intel_pinctrl *pctrl = gpiochip_get_data(chip); in intel_gpio_get() local
936 pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL); in intel_gpio_get()
940 reg = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_gpio_get()
954 struct intel_pinctrl *pctrl = gpiochip_get_data(chip); in intel_gpio_set() local
960 pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL); in intel_gpio_set()
964 reg = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_gpio_set()
968 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_gpio_set()
975 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_set()
980 struct intel_pinctrl *pctrl = gpiochip_get_data(chip); in intel_gpio_get_direction() local
986 pin = intel_gpio_to_pin(pctrl, offset, NULL, NULL); in intel_gpio_get_direction()
990 reg = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_gpio_get_direction()
994 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_gpio_get_direction()
996 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_get_direction()
1033 struct intel_pinctrl *pctrl = gpiochip_get_data(gc); in intel_gpio_irq_ack() local
1038 pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), &community, &padgrp); in intel_gpio_irq_ack()
1046 raw_spin_lock(&pctrl->lock); in intel_gpio_irq_ack()
1048 raw_spin_unlock(&pctrl->lock); in intel_gpio_irq_ack()
1054 struct intel_pinctrl *pctrl = gpiochip_get_data(gc); in intel_gpio_irq_mask_unmask() local
1059 pin = intel_gpio_to_pin(pctrl, hwirq, &community, &padgrp); in intel_gpio_irq_mask_unmask()
1072 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_gpio_irq_mask_unmask()
1083 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_irq_mask_unmask()
1108 struct intel_pinctrl *pctrl = gpiochip_get_data(gc); in intel_gpio_irq_type() local
1109 unsigned int pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), NULL, NULL); in intel_gpio_irq_type()
1114 reg = intel_get_padcfg(pctrl, pin, PADCFG0); in intel_gpio_irq_type()
1123 if (intel_pad_acpi_mode(pctrl, pin)) { in intel_gpio_irq_type()
1124 dev_warn(pctrl->dev, "pin %u cannot be used as IRQ\n", pin); in intel_gpio_irq_type()
1128 raw_spin_lock_irqsave(&pctrl->lock, flags); in intel_gpio_irq_type()
1157 raw_spin_unlock_irqrestore(&pctrl->lock, flags); in intel_gpio_irq_type()
1165 struct intel_pinctrl *pctrl = gpiochip_get_data(gc); in intel_gpio_irq_wake() local
1166 unsigned int pin = intel_gpio_to_pin(pctrl, irqd_to_hwirq(d), NULL, NULL); in intel_gpio_irq_wake()
1169 enable_irq_wake(pctrl->irq); in intel_gpio_irq_wake()
1171 disable_irq_wake(pctrl->irq); in intel_gpio_irq_wake()
1173 dev_dbg(pctrl->dev, "%sable wake for pin %u\n", on ? "en" : "dis", pin); in intel_gpio_irq_wake()
1188 static int intel_gpio_community_irq_handler(struct intel_pinctrl *pctrl, in intel_gpio_community_irq_handler() argument
1191 struct gpio_chip *gc = &pctrl->chip; in intel_gpio_community_irq_handler()
1199 raw_spin_lock(&pctrl->lock); in intel_gpio_community_irq_handler()
1206 raw_spin_unlock(&pctrl->lock); in intel_gpio_community_irq_handler()
1228 struct intel_pinctrl *pctrl = data; in intel_gpio_irq() local
1233 for (i = 0; i < pctrl->ncommunities; i++) { in intel_gpio_irq()
1234 community = &pctrl->communities[i]; in intel_gpio_irq()
1235 ret += intel_gpio_community_irq_handler(pctrl, community); in intel_gpio_irq()
1241 static void intel_gpio_irq_init(struct intel_pinctrl *pctrl) in intel_gpio_irq_init() argument
1245 for (i = 0; i < pctrl->ncommunities; i++) { in intel_gpio_irq_init()
1250 community = &pctrl->communities[i]; in intel_gpio_irq_init()
1263 struct intel_pinctrl *pctrl = gpiochip_get_data(gc); in intel_gpio_irq_init_hw() local
1269 intel_gpio_irq_init(pctrl); in intel_gpio_irq_init_hw()
1274 static int intel_gpio_add_community_ranges(struct intel_pinctrl *pctrl, in intel_gpio_add_community_ranges() argument
1285 ret = gpiochip_add_pin_range(&pctrl->chip, dev_name(pctrl->dev), in intel_gpio_add_community_ranges()
1297 struct intel_pinctrl *pctrl = gpiochip_get_data(gc); in intel_gpio_add_pin_ranges() local
1300 for (i = 0; i < pctrl->ncommunities; i++) { in intel_gpio_add_pin_ranges()
1301 struct intel_community *community = &pctrl->communities[i]; in intel_gpio_add_pin_ranges()
1303 ret = intel_gpio_add_community_ranges(pctrl, community); in intel_gpio_add_pin_ranges()
1305 dev_err(pctrl->dev, "failed to add GPIO pin range\n"); in intel_gpio_add_pin_ranges()
1313 static unsigned int intel_gpio_ngpio(const struct intel_pinctrl *pctrl) in intel_gpio_ngpio() argument
1319 for (i = 0; i < pctrl->ncommunities; i++) { in intel_gpio_ngpio()
1320 community = &pctrl->communities[i]; in intel_gpio_ngpio()
1335 static int intel_gpio_probe(struct intel_pinctrl *pctrl, int irq) in intel_gpio_probe() argument
1340 pctrl->chip = intel_gpio_chip; in intel_gpio_probe()
1343 pctrl->chip.ngpio = intel_gpio_ngpio(pctrl); in intel_gpio_probe()
1344 pctrl->chip.label = dev_name(pctrl->dev); in intel_gpio_probe()
1345 pctrl->chip.parent = pctrl->dev; in intel_gpio_probe()
1346 pctrl->chip.base = -1; in intel_gpio_probe()
1347 pctrl->chip.add_pin_ranges = intel_gpio_add_pin_ranges; in intel_gpio_probe()
1348 pctrl->irq = irq; in intel_gpio_probe()
1354 ret = devm_request_irq(pctrl->dev, irq, intel_gpio_irq, in intel_gpio_probe()
1356 dev_name(pctrl->dev), pctrl); in intel_gpio_probe()
1358 dev_err(pctrl->dev, "failed to request interrupt\n"); in intel_gpio_probe()
1363 girq = &pctrl->chip.irq; in intel_gpio_probe()
1372 ret = devm_gpiochip_add_data(pctrl->dev, &pctrl->chip, pctrl); in intel_gpio_probe()
1374 dev_err(pctrl->dev, "failed to register gpiochip\n"); in intel_gpio_probe()
1381 static int intel_pinctrl_add_padgroups_by_gpps(struct intel_pinctrl *pctrl, in intel_pinctrl_add_padgroups_by_gpps() argument
1388 gpps = devm_kcalloc(pctrl->dev, ngpps, sizeof(*gpps), GFP_KERNEL); in intel_pinctrl_add_padgroups_by_gpps()
1421 static int intel_pinctrl_add_padgroups_by_size(struct intel_pinctrl *pctrl, in intel_pinctrl_add_padgroups_by_size() argument
1432 gpps = devm_kcalloc(pctrl->dev, ngpps, sizeof(*gpps), GFP_KERNEL); in intel_pinctrl_add_padgroups_by_size()
1463 static int intel_pinctrl_pm_init(struct intel_pinctrl *pctrl) in intel_pinctrl_pm_init() argument
1466 const struct intel_pinctrl_soc_data *soc = pctrl->soc; in intel_pinctrl_pm_init()
1471 pads = devm_kcalloc(pctrl->dev, soc->npins, sizeof(*pads), GFP_KERNEL); in intel_pinctrl_pm_init()
1475 communities = devm_kcalloc(pctrl->dev, pctrl->ncommunities, in intel_pinctrl_pm_init()
1481 for (i = 0; i < pctrl->ncommunities; i++) { in intel_pinctrl_pm_init()
1482 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_pm_init()
1485 intmask = devm_kcalloc(pctrl->dev, community->ngpps, in intel_pinctrl_pm_init()
1492 hostown = devm_kcalloc(pctrl->dev, community->ngpps, in intel_pinctrl_pm_init()
1500 pctrl->context.pads = pads; in intel_pinctrl_pm_init()
1501 pctrl->context.communities = communities; in intel_pinctrl_pm_init()
1510 struct intel_pinctrl *pctrl; in intel_pinctrl_probe() local
1513 pctrl = devm_kzalloc(&pdev->dev, sizeof(*pctrl), GFP_KERNEL); in intel_pinctrl_probe()
1514 if (!pctrl) in intel_pinctrl_probe()
1517 pctrl->dev = &pdev->dev; in intel_pinctrl_probe()
1518 pctrl->soc = soc_data; in intel_pinctrl_probe()
1519 raw_spin_lock_init(&pctrl->lock); in intel_pinctrl_probe()
1525 pctrl->ncommunities = pctrl->soc->ncommunities; in intel_pinctrl_probe()
1526 pctrl->communities = devm_kcalloc(&pdev->dev, pctrl->ncommunities, in intel_pinctrl_probe()
1527 sizeof(*pctrl->communities), GFP_KERNEL); in intel_pinctrl_probe()
1528 if (!pctrl->communities) in intel_pinctrl_probe()
1531 for (i = 0; i < pctrl->ncommunities; i++) { in intel_pinctrl_probe()
1532 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_probe()
1537 *community = pctrl->soc->communities[i]; in intel_pinctrl_probe()
1587 ret = intel_pinctrl_add_padgroups_by_gpps(pctrl, community); in intel_pinctrl_probe()
1589 ret = intel_pinctrl_add_padgroups_by_size(pctrl, community); in intel_pinctrl_probe()
1598 ret = intel_pinctrl_pm_init(pctrl); in intel_pinctrl_probe()
1602 pctrl->pctldesc = intel_pinctrl_desc; in intel_pinctrl_probe()
1603 pctrl->pctldesc.name = dev_name(&pdev->dev); in intel_pinctrl_probe()
1604 pctrl->pctldesc.pins = pctrl->soc->pins; in intel_pinctrl_probe()
1605 pctrl->pctldesc.npins = pctrl->soc->npins; in intel_pinctrl_probe()
1607 pctrl->pctldev = devm_pinctrl_register(&pdev->dev, &pctrl->pctldesc, in intel_pinctrl_probe()
1608 pctrl); in intel_pinctrl_probe()
1609 if (IS_ERR(pctrl->pctldev)) { in intel_pinctrl_probe()
1611 return PTR_ERR(pctrl->pctldev); in intel_pinctrl_probe()
1614 ret = intel_gpio_probe(pctrl, irq); in intel_pinctrl_probe()
1618 platform_set_drvdata(pdev, pctrl); in intel_pinctrl_probe()
1679 static bool intel_pinctrl_should_save(struct intel_pinctrl *pctrl, unsigned int pin) in intel_pinctrl_should_save() argument
1681 const struct pin_desc *pd = pin_desc_get(pctrl->pctldev, pin); in intel_pinctrl_should_save()
1684 if (!pd || !intel_pad_usable(pctrl, pin)) in intel_pinctrl_should_save()
1694 gpiochip_line_is_irq(&pctrl->chip, intel_pin_to_gpio(pctrl, pin))) in intel_pinctrl_should_save()
1711 value = readl(intel_get_padcfg(pctrl, pin, PADCFG0)); in intel_pinctrl_should_save()
1721 struct intel_pinctrl *pctrl = dev_get_drvdata(dev); in intel_pinctrl_suspend_noirq() local
1726 pads = pctrl->context.pads; in intel_pinctrl_suspend_noirq()
1727 for (i = 0; i < pctrl->soc->npins; i++) { in intel_pinctrl_suspend_noirq()
1728 const struct pinctrl_pin_desc *desc = &pctrl->soc->pins[i]; in intel_pinctrl_suspend_noirq()
1732 if (!intel_pinctrl_should_save(pctrl, desc->number)) in intel_pinctrl_suspend_noirq()
1735 val = readl(intel_get_padcfg(pctrl, desc->number, PADCFG0)); in intel_pinctrl_suspend_noirq()
1737 val = readl(intel_get_padcfg(pctrl, desc->number, PADCFG1)); in intel_pinctrl_suspend_noirq()
1740 padcfg = intel_get_padcfg(pctrl, desc->number, PADCFG2); in intel_pinctrl_suspend_noirq()
1745 communities = pctrl->context.communities; in intel_pinctrl_suspend_noirq()
1746 for (i = 0; i < pctrl->ncommunities; i++) { in intel_pinctrl_suspend_noirq()
1747 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_suspend_noirq()
1778 static void intel_restore_hostown(struct intel_pinctrl *pctrl, unsigned int c, in intel_restore_hostown() argument
1781 const struct intel_community *community = &pctrl->communities[c]; in intel_restore_hostown()
1783 struct device *dev = pctrl->dev; in intel_restore_hostown()
1791 for_each_requested_gpio_in_range(&pctrl->chip, i, padgrp->gpio_base, padgrp->size, dummy) in intel_restore_hostown()
1800 static void intel_restore_intmask(struct intel_pinctrl *pctrl, unsigned int c, in intel_restore_intmask() argument
1803 struct device *dev = pctrl->dev; in intel_restore_intmask()
1811 static void intel_restore_padcfg(struct intel_pinctrl *pctrl, unsigned int pin, in intel_restore_padcfg() argument
1816 struct device *dev = pctrl->dev; in intel_restore_padcfg()
1819 padcfg = intel_get_padcfg(pctrl, pin, reg); in intel_restore_padcfg()
1831 struct intel_pinctrl *pctrl = dev_get_drvdata(dev); in intel_pinctrl_resume_noirq() local
1837 intel_gpio_irq_init(pctrl); in intel_pinctrl_resume_noirq()
1839 pads = pctrl->context.pads; in intel_pinctrl_resume_noirq()
1840 for (i = 0; i < pctrl->soc->npins; i++) { in intel_pinctrl_resume_noirq()
1841 const struct pinctrl_pin_desc *desc = &pctrl->soc->pins[i]; in intel_pinctrl_resume_noirq()
1843 if (!intel_pinctrl_should_save(pctrl, desc->number)) in intel_pinctrl_resume_noirq()
1846 intel_restore_padcfg(pctrl, desc->number, PADCFG0, pads[i].padcfg0); in intel_pinctrl_resume_noirq()
1847 intel_restore_padcfg(pctrl, desc->number, PADCFG1, pads[i].padcfg1); in intel_pinctrl_resume_noirq()
1848 intel_restore_padcfg(pctrl, desc->number, PADCFG2, pads[i].padcfg2); in intel_pinctrl_resume_noirq()
1851 communities = pctrl->context.communities; in intel_pinctrl_resume_noirq()
1852 for (i = 0; i < pctrl->ncommunities; i++) { in intel_pinctrl_resume_noirq()
1853 struct intel_community *community = &pctrl->communities[i]; in intel_pinctrl_resume_noirq()
1859 intel_restore_intmask(pctrl, i, base, gpp, communities[i].intmask[gpp]); in intel_pinctrl_resume_noirq()
1863 intel_restore_hostown(pctrl, i, base, gpp, communities[i].hostown[gpp]); in intel_pinctrl_resume_noirq()