mirror of
https://github.com/torvalds/linux.git
synced 2026-03-14 02:06:15 +01:00
net: stmmac: spelling corrections
Correct spelling as flagged by codespell. Signed-off-by: Simon Horman <horms@kernel.org> Reviewed-by: Joe Damato <joe@dama.to> Link: https://patch.msgid.link/20260129-stmmac-spell-v1-1-c7df9a96e482@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
43dc088c19
commit
96e1c895b5
10 changed files with 17 additions and 17 deletions
|
|
@ -270,9 +270,9 @@ imx_dwmac_parse_dt(struct imx_priv_data *dwmac, struct device *dev)
|
|||
if (of_machine_is_compatible("fsl,imx8mp") ||
|
||||
of_machine_is_compatible("fsl,imx91") ||
|
||||
of_machine_is_compatible("fsl,imx93")) {
|
||||
/* Binding doc describes the propety:
|
||||
/* Binding doc describes the property:
|
||||
* is required by i.MX8MP, i.MX91, i.MX93.
|
||||
* is optinoal for i.MX8DXL.
|
||||
* is optional for i.MX8DXL.
|
||||
*/
|
||||
dwmac->intf_regmap =
|
||||
syscon_regmap_lookup_by_phandle_args(np, "intf_mode", 1,
|
||||
|
|
|
|||
|
|
@ -746,7 +746,7 @@ static int sun8i_dwmac_reset(struct stmmac_priv *priv)
|
|||
v = readl(priv->ioaddr + EMAC_BASIC_CTL1);
|
||||
writel(v | 0x01, priv->ioaddr + EMAC_BASIC_CTL1);
|
||||
|
||||
/* The timeout was previoulsy set to 10ms, but some board (OrangePI0)
|
||||
/* The timeout was previously set to 10ms, but some board (OrangePI0)
|
||||
* need more if no cable plugged. 100ms seems OK
|
||||
*/
|
||||
err = readl_poll_timeout(priv->ioaddr + EMAC_BASIC_CTL1, v,
|
||||
|
|
@ -821,7 +821,7 @@ static int sun8i_dwmac_power_internal_phy(struct stmmac_priv *priv)
|
|||
return ret;
|
||||
}
|
||||
|
||||
/* Make sure the EPHY is properly reseted, as U-Boot may leave
|
||||
/* Make sure the EPHY is properly reset, as U-Boot may leave
|
||||
* it at deasserted state, and thus it may fail to reset EMAC.
|
||||
*
|
||||
* This assumes the driver has exclusive access to the EPHY reset.
|
||||
|
|
|
|||
|
|
@ -152,7 +152,7 @@ enum inter_frame_gap {
|
|||
|
||||
/*--- DMA BLOCK defines ---*/
|
||||
/* DMA Bus Mode register defines */
|
||||
/* Programmable burst length (passed thorugh platform)*/
|
||||
/* Programmable burst length (passed through platform)*/
|
||||
#define DMA_BUS_MODE_PBL_MASK GENMASK(13, 8) /* Programmable Burst Len */
|
||||
#define DMA_BUS_MODE_ATDS 0x00000080 /* Alternate Descriptor Size */
|
||||
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ static void dwmac100_set_filter(struct mac_device_info *hw,
|
|||
memset(mc_filter, 0, sizeof(mc_filter));
|
||||
netdev_for_each_mc_addr(ha, dev) {
|
||||
/* The upper 6 bits of the calculated CRC are used to
|
||||
* index the contens of the hash table
|
||||
* index the contents of the hash table
|
||||
*/
|
||||
int bit_nr = ether_crc(ETH_ALEN, ha->addr) >> 26;
|
||||
/* The most significant bit determines the register to
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ static int enh_desc_coe_rdes0(int ipc_err, int type, int payload_err)
|
|||
|
||||
/* bits 5 7 0 | Frame status
|
||||
* ----------------------------------------------------------
|
||||
* 0 0 0 | IEEE 802.3 Type frame (length < 1536 octects)
|
||||
* 0 0 0 | IEEE 802.3 Type frame (length < 1536 octets)
|
||||
* 1 0 0 | IPv4/6 No CSUM errorS.
|
||||
* 1 0 1 | IPv4/6 CSUM PAYLOAD error
|
||||
* 1 1 0 | IPv4/6 CSUM IP HR error
|
||||
|
|
|
|||
|
|
@ -252,7 +252,7 @@ static void dwmac_mmc_intr_all_mask(void __iomem *mmcaddr)
|
|||
writel(MMC_DEFAULT_MASK, mmcaddr + MMC_RX_IPC_INTR_MASK);
|
||||
}
|
||||
|
||||
/* This reads the MAC core counters (if actaully supported).
|
||||
/* This reads the MAC core counters (if actually supported).
|
||||
* by default the MMC core is programmed to reset each
|
||||
* counter after a read. So all the field of the mmc struct
|
||||
* have to be incremented.
|
||||
|
|
@ -420,7 +420,7 @@ static void dwxgmac_read_mmc_reg(void __iomem *addr, u32 reg, u32 *dest)
|
|||
*dest = *dest + tmp;
|
||||
}
|
||||
|
||||
/* This reads the MAC core counters (if actaully supported).
|
||||
/* This reads the MAC core counters (if actually supported).
|
||||
* by default the MMC core is programmed to reset each
|
||||
* counter after a read. So all the field of the mmc struct
|
||||
* have to be incremented.
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ static void config_sub_second_increment(void __iomem *ioaddr,
|
|||
unsigned long data;
|
||||
u32 reg_value;
|
||||
|
||||
/* For GMAC3.x, 4.x versions, in "fine adjustement mode" set sub-second
|
||||
/* For GMAC3.x, 4.x versions, in "fine adjustment mode" set sub-second
|
||||
* increment to twice the number of nanoseconds of a clock cycle.
|
||||
* The calculation of the default_addend value by the caller will set it
|
||||
* to mid-range = 2^31 when the remainder of this division is zero,
|
||||
|
|
|
|||
|
|
@ -1130,7 +1130,7 @@ static int stmmac_mac_enable_tx_lpi(struct phylink_config *config, u32 timer,
|
|||
stmmac_set_eee_timer(priv, priv->hw, STMMAC_DEFAULT_LIT_LS,
|
||||
STMMAC_DEFAULT_TWT_LS);
|
||||
|
||||
/* Try to cnfigure the hardware timer. */
|
||||
/* Try to configure the hardware timer. */
|
||||
ret = stmmac_set_lpi_mode(priv, priv->hw, STMMAC_LPI_TIMER,
|
||||
priv->tx_lpi_clk_stop, priv->tx_lpi_timer);
|
||||
|
||||
|
|
@ -3511,7 +3511,7 @@ static void stmmac_mac_config_rss(struct stmmac_priv *priv)
|
|||
/**
|
||||
* stmmac_mtl_configuration - Configure MTL
|
||||
* @priv: driver private structure
|
||||
* Description: It is used for configurring MTL
|
||||
* Description: It is used for configuring MTL
|
||||
*/
|
||||
static void stmmac_mtl_configuration(struct stmmac_priv *priv)
|
||||
{
|
||||
|
|
@ -4389,7 +4389,7 @@ static netdev_tx_t stmmac_tso_xmit(struct sk_buff *skb, struct net_device *dev)
|
|||
|
||||
/* Always insert VLAN tag to SKB payload for TSO frames.
|
||||
*
|
||||
* Never insert VLAN tag by HW, since segments splited by
|
||||
* Never insert VLAN tag by HW, since segments split by
|
||||
* TSO engine will be un-tagged by mistake.
|
||||
*/
|
||||
if (skb_vlan_tag_present(skb)) {
|
||||
|
|
@ -5962,7 +5962,7 @@ static int stmmac_napi_poll_rxtx(struct napi_struct *napi, int budget)
|
|||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&ch->lock, flags);
|
||||
/* Both RX and TX work done are compelte,
|
||||
/* Both RX and TX work done are complete,
|
||||
* so enable both RX & TX IRQs.
|
||||
*/
|
||||
stmmac_enable_dma_irq(priv, priv->ioaddr, chan, 1, 1);
|
||||
|
|
@ -6294,7 +6294,7 @@ static irqreturn_t stmmac_msi_intr_rx(int irq, void *data)
|
|||
/**
|
||||
* stmmac_ioctl - Entry point for the Ioctl
|
||||
* @dev: Device pointer.
|
||||
* @rq: An IOCTL specefic structure, that can contain a pointer to
|
||||
* @rq: An IOCTL specific structure, that can contain a pointer to
|
||||
* a proprietary structure used to pass information to the driver.
|
||||
* @cmd: IOCTL command
|
||||
* Description:
|
||||
|
|
|
|||
|
|
@ -483,7 +483,7 @@ void stmmac_pcs_clean(struct net_device *ndev)
|
|||
* If a specific clk_csr value is passed from the platform
|
||||
* this means that the CSR Clock Range selection cannot be
|
||||
* changed at run-time and it is fixed (as reported in the driver
|
||||
* documentation). Viceversa the driver will try to set the MDC
|
||||
* documentation). Vice versa the driver will try to set the MDC
|
||||
* clock dynamically according to the actual clock input.
|
||||
*/
|
||||
static u32 stmmac_clk_csr_set(struct stmmac_priv *priv)
|
||||
|
|
|
|||
|
|
@ -2000,7 +2000,7 @@ void stmmac_selftest_run(struct net_device *dev,
|
|||
}
|
||||
|
||||
/*
|
||||
* First tests will always be MAC / PHY loobpack. If any of
|
||||
* First tests will always be MAC / PHY loopback. If any of
|
||||
* them is not supported we abort earlier.
|
||||
*/
|
||||
if (ret) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue