Skip to content

Commit 5d38cb9

Browse files
committed
Merge tag 'firewire-updates-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394
Pull firewire updates from Takashi Sakamoto: "A few updates for the 6.13 kernel, including some typo corrections in the software stack and some fixes for tools. Additionally, it includes a change resulting from the deprecation of a kernel API in the PCI subsystem" * tag 'firewire-updates-6.13' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394: tools/firewire: Fix several incorrect format specifiers firewire: ohci: Replace deprecated PCI functions firewire: Correct some typos
2 parents e06635e + 4752e8c commit 5d38cb9

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed

drivers/firewire/core-topology.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static struct fw_node *fw_node_create(u32 sid, int port_count, int color)
5656
* two cases: either the path goes through this node, in which case
5757
* the hop count is the sum of the two biggest child depths plus 2.
5858
* Or it could be the case that the max hop path is entirely
59-
* containted in a child tree, in which case the max hop count is just
59+
* contained in a child tree, in which case the max hop count is just
6060
* the max hop count of this child.
6161
*/
6262
static void update_hop_count(struct fw_node *node)

drivers/firewire/core.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ struct fw_card_driver {
8080
/*
8181
* Allow the specified node ID to do direct DMA out and in of
8282
* host memory. The card will disable this for all node when
83-
* a bus reset happens, so driver need to reenable this after
83+
* a bus reset happens, so driver need to re-enable this after
8484
* bus reset. Returns 0 on success, -ENODEV if the card
8585
* doesn't support this, -ESTALE if the generation doesn't
8686
* match.

drivers/firewire/ohci.c

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,7 @@ struct driver_data {
13841384
};
13851385

13861386
/*
1387-
* This function apppends a packet to the DMA queue for transmission.
1387+
* This function appends a packet to the DMA queue for transmission.
13881388
* Must always be called with the ochi->lock held to ensure proper
13891389
* generation handling and locking around packet queue manipulation.
13901390
*/
@@ -2213,7 +2213,7 @@ static irqreturn_t irq_handler(int irq, void *data)
22132213

22142214
if (unlikely(param_debug > 0)) {
22152215
dev_notice_ratelimited(ohci->card.device,
2216-
"The debug parameter is superceded by tracepoints events, and deprecated.");
2216+
"The debug parameter is superseded by tracepoints events, and deprecated.");
22172217
}
22182218

22192219
/*
@@ -2614,7 +2614,7 @@ static int ohci_set_config_rom(struct fw_card *card,
26142614
* ConfigRomHeader and BusOptions doesn't honor the
26152615
* noByteSwapData bit, so with a be32 config rom, the
26162616
* controller will load be32 values in to these registers
2617-
* during the atomic update, even on litte endian
2617+
* during the atomic update, even on little endian
26182618
* architectures. The workaround we use is to put a 0 in the
26192619
* header quadlet; 0 is endian agnostic and means that the
26202620
* config rom isn't ready yet. In the bus reset tasklet we
@@ -3726,12 +3726,11 @@ static int pci_probe(struct pci_dev *dev,
37263726
return -ENXIO;
37273727
}
37283728

3729-
err = pcim_iomap_regions(dev, 1 << 0, ohci_driver_name);
3730-
if (err) {
3729+
ohci->registers = pcim_iomap_region(dev, 0, ohci_driver_name);
3730+
if (IS_ERR(ohci->registers)) {
37313731
ohci_err(ohci, "request and map MMIO resource unavailable\n");
37323732
return -ENXIO;
37333733
}
3734-
ohci->registers = pcim_iomap_table(dev)[0];
37353734

37363735
for (i = 0; i < ARRAY_SIZE(ohci_quirks); i++)
37373736
if ((ohci_quirks[i].vendor == dev->vendor) &&

tools/firewire/decode-fcp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ decode_avc(struct link_transaction *t)
160160
name = info->name;
161161
}
162162

163-
printf("av/c %s, subunit_type=%s, subunit_id=%d, opcode=%s",
163+
printf("av/c %s, subunit_type=%s, subunit_id=%u, opcode=%s",
164164
ctype_names[frame->ctype], subunit_type_names[frame->subunit_type],
165165
frame->subunit_id, name);
166166

tools/firewire/nosy-dump.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ print_packet(uint32_t *data, size_t length)
771771
if (pp->phy_config.set_root)
772772
printf(" set_root_id=%02x", pp->phy_config.root_id);
773773
if (pp->phy_config.set_gap_count)
774-
printf(" set_gap_count=%d", pp->phy_config.gap_count);
774+
printf(" set_gap_count=%u", pp->phy_config.gap_count);
775775
}
776776
break;
777777

@@ -781,13 +781,13 @@ print_packet(uint32_t *data, size_t length)
781781

782782
case PHY_PACKET_SELF_ID:
783783
if (pp->self_id.extended) {
784-
printf("extended self id: phy_id=%02x, seq=%d",
784+
printf("extended self id: phy_id=%02x, seq=%u",
785785
pp->ext_self_id.phy_id, pp->ext_self_id.sequence);
786786
} else {
787787
static const char * const speed_names[] = {
788788
"S100", "S200", "S400", "BETA"
789789
};
790-
printf("self id: phy_id=%02x, link %s, gap_count=%d, speed=%s%s%s",
790+
printf("self id: phy_id=%02x, link %s, gap_count=%u speed=%s%s%s",
791791
pp->self_id.phy_id,
792792
(pp->self_id.link_active ? "active" : "not active"),
793793
pp->self_id.gap_count,

0 commit comments

Comments
 (0)