powerpc: Fix typos
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 3 Jan 2024 23:16:04 +0000 (17:16 -0600)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 May 2024 14:21:30 +0000 (00:21 +1000)
Fix typos, most reported by "codespell arch/powerpc".  Only touches
comments, no code changes.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240103231605.1801364-8-helgaas@kernel.org
29 files changed:
arch/powerpc/boot/Makefile
arch/powerpc/boot/dts/acadia.dts
arch/powerpc/boot/main.c
arch/powerpc/boot/ps3.c
arch/powerpc/include/asm/io.h
arch/powerpc/include/asm/opal-api.h
arch/powerpc/include/asm/pmac_feature.h
arch/powerpc/include/asm/uninorth.h
arch/powerpc/include/uapi/asm/bootx.h
arch/powerpc/kernel/eeh_pe.c
arch/powerpc/kernel/fadump.c
arch/powerpc/kernel/misc_64.S
arch/powerpc/kernel/process.c
arch/powerpc/kernel/ptrace/ptrace-tm.c
arch/powerpc/kernel/smp.c
arch/powerpc/kernel/sysfs.c
arch/powerpc/kvm/book3s_xive.c
arch/powerpc/mm/cacheflush.c
arch/powerpc/mm/nohash/kaslr_booke.c
arch/powerpc/platforms/512x/mpc512x_shared.c
arch/powerpc/platforms/cell/spufs/sched.c
arch/powerpc/platforms/maple/pci.c
arch/powerpc/platforms/powermac/pic.c
arch/powerpc/platforms/powermac/sleep.S
arch/powerpc/platforms/powernv/pci-sriov.c
arch/powerpc/platforms/powernv/vas-window.c
arch/powerpc/platforms/pseries/vas.c
arch/powerpc/sysdev/xive/common.c
arch/powerpc/sysdev/xive/native.c

index 968aee2025b8198976e740b74445818bc44a95e0..9c2b6e527ed11bffe5fe5787b1e1b8e289444b3c 100644 (file)
@@ -108,8 +108,8 @@ DTC_FLAGS   ?= -p 1024
 # these files into the build dir, fix up any includes and ensure that dependent
 # files are copied in the right order.
 
-# these need to be seperate variables because they are copied out of different
-# directories in the kernel tree. Sure you COULd merge them, but it's a
+# these need to be separate variables because they are copied out of different
+# directories in the kernel tree. Sure you COULD merge them, but it's a
 # cure-is-worse-than-disease situation.
 zlib-decomp-$(CONFIG_KERNEL_GZIP) := decompress_inflate.c
 zlib-$(CONFIG_KERNEL_GZIP) := inffast.c inflate.c inftrees.c
index deb52e41ab84b2b9d5ce0a35261f02d5f74ce5ef..5fedda8113783a94907022572d9b560814537c0e 100644 (file)
                                reg = <0xef602800 0x60>;
                                interrupt-parent = <&UIC0>;
                                interrupts = <0x4 0x4>;
-                               /* This thing is a bit weird.  It has it's own UIC
+                               /* This thing is a bit weird.  It has its own UIC
                                 * that it uses to generate snapshot triggers.  We
                                 * don't really support this device yet, and it needs
                                 * work to figure this out.
index cae31a6e8f029db10660dd45806036326d5fb47c..2c0e2a1cab0122688d6b4883a45f464bae204f5f 100644 (file)
@@ -188,7 +188,7 @@ static inline void prep_esm_blob(struct addr_range vmlinux, void *chosen) { }
 
 /* A buffer that may be edited by tools operating on a zImage binary so as to
  * edit the command line passed to vmlinux (by setting /chosen/bootargs).
- * The buffer is put in it's own section so that tools may locate it easier.
+ * The buffer is put in its own section so that tools may locate it easier.
  */
 static char cmdline[BOOT_COMMAND_LINE_SIZE]
        __attribute__((__section__("__builtin_cmdline")));
index f157717ae81471f5c68cb059d04959a976bdb489..89ff46b8b22501c2e45dbfaf0a7701ba7bf5da23 100644 (file)
@@ -25,7 +25,7 @@ BSS_STACK(4096);
 
 /* A buffer that may be edited by tools operating on a zImage binary so as to
  * edit the command line passed to vmlinux (by setting /chosen/bootargs).
- * The buffer is put in it's own section so that tools may locate it easier.
+ * The buffer is put in its own section so that tools may locate it easier.
  */
 
 static char cmdline[BOOT_COMMAND_LINE_SIZE]
