Skip to content

Commit c78c6e1

Browse files
committed
Merge tag 'soc-fsl-next-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/leo/linux into arm/drivers
NXP/FSL SoC driver updates for v5.10 Fix various compile warnings and static analysis warnings for: - QBMan driver - DPIO driver - QE driver * tag 'soc-fsl-next-v5.10' of git://git.kernel.org/pub/scm/linux/kernel/git/leo/linux: soc: fsl: qe: Remove unnessesary check in ucc_set_tdm_rxtx_clk soc: fsl: qman: convert to use be32_add_cpu() soc: fsl: dpio: remove set but not used 'addr_cena' soc: fsl: qbman: Fix return value on success soc: fsl: qman: fix -Wpacked-not-aligned warnings Link: https://lore.kernel.org/r/20200923224416.25788-1-leoyang.li@nxp.com Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents a39c258 + d97b957 commit c78c6e1

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

drivers/soc/fsl/dpio/qbman-portal.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,
647647
const uint32_t *cl = (uint32_t *)d;
648648
uint32_t eqcr_ci, eqcr_pi, half_mask, full_mask;
649649
int i, num_enqueued = 0;
650-
uint64_t addr_cena;
651650

652651
spin_lock(&s->access_spinlock);
653652
half_mask = (s->eqcr.pi_ci_mask>>1);
@@ -701,7 +700,6 @@ int qbman_swp_enqueue_multiple_direct(struct qbman_swp *s,
701700

702701
/* Flush all the cacheline without load/store in between */
703702
eqcr_pi = s->eqcr.pi;
704-
addr_cena = (size_t)s->addr_cena;
705703
for (i = 0; i < num_enqueued; i++)
706704
eqcr_pi++;
707705
s->eqcr.pi = eqcr_pi & full_mask;

drivers/soc/fsl/qbman/bman.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ int bm_shutdown_pool(u32 bpid)
660660
}
661661
done:
662662
put_affine_portal();
663-
return 0;
663+
return err;
664664
}
665665

666666
struct gen_pool *bm_bpalloc;

drivers/soc/fsl/qbman/qman_test_api.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ static void fd_inc(struct qm_fd *fd)
8686
len--;
8787
qm_fd_set_param(fd, fmt, off, len);
8888

89-
fd->cmd = cpu_to_be32(be32_to_cpu(fd->cmd) + 1);
89+
be32_add_cpu(&fd->cmd, 1);
9090
}
9191

9292
/* The only part of the 'fd' we can't memcmp() is the ppid */

drivers/soc/fsl/qe/ucc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ int ucc_set_tdm_rxtx_clk(u32 tdm_num, enum qe_clock clock,
523523

524524
qe_mux_reg = &qe_immr->qmx;
525525

526-
if (tdm_num > 7 || tdm_num < 0)
526+
if (tdm_num > 7)
527527
return -EINVAL;
528528

529529
/* The communications direction must be RX or TX */

include/soc/fsl/qman.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ struct qm_dqrr_entry {
256256
__be32 context_b;
257257
struct qm_fd fd;
258258
u8 __reserved4[32];
259-
} __packed;
259+
} __packed __aligned(64);
260260
#define QM_DQRR_VERB_VBIT 0x80
261261
#define QM_DQRR_VERB_MASK 0x7f /* where the verb contains; */
262262
#define QM_DQRR_VERB_FRAME_DEQUEUE 0x60 /* "this format" */
@@ -289,7 +289,7 @@ union qm_mr_entry {
289289
__be32 tag;
290290
struct qm_fd fd;
291291
u8 __reserved1[32];
292-
} __packed ern;
292+
} __packed __aligned(64) ern;
293293
struct {
294294
u8 verb;
295295
u8 fqs; /* Frame Queue Status */

0 commit comments

Comments
 (0)