History

irq: Fix typos in comments

Fix ~36 single-word typos in the IRQ, irqchip and irqdomain code comments.

Ingo Molnar committed 5 years ago

Commit a359f751 parent c93a5e223 files · +36 −36Browse files

Unified · Split

23 files
  1. drivers/irqchip/irq-aspeed-vic.c +2 −2
  2. drivers/irqchip/irq-bcm7120-l2.c +1 −1
  3. drivers/irqchip/irq-csky-apb-intc.c +1 −1
  4. drivers/irqchip/irq-gic-v2m.c +1 −1
  5. drivers/irqchip/irq-gic-v3-its.c +5 −5
  6. drivers/irqchip/irq-gic-v3.c +1 −1
  7. drivers/irqchip/irq-loongson-pch-pic.c +1 −1
  8. drivers/irqchip/irq-meson-gpio.c +1 −1
  9. drivers/irqchip/irq-mtk-cirq.c +1 −1
  10. drivers/irqchip/irq-mxs.c +2 −2
  11. drivers/irqchip/irq-sun4i.c +1 −1
  12. drivers/irqchip/irq-ti-sci-inta.c +1 −1
  13. drivers/irqchip/irq-vic.c +2 −2
  14. drivers/irqchip/irq-xilinx-intc.c +1 −1
  15. include/linux/irq.h +2 −2
  16. include/linux/irqdesc.h +1 −1
  17. kernel/irq/chip.c +1 −1
  18. kernel/irq/dummychip.c +1 −1
  19. kernel/irq/irqdesc.c +1 −1
  20. kernel/irq/irqdomain.c +4 −4
  21. kernel/irq/manage.c +3 −3
  22. kernel/irq/msi.c +1 −1
  23. kernel/irq/timings.c +1 −1