index 048e3705af20be24457d843aba53171413652951..52e1b1d15ff63a9d9292dce3995db104dfc6fb48 100644 (file)
@@ -982,7 +982,7 @@ static inline phys_addr_t page_to_phys(struct page *page)
 }
 
 /*
- * 32 bits still uses virt_to_bus() for it's implementation of DMA
+ * 32 bits still uses virt_to_bus() for its implementation of DMA
  * mappings se we have to keep it defined here. We also have some old
  * drivers (shame shame shame) that use bus_to_virt() and haven't been
  * fixed yet so I need to define it here.
index a2bc4b95e703cff0179f23d826dceb8167ab9dbd..8c9d4b26bf579e030a188cb56397faf6d30e58d4 100644 (file)
@@ -1027,10 +1027,10 @@ struct opal_i2c_request {
  * The host will pass on OPAL, a buffer of length OPAL_SYSEPOW_MAX
  * with individual elements being 16 bits wide to fetch the system
  * wide EPOW status. Each element in the buffer will contain the
- * EPOW status in it's bit representation for a particular EPOW sub
+ * EPOW status in its bit representation for a particular EPOW sub
  * class as defined here. So multiple detailed EPOW status bits
  * specific for any sub class can be represented in a single buffer
- * element as it's bit representation.
+ * element as its bit representation.
  */
 
 /* System EPOW type */
index 2495866f2e97321c3200849d608480e52370b47c..420e2878ae67261a6c921cb774be0c37c7d526b3 100644 (file)
@@ -192,7 +192,7 @@ static inline long pmac_call_feature(int selector, struct device_node* node,
 
 /* PMAC_FTR_BMAC_ENABLE                (struct device_node* node, 0, int value)
  * enable/disable the bmac (ethernet) cell of a mac-io ASIC, also drive
- * it's reset line
+ * its reset line
  */
 #define PMAC_FTR_BMAC_ENABLE           PMAC_FTR_DEF(6)
 
index e278299b9b3752c2d6053a0fdb8d811156791a14..6949b5daa37d70a4501848a6da5916d03bff0120 100644 (file)
 #define UNI_N_HWINIT_STATE_SLEEPING    0x01
 #define UNI_N_HWINIT_STATE_RUNNING     0x02
 /* This last bit appear to be used by the bootROM to know the second
- * CPU has started and will enter it's sleep loop with IP=0
+ * CPU has started and will enter its sleep loop with IP=0
  */
 #define UNI_N_HWINIT_STATE_CPU1_FLAG   0x10000000
 
index 6728c7e24e583bfcdafd974c8cf0beb8819c456b..1b8c121071d926a3b95f24f2328a1a0e85be64e5 100644 (file)
@@ -108,7 +108,7 @@ typedef struct boot_infos
     /* ALL BELOW NEW (vers. 4) */
 
     /* This defines the physical memory. Valid with BOOT_ARCH_NUBUS flag
-       (non-PCI) only. On PCI, memory is contiguous and it's size is in the
+       (non-PCI) only. On PCI, memory is contiguous and its size is in the
        device-tree. */
     boot_info_map_entry_t
                physMemoryMap[MAX_MEM_MAP_SIZE]; /* Where the phys memory is */
index 2038454ce86445b3a3987b9d14e4bb892032cd79..d1030bc52564e28de6e0f01dcbf4b7cde15842be 100644 (file)
@@ -527,7 +527,7 @@ EXPORT_SYMBOL_GPL(eeh_pe_state_mark);
  * eeh_pe_mark_isolated
  * @pe: EEH PE
  *
- * Record that a PE has been isolated by marking the PE and it's children as
+ * Record that a PE has been isolated by marking the PE and its children as
  * EEH_PE_ISOLATED (and EEH_PE_CFG_BLOCKED, if required) and their PCI devices
  * as pci_channel_io_frozen.
  */
index 2de7379d0f300d606d5da64c58ec896a9940e0cd..0b849563393e202358b941b846ab782b63b04960 100644 (file)
@@ -681,7 +681,7 @@ void crash_fadump(struct pt_regs *regs, const char *str)
         * old_cpu == -1 means this is the first CPU which has come here,
         * go ahead and trigger fadump.
         *
-        * old_cpu != -1 means some other CPU has already on it's way
+        * old_cpu != -1 means some other CPU has already on its way
         * to trigger fadump, just keep looping here.
         */
        this_cpu = smp_processor_id();
index 1a8cdafd68e85b4a36648065c73df2b6209545ac..91123e102db40ea7fd7d0a5df297ece9f7b150bc 100644 (file)
@@ -192,7 +192,7 @@ _GLOBAL(scom970_read)
        xori    r0,r0,MSR_EE
        mtmsrd  r0,1
 
-       /* rotate 24 bits SCOM address 8 bits left and mask out it's low 8 bits
+       /* rotate 24 bits SCOM address 8 bits left and mask out its low 8 bits
         * (including parity). On current CPUs they must be 0'd,
         * and finally or in RW bit
         */
@@ -226,7 +226,7 @@ _GLOBAL(scom970_write)
        xori    r0,r0,MSR_EE
        mtmsrd  r0,1
 
-       /* rotate 24 bits SCOM address 8 bits left and mask out it's low 8 bits
+       /* rotate 24 bits SCOM address 8 bits left and mask out its low 8 bits
         * (including parity). On current CPUs they must be 0'd.
         */
 
index 8ab779a3bddebed2be0d161f44849269a5c9e203..a7671786764b60639c8d3b436964b795096a65e0 100644 (file)
@@ -1661,7 +1661,7 @@ void arch_setup_new_exec(void)
  * cases will happen:
  *
  * 1. The correct thread is running, the wrong thread is not
- * In this situation, the correct thread is woken and proceeds to pass it's
+ * In this situation, the correct thread is woken and proceeds to pass its
  * condition check.
  *
  * 2. Neither threads are running
@@ -1671,15 +1671,15 @@ void arch_setup_new_exec(void)
  * for the wrong thread, or they will execute the condition check immediately.
  *
  * 3. The wrong thread is running, the correct thread is not
- * The wrong thread will be woken, but will fail it's condition check and
+ * The wrong thread will be woken, but will fail its condition check and
  * re-execute wait. The correct thread, when scheduled, will execute either
- * it's condition check (which will pass), or wait, which returns immediately
- * when called the first time after the thread is scheduled, followed by it's
+ * its condition check (which will pass), or wait, which returns immediately
+ * when called the first time after the thread is scheduled, followed by its
  * condition check (which will pass).
  *
  * 4. Both threads are running
- * Both threads will be woken. The wrong thread will fail it's condition check
- * and execute another wait, while the correct thread will pass it's condition
+ * Both threads will be woken. The wrong thread will fail its condition check
+ * and execute another wait, while the correct thread will pass its condition
  * check.
  *
  * @t: the task to set the thread ID for
index 210ea834e603c663bfa9067af44f6b050c54290d..447bff87fd2163d937b9ebb3a9816bd148adbb6b 100644 (file)
@@ -12,7 +12,7 @@ void flush_tmregs_to_thread(struct task_struct *tsk)
 {
        /*
         * If task is not current, it will have been flushed already to
-        * it's thread_struct during __switch_to().
+        * its thread_struct during __switch_to().
         *
         * A reclaim flushes ALL the state or if not in TM save TM SPRs
         * in the appropriate thread structures from live.
index 12e53b3d792379998922d23d8ffe9327bec4d067..46e6d2cd7a2dfd179e58fc79c8655475a486dc75 100644 (file)
@@ -1567,7 +1567,7 @@ static void add_cpu_to_masks(int cpu)
 
        /*
         * This CPU will not be in the online mask yet so we need to manually
-        * add it to it's own thread sibling mask.
+        * add it to its own thread sibling mask.
         */
        map_cpu_to_node(cpu, cpu_to_node(cpu));
        cpumask_set_cpu(cpu, cpu_sibling_mask(cpu));
index 0f39a6b8413286a2cc735a4bbc659c77c28f2a55..b842c83ab497d08b964bc6a88fdb9af63637c273 100644 (file)
@@ -139,7 +139,7 @@ static unsigned long dscr_default;
  * @val:       Returned cpu specific DSCR default value
  *
  * This function returns the per cpu DSCR default value
- * for any cpu which is contained in it's PACA structure.
+ * for any cpu which is contained in its PACA structure.
  */
 static void read_dscr(void *val)
 {
@@ -152,7 +152,7 @@ static void read_dscr(void *val)
  * @val:       New cpu specific DSCR default value to update
  *
  * This function updates the per cpu DSCR default value
- * for any cpu which is contained in it's PACA structure.
+ * for any cpu which is contained in its PACA structure.
  */
 static void write_dscr(void *val)
 {
index 29a3822497705532d1b5b1f721c2f43594be9c5c..1362c672387e3289f5fcad53ce8e2a4b529daf97 100644 (file)
@@ -531,7 +531,7 @@ static int xive_vm_h_eoi(struct kvm_vcpu *vcpu, unsigned long xirr)
        xc->cppr = xive_prio_from_guest(new_cppr);
 
        /*
-        * IPIs are synthetized from MFRR and thus don't need
+        * IPIs are synthesized from MFRR and thus don't need
         * any special EOI handling. The underlying interrupt
         * used to signal MFRR changes is EOId when fetched from
         * the queue.
index 15189592da09e16cba23a931c48d26120220e6a3..7186516eca524ce1e1893519956793f4ed9781a4 100644 (file)
@@ -78,7 +78,7 @@ EXPORT_SYMBOL(flush_icache_range);
 
 #ifdef CONFIG_HIGHMEM
 /**
- * flush_dcache_icache_phys() - Flush a page by it's physical address
+ * flush_dcache_icache_phys() - Flush a page by its physical address
  * @physaddr: the physical address of the page
  */
 static void flush_dcache_icache_phys(unsigned long physaddr)
index cdff129abb14466ede3907d834045ca13822b8b3..5c8d1bb98b3e86df303913d14db91f4f3312bee7 100644 (file)
@@ -376,7 +376,7 @@ notrace void __init kaslr_early_init(void *dt_ptr, phys_addr_t size)
                create_kaslr_tlb_entry(1, tlb_virt, tlb_phys);
        }
 
-       /* Copy the kernel to it's new location and run */
+       /* Copy the kernel to its new location and run */
        memcpy((void *)kernstart_virt_addr, (void *)_stext, kernel_sz);
        flush_icache_range(kernstart_virt_addr, kernstart_virt_addr + kernel_sz);
 
index 8f75e9574c27a0d46e8a5496bcefc2edcdf394b0..8c1f3b629fc7a2be9d6719caf42c819ba8ab1555 100644 (file)
@@ -279,7 +279,7 @@ static void __init mpc512x_setup_diu(void)
         * and so negatively affect boot time. Instead we reserve the
         * already configured frame buffer area so that it won't be
         * destroyed. The starting address of the area to reserve and
-        * also it's length is passed to memblock_reserve(). It will be
+        * also its length is passed to memblock_reserve(). It will be
         * freed later on first open of fbdev, when splash image is not
         * needed any more.
         */
index 99bd027a7f7c25a5e02e6b79eee6f091a5c9c647..610ca8570682482546a30106e10fa22631c92ce0 100644 (file)
@@ -868,7 +868,7 @@ static int __spu_deactivate(struct spu_context *ctx, int force, int max_prio)
 }
 
 /**
- * spu_deactivate - unbind a context from it's physical spu
+ * spu_deactivate - unbind a context from its physical spu
  * @ctx:       spu context to unbind
  *
  * Unbind @ctx from the physical spu it is running on and schedule
index b911b31717cc6978da8ac6c76852eb31d87be65c..b9ff37c7f6f0199b375bbfaba683d5b0dc23013d 100644 (file)
@@ -595,7 +595,7 @@ void __init maple_pci_init(void)
 
        /* Probe root PCI hosts, that is on U3 the AGP host and the
         * HyperTransport host. That one is actually "kept" around
-        * and actually added last as it's resource management relies
+        * and actually added last as its resource management relies
         * on the AGP resources to have been setup first
         */
        root = of_find_node_by_path("/");
index 7135ea1d7db62775589ef90e5378b4282af36bfd..2202bf77c7a31515acc9a6f1fd523f38f942ed68 100644 (file)
@@ -2,7 +2,7 @@
 /*
  *  Support for the interrupt controllers found on Power Macintosh,
  *  currently Apple's "Grand Central" interrupt controller in all
- *  it's incarnations. OpenPIC support used on newer machines is
+ *  its incarnations. OpenPIC support used on newer machines is
  *  in a separate file
  *
  *  Copyright (C) 1997 Paul Mackerras (paulus@samba.org)
index d497a60003d2d5d798ac9671b4c2ba1f0d68792f..822ed70cdcbf683da19046bebdd02ea8c23ffaf6 100644 (file)
@@ -176,7 +176,7 @@ END_MMU_FTR_SECTION_IFSET(MMU_FTR_USE_HIGH_BATS)
         *    memory location containing the PC to resume from
         *    at address 0.
         *  - On Core99, we must store the wakeup vector at
-        *    address 0x80 and eventually it's parameters
+        *    address 0x80 and eventually its parameters
         *    at address 0x84. I've have some trouble with those
         *    parameters however and I no longer use them.
         */
index 59882da3e74253fcf0fb34d5976065081f1faa41..cc7b1dd54ac66d68094c6e62b711d7b87ac1636b 100644 (file)
@@ -238,7 +238,7 @@ void pnv_pci_ioda_fixup_iov(struct pci_dev *pdev)
        } else if (pdev->is_physfn) {
                /*
                 * For PFs adjust their allocated IOV resources to match what
-                * the PHB can support using it's M64 BAR table.
+                * the PHB can support using its M64 BAR table.
                 */
                pnv_pci_ioda_fixup_iov_resources(pdev);
        }
@@ -658,7 +658,7 @@ static void pnv_ioda_setup_vf_PE(struct pci_dev *pdev, u16 num_vfs)
                list_add_tail(&pe->list, &phb->ioda.pe_list);
                mutex_unlock(&phb->ioda.pe_list_mutex);
 
-               /* associate this pe to it's pdn */
+               /* associate this pe to its pdn */
                list_for_each_entry(vf_pdn, &pdn->parent->child_list, list) {
                        if (vf_pdn->busno == vf_bus &&
                            vf_pdn->devfn == vf_devfn) {
index b664838008c12a48c33359fb5e23259b7d26e57b..5147df3a18ac251a5b5b23a8afa1d6c2e44b0531 100644 (file)
@@ -1059,7 +1059,7 @@ struct vas_window *vas_tx_win_open(int vasid, enum vas_cop_type cop,
                }
        } else {
                /*
-                * Interrupt hanlder or fault window setup failed. Means
+                * Interrupt handler or fault window setup failed. Means
                 * NX can not generate fault for page fault. So not
                 * opening for user space tx window.
                 */
index 71d52a670d951be33d7fb0e3e3219ef3e21ec971..ba3fb7a7f2ea940e19d8a099f55b584187272d79 100644 (file)
@@ -228,7 +228,7 @@ static irqreturn_t pseries_vas_irq_handler(int irq, void *data)
        struct pseries_vas_window *txwin = data;
 
        /*
-        * The thread hanlder will process this interrupt if it is
+        * The thread handler will process this interrupt if it is
         * already running.
         */
        atomic_inc(&txwin->pending_faults);
index a289cb97c1d7b50526440248576adab3fe387577..fa01818c1972cf05104b288b00102bf1edec9a55 100644 (file)
@@ -383,7 +383,7 @@ static unsigned int xive_get_irq(void)
  * CPU.
  *
  * If we find that there is indeed more in there, we call
- * force_external_irq_replay() to make Linux synthetize an
+ * force_external_irq_replay() to make Linux synthesize an
  * external interrupt on the next call to local_irq_restore().
  */
 static void xive_do_queue_eoi(struct xive_cpu *xc)
@@ -874,7 +874,7 @@ static int xive_irq_set_vcpu_affinity(struct irq_data *d, void *state)
                 *
                 * This also tells us that it's in flight to a host queue
                 * or has already been fetched but hasn't been EOIed yet
-                * by the host. This it's potentially using up a host
+                * by the host. Thus it's potentially using up a host
                 * queue slot. This is important to know because as long
                 * as this is the case, we must not hard-unmask it when
                 * "returning" that interrupt to the host.
index f1c0fa6ece21d0bc1f534884607035034697f725..517b963e3e6a19806c80369de3c4449d12688605 100644 (file)
@@ -415,7 +415,7 @@ static void xive_native_setup_cpu(unsigned int cpu, struct xive_cpu *xc)
                return;
        }
 
-       /* Grab it's CAM value */
+       /* Grab its CAM value */
        rc = opal_xive_get_vp_info(vp, NULL, &vp_cam_be, NULL, NULL);
        if (rc) {
                pr_err("Failed to get pool VP info CPU %d\n", cpu);