drivers/irqchip/irq-aspeed-vic.c+2−2
@@ -71,7 +71,7 @@ static void vic_init_hw(struct aspeed_vic *vic) · 70 unmodified lines
7171 writel(0, vic->base + AVIC_INT_SELECT);
7272 writel(0, vic->base + AVIC_INT_SELECT + 4);
7373
74− /* Some interrupts have a programable high/low level trigger
74+ /* Some interrupts have a programmable high/low level trigger
7575 * (4 GPIO direct inputs), for now we assume this was configured
7676 * by firmware. We read which ones are edge now.
7777 */
@@ -203,7 +203,7 @@ static int __init avic_of_init(struct device_node *node, · 125 unmodified lines
203203 }
204204 vic->base = regs;
205205
206− /* Initialize soures, all masked */
206+ /* Initialize sources, all masked */
207207 vic_init_hw(vic);
208208
209209 /* Ready to receive interrupts */
drivers/irqchip/irq-bcm7120-l2.c+1−1
@@ -309,7 +309,7 @@ static int __init bcm7120_l2_intc_probe(struct device_node *dn, · 308 unmodified lines
309309
310310 if (data->can_wake) {
311311 /* This IRQ chip can wake the system, set all
312− * relevant child interupts in wake_enabled mask
312+ * relevant child interrupts in wake_enabled mask
313313 */
314314 gc->wake_enabled = 0xffffffff;
315315 gc->wake_enabled &= ~gc->unused;
drivers/irqchip/irq-csky-apb-intc.c+1−1
@@ -176,7 +176,7 @@ gx_intc_init(struct device_node *node, struct device_node *parent) · 175 unmodified lines
176176 writel(0x0, reg_base + GX_INTC_NEN63_32);
177177
178178 /*
179− * Initial mask reg with all unmasked, because we only use enalbe reg
179+ * Initial mask reg with all unmasked, because we only use enable reg
180180 */
181181 writel(0x0, reg_base + GX_INTC_NMASK31_00);
182182 writel(0x0, reg_base + GX_INTC_NMASK63_32);
drivers/irqchip/irq-gic-v2m.c+1−1
@@ -371,7 +371,7 @@ static int __init gicv2m_init_one(struct fwnode_handle *fwnode, · 370 unmodified lines
371371 * the MSI data is the absolute value within the range from
372372 * spi_start to (spi_start + num_spis).
373373 *
374− * Broadom NS2 GICv2m implementation has an erratum where the MSI data
374+ * Broadcom NS2 GICv2m implementation has an erratum where the MSI data
375375 * is 'spi_number - 32'
376376 *
377377 * Reading that register fails on the Graviton implementation
drivers/irqchip/irq-gic-v3-its.c+5−5
@@ -1492,7 +1492,7 @@ static void its_vlpi_set_doorbell(struct irq_data *d, bool enable) · 1491 unmodified lines
14921492 *
14931493 * Ideally, we'd issue a VMAPTI to set the doorbell to its LPI
14941494 * value or to 1023, depending on the enable bit. But that
1495− * would be issueing a mapping for an /existing/ DevID+EventID
1495+ * would be issuing a mapping for an /existing/ DevID+EventID
14961496 * pair, which is UNPREDICTABLE. Instead, let's issue a VMOVI
14971497 * to the /same/ vPE, using this opportunity to adjust the
14981498 * doorbell. Mouahahahaha. We loves it, Precious.
@@ -3122,7 +3122,7 @@ static void its_cpu_init_lpis(void) · 1623 unmodified lines
31223122
31233123 /*
31243124 * It's possible for CPU to receive VLPIs before it is
3125− * sheduled as a vPE, especially for the first CPU, and the
3125+ * scheduled as a vPE, especially for the first CPU, and the
31263126 * VLPI with INTID larger than 2^(IDbits+1) will be considered
31273127 * as out of range and dropped by GIC.
31283128 * So we initialize IDbits to known value to avoid VLPI drop.
@@ -3616,7 +3616,7 @@ static void its_irq_domain_free(struct irq_domain *domain, unsigned int virq, · 487 unmodified lines
36163616
36173617 /*
36183618 * If all interrupts have been freed, start mopping the
3619− * floor. This is conditionned on the device not being shared.
3619+ * floor. This is conditioned on the device not being shared.
36203620 */
36213621 if (!its_dev->shared &&
36223622 bitmap_empty(its_dev->event_map.lpi_map,
@@ -4194,7 +4194,7 @@ static int its_sgi_set_affinity(struct irq_data *d, · 571 unmodified lines
41944194 {
41954195 /*
41964196 * There is no notion of affinity for virtual SGIs, at least
4197− * not on the host (since they can only be targetting a vPE).
4197+ * not on the host (since they can only be targeting a vPE).
41984198 * Tell the kernel we've done whatever it asked for.
41994199 */
42004200 irq_data_update_effective_affinity(d, mask_val);
@@ -4239,7 +4239,7 @@ static int its_sgi_get_irqchip_state(struct irq_data *d, · 38 unmodified lines
42394239 /*
42404240 * Locking galore! We can race against two different events:
42414241 *
4242− * - Concurent vPE affinity change: we must make sure it cannot
4242+ * - Concurrent vPE affinity change: we must make sure it cannot
42434243 * happen, or we'll talk to the wrong redistributor. This is
42444244 * identical to what happens with vLPIs.
42454245 *
drivers/irqchip/irq-gic-v3.c+1−1
@@ -1379,7 +1379,7 @@ static int gic_irq_domain_translate(struct irq_domain *d, · 1378 unmodified lines
13791379
13801380 /*
13811381 * Make it clear that broken DTs are... broken.
1382− * Partitionned PPIs are an unfortunate exception.
1382+ * Partitioned PPIs are an unfortunate exception.
13831383 */
13841384 WARN_ON(*type == IRQ_TYPE_NONE &&
13851385 fwspec->param[0] != GIC_IRQ_TYPE_PARTITION);
drivers/irqchip/irq-loongson-pch-pic.c+1−1
@@ -163,7 +163,7 @@ static void pch_pic_reset(struct pch_pic *priv) · 162 unmodified lines
163163 int i;
164164
165165 for (i = 0; i < PIC_COUNT; i++) {
166− /* Write vectore ID */
166+ /* Write vectored ID */
167167 writeb(priv->ht_vec_base + i, priv->base + PCH_INT_HTVEC(i));
168168 /* Hardcode route to HT0 Lo */
169169 writeb(1, priv->base + PCH_INT_ROUTE(i));
drivers/irqchip/irq-meson-gpio.c+1−1
@@ -227,7 +227,7 @@ meson_gpio_irq_request_channel(struct meson_gpio_irq_controller *ctl, · 226 unmodified lines
227227
228228 /*
229229 * Get the hwirq number assigned to this channel through
230− * a pointer the channel_irq table. The added benifit of this
230+ * a pointer the channel_irq table. The added benefit of this
231231 * method is that we can also retrieve the channel index with
232232 * it, using the table base.
233233 */
drivers/irqchip/irq-mtk-cirq.c+1−1
@@ -217,7 +217,7 @@ static void mtk_cirq_resume(void) · 216 unmodified lines
217217 {
218218 u32 value;
219219
220− /* flush recored interrupts, will send signals to parent controller */
220+ /* flush recorded interrupts, will send signals to parent controller */
221221 value = readl_relaxed(cirq_data->base + CIRQ_CONTROL);
222222 writel_relaxed(value | CIRQ_FLUSH, cirq_data->base + CIRQ_CONTROL);
223223
drivers/irqchip/irq-mxs.c+2−2
@@ -58,7 +58,7 @@ struct icoll_priv { · 57 unmodified lines
5858 static struct icoll_priv icoll_priv;
5959 static struct irq_domain *icoll_domain;
6060
61−/* calculate bit offset depending on number of intterupt per register */
61+/* calculate bit offset depending on number of interrupt per register */
6262 static u32 icoll_intr_bitshift(struct irq_data *d, u32 bit)
6363 {
6464 /*
@@ -68,7 +68,7 @@ static u32 icoll_intr_bitshift(struct irq_data *d, u32 bit) · 3 unmodified lines
6868 return bit << ((d->hwirq & 3) << 3);
6969 }
7070
71−/* calculate mem offset depending on number of intterupt per register */
71+/* calculate mem offset depending on number of interrupt per register */
7272 static void __iomem *icoll_intr_reg(struct irq_data *d)
7373 {
7474 /* offset = hwirq / intr_per_reg * 0x10 */
drivers/irqchip/irq-sun4i.c+1−1
@@ -189,7 +189,7 @@ static void __exception_irq_entry sun4i_handle_irq(struct pt_regs *regs) · 188 unmodified lines
189189 * 3) spurious irq
190190 * So if we immediately get a reading of 0, check the irq-pending reg
191191 * to differentiate between 2 and 3. We only do this once to avoid
192− * the extra check in the common case of 1 hapening after having
192+ * the extra check in the common case of 1 happening after having
193193 * read the vector-reg once.
194194 */
195195 hwirq = readl(irq_ic_data->irq_base + SUN4I_IRQ_VECTOR_REG) >> 2;
drivers/irqchip/irq-ti-sci-inta.c+1−1
@@ -78,7 +78,7 @@ struct ti_sci_inta_vint_desc { · 77 unmodified lines
7878 * struct ti_sci_inta_irq_domain - Structure representing a TISCI based
7979 * Interrupt Aggregator IRQ domain.
8080 * @sci: Pointer to TISCI handle
81− * @vint: TISCI resource pointer representing IA inerrupts.
81+ * @vint: TISCI resource pointer representing IA interrupts.
8282 * @global_event: TISCI resource pointer representing global events.
8383 * @vint_list: List of the vints active in the system
8484 * @vint_mutex: Mutex to protect vint_list
drivers/irqchip/irq-vic.c+2−2
@@ -163,7 +163,7 @@ static struct syscore_ops vic_syscore_ops = { · 162 unmodified lines
163163 };
164164
165165 /**
166− * vic_pm_init - initicall to register VIC pm
166+ * vic_pm_init - initcall to register VIC pm
167167 *
168168 * This is called via late_initcall() to register
169169 * the resources for the VICs due to the early
@@ -397,7 +397,7 @@ static void __init vic_clear_interrupts(void __iomem *base) · 227 unmodified lines
397397 /*
398398 * The PL190 cell from ARM has been modified by ST to handle 64 interrupts.
399399 * The original cell has 32 interrupts, while the modified one has 64,
400− * replocating two blocks 0x00..0x1f in 0x20..0x3f. In that case
400+ * replicating two blocks 0x00..0x1f in 0x20..0x3f. In that case
401401 * the probe function is called twice, with base set to offset 000
402402 * and 020 within the page. We call this "second block".
403403 */
drivers/irqchip/irq-xilinx-intc.c+1−1
@@ -210,7 +210,7 @@ static int __init xilinx_intc_of_init(struct device_node *intc, · 209 unmodified lines
210210
211211 /*
212212 * Disable all external interrupts until they are
213− * explicity requested.
213+ * explicitly requested.
214214 */
215215 xintc_write(irqc, IER, 0);
216216
include/linux/irq.h+2−2
@@ -116,7 +116,7 @@ enum { · 115 unmodified lines
116116 * IRQ_SET_MASK_NOCPY - OK, chip did update irq_common_data.affinity
117117 * IRQ_SET_MASK_OK_DONE - Same as IRQ_SET_MASK_OK for core. Special code to
118118 * support stacked irqchips, which indicates skipping
119− * all descendent irqchips.
119+ * all descendant irqchips.
120120 */
121121 enum {
122122 IRQ_SET_MASK_OK = 0,
@@ -302,7 +302,7 @@ static inline bool irqd_is_level_type(struct irq_data *d) · 179 unmodified lines
302302
303303 /*
304304 * Must only be called of irqchip.irq_set_affinity() or low level
305− * hieararchy domain allocation functions.
305+ * hierarchy domain allocation functions.
306306 */
307307 static inline void irqd_set_single_target(struct irq_data *d)
308308 {
include/linux/irqdesc.h+1−1
@@ -32,7 +32,7 @@ struct pt_regs; · 31 unmodified lines
3232 * @last_unhandled: aging timer for unhandled count
3333 * @irqs_unhandled: stats field for spurious unhandled interrupts
3434 * @threads_handled: stats field for deferred spurious detection of threaded handlers
35− * @threads_handled_last: comparator field for deferred spurious detection of theraded handlers
35+ * @threads_handled_last: comparator field for deferred spurious detection of threaded handlers
3636 * @lock: locking for SMP
3737 * @affinity_hint: hint to user space for preferred irq affinity
3838 * @affinity_notify: context for notification of affinity changes
kernel/irq/chip.c+1−1
@@ -808,7 +808,7 @@ void handle_edge_irq(struct irq_desc *desc) · 807 unmodified lines
808808 /*
809809 * When another irq arrived while we were handling
810810 * one, we could have masked the irq.
811− * Renable it, if it was not disabled in meantime.
811+ * Reenable it, if it was not disabled in meantime.
812812 */
813813 if (unlikely(desc->istate & IRQS_PENDING)) {
814814 if (!irqd_irq_disabled(&desc->irq_data) &&
kernel/irq/dummychip.c+1−1
@@ -13,7 +13,7 @@ · 12 unmodified lines
1313
1414 /*
1515 * What should we do if we get a hw irq event on an illegal vector?
16− * Each architecture has to answer this themself.
16+ * Each architecture has to answer this themselves.
1717 */
1818 static void ack_bad(struct irq_data *data)
1919 {
kernel/irq/irqdesc.c+1−1
@@ -31,7 +31,7 @@ static int __init irq_affinity_setup(char *str) · 30 unmodified lines
3131 cpulist_parse(str, irq_default_affinity);
3232 /*
3333 * Set at least the boot cpu. We don't want to end up with
34− * bugreports caused by random comandline masks
34+ * bugreports caused by random commandline masks
3535 */
3636 cpumask_set_cpu(smp_processor_id(), irq_default_affinity);
3737 return 1;
kernel/irq/irqdomain.c+4−4
@@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(irqchip_fwnode_ops); · 61 unmodified lines
6262 * @name: Optional user provided domain name
6363 * @pa: Optional user-provided physical address
6464 *
65− * Allocate a struct irqchip_fwid, and return a poiner to the embedded
65+ * Allocate a struct irqchip_fwid, and return a pointer to the embedded
6666 * fwnode_handle (or NULL on failure).
6767 *
6868 * Note: The types IRQCHIP_FWNODE_NAMED and IRQCHIP_FWNODE_NAMED_ID are
@@ -665,7 +665,7 @@ unsigned int irq_create_mapping_affinity(struct irq_domain *domain, · 596 unmodified lines
665665
666666 pr_debug("irq_create_mapping(0x%p, 0x%lx)\n", domain, hwirq);
667667
668− /* Look for default domain if nececssary */
668+ /* Look for default domain if necessary */
669669 if (domain == NULL)
670670 domain = irq_default_domain;
671671 if (domain == NULL) {
@@ -906,7 +906,7 @@ unsigned int irq_find_mapping(struct irq_domain *domain, · 234 unmodified lines
906906 {
907907 struct irq_data *data;
908908
909− /* Look for default domain if nececssary */
909+ /* Look for default domain if necessary */
910910 if (domain == NULL)
911911 domain = irq_default_domain;
912912 if (domain == NULL)
@@ -1436,7 +1436,7 @@ int irq_domain_alloc_irqs_hierarchy(struct irq_domain *domain, · 523 unmodified lines
14361436 * The whole process to setup an IRQ has been split into two steps.
14371437 * The first step, __irq_domain_alloc_irqs(), is to allocate IRQ
14381438 * descriptor and required hardware resources. The second step,
1439− * irq_domain_activate_irq(), is to program hardwares with preallocated
1439+ * irq_domain_activate_irq(), is to program the hardware with preallocated
14401440 * resources. In this way, it's easier to rollback when failing to
14411441 * allocate resources.
14421442 */
kernel/irq/manage.c+3−3
@@ -326,7 +326,7 @@ static bool irq_set_affinity_deactivated(struct irq_data *data, · 325 unmodified lines
326326 * If the interrupt is not yet activated, just store the affinity
327327 * mask and do not call the chip driver at all. On activation the
328328 * driver has to make sure anyway that the interrupt is in a
329− * useable state so startup works.
329+ * usable state so startup works.
330330 */
331331 if (!IS_ENABLED(CONFIG_IRQ_DOMAIN_HIERARCHY) ||
332332 irqd_is_activated(data) || !irqd_affinity_on_activate(data))
@@ -1054,7 +1054,7 @@ again: · 721 unmodified lines
10541054 * to IRQS_INPROGRESS and the irq line is masked forever.
10551055 *
10561056 * This also serializes the state of shared oneshot handlers
1057− * versus "desc->threads_onehsot |= action->thread_mask;" in
1057+ * versus "desc->threads_oneshot |= action->thread_mask;" in
10581058 * irq_wake_thread(). See the comment there which explains the
10591059 * serialization.
10601060 */
@@ -1909,7 +1909,7 @@ static struct irqaction *__free_irq(struct irq_desc *desc, void *dev_id) · 848 unmodified lines
19091909 /* Last action releases resources */
19101910 if (!desc->action) {
19111911 /*
1912− * Reaquire bus lock as irq_release_resources() might
1912+ * Reacquire bus lock as irq_release_resources() might
19131913 * require it to deallocate resources over the slow bus.
19141914 */
19151915 chip_bus_lock(desc);
kernel/irq/msi.c+1−1
@@ -5,7 +5,7 @@ · 4 unmodified lines
55 *
66 * This file is licensed under GPLv2.
77 *
8− * This file contains common code to support Message Signalled Interrupt for
8+ * This file contains common code to support Message Signaled Interrupts for
99 * PCI compatible and non PCI compatible devices.
1010 */
1111 #include <linux/types.h>
kernel/irq/timings.c+1−1
@@ -485,7 +485,7 @@ static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · 484 unmodified lines
485485
486486 /*
487487 * The interrupt triggered more than one second apart, that
488− * ends the sequence as predictible for our purpose. In this
488+ * ends the sequence as predictable for our purpose. In this
489489 * case, assume we have the beginning of a sequence and the
490490 * timestamp is the first value. As it is impossible to
491491 * predict anything at this point, return.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t