Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp373848imu; Fri, 21 Dec 2018 00:15:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7NSpOxEJUN8bEfNMrnCjKilymdzZomKh4uMyuX0wIAL4lK007zFKywxqXImWhHf6/XjRTA X-Received: by 2002:a65:514c:: with SMTP id g12mr1436863pgq.169.1545380135017; Fri, 21 Dec 2018 00:15:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545380134; cv=none; d=google.com; s=arc-20160816; b=b51ZRnMW7MUPbz+buGGSKsRmRecXamUImM4nBy2AK6Ec8lZXhhkCY075BpQE7l1fk9 tLAh0jzRP2svH8EoZs050DcV8PDXDUEupIgwe3wFteZehUuqkjroeGyvxa5FJcf6p2vo NdEggJexeFnoQVcNLdT/qnYSDPx8+sDEXHIwEi5a9jdJKDefLpUSOxB/4RrjhMP9pQtJ NDBuaYxc727izi8fILKO3AuComU96Uh9DJ2tzZuip4i6QGEYxtKo5O0HJjk2NSBPOlDP hIG0fOgDJ4fxLgjv3oiOolks6mgL1pKssHcZi5M4gXjqJB90ActHb/qzrL35zXDpDXQB 8kBQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xy2Tp9vRgA1D291QIIYW+7RDBF3JCvQs2RxcJWU9EBg=; b=BvLGrMETLsfvoOv7d3NrdxLu/s+NVRisuywLG7pCtqXfsPLfHA7fosyRXCXr/DOYfn rw6DwTQ+jZvhcKppPa5WouwT/6nkOcfFeOkdI4AfEL0XavlRkp8pxJRyTIW84xZ9+eYU LkyIH7ybK3kIumPu61H7n74JapKNT2XdNnr2XwqPGji61Vff6JsclWC/YQ/ETZnzRAik zjtmyq0m2BSVMy29f+Ju/OqDLRS35fd8qmozFo5fYWU7/wA0R9nJoyXcw2f31HMiY0t9 OIxgu8d1pgIspiCGZ8wlSUDzAoiSkvIwxDyQdF2E1SVV0csamBrc1wF7+9Bvf+mJ1Lx6 136g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xWszkehH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91si21404089pld.395.2018.12.21.00.15.19; Fri, 21 Dec 2018 00:15:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xWszkehH; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390723AbeLUBTV (ORCPT + 99 others); Thu, 20 Dec 2018 20:19:21 -0500 Received: from mail.kernel.org ([198.145.29.99]:37602 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390632AbeLUBSf (ORCPT ); Thu, 20 Dec 2018 20:18:35 -0500 Received: from mail.kernel.org (unknown [185.216.33.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7DCA521907; Fri, 21 Dec 2018 01:18:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1545355115; bh=Qn0CqU4S1/+2lB935WPJiZabi36T/4R+/jIXSshUPGM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xWszkehHP5TR+CWeTiKmaidA+m5kNAlaZtBAWwn5kMgZElP31k6ymEfPBFs1qoE+p 9yBpJ0CELeaZirPxiSL7soqI6qkngC1XBmd7L7k9lsMfmqD3KvIN/KxcUBhOKmV98n by6MXhb5Y+OjpNwKNRe24wUdjvg9BPn+PJ0/Eq3E= From: Sebastian Reichel To: Sebastian Reichel , Mauro Carvalho Chehab , Marcel Holtmann , Tony Lindgren Cc: Rob Herring , Greg Kroah-Hartman , Pavel Machek , linux-bluetooth@vger.kernel.org, linux-media@vger.kernel.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel Subject: [PATCH 11/14] media: wl128x-radio: fix skb debug printing Date: Fri, 21 Dec 2018 02:17:49 +0100 Message-Id: <20181221011752.25627-12-sre@kernel.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181221011752.25627-1-sre@kernel.org> References: <20181221011752.25627-1-sre@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sebastian Reichel This fixes incorrect code in the TX/RX skb debug print function and add stubs in receive/transmit packet path. Signed-off-by: Sebastian Reichel --- drivers/media/radio/wl128x/fmdrv_common.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/media/radio/wl128x/fmdrv_common.c b/drivers/media/radio/wl128x/fmdrv_common.c index 473ec5738a11..c20d518af4f3 100644 --- a/drivers/media/radio/wl128x/fmdrv_common.c +++ b/drivers/media/radio/wl128x/fmdrv_common.c @@ -195,7 +195,7 @@ static inline void fm_irq_timeout_stage(struct fmdev *fmdev, u8 stage) #ifdef FM_DUMP_TXRX_PKT /* To dump outgoing FM Channel-8 packets */ -inline void dump_tx_skb_data(struct sk_buff *skb) +static void dump_tx_skb_data(struct sk_buff *skb) { int len, len_org; u8 index; @@ -220,7 +220,7 @@ inline void dump_tx_skb_data(struct sk_buff *skb) } /* To dump incoming FM Channel-8 packets */ -inline void dump_rx_skb_data(struct sk_buff *skb) +static void dump_rx_skb_data(struct sk_buff *skb) { int len, len_org; u8 index; @@ -228,7 +228,7 @@ inline void dump_rx_skb_data(struct sk_buff *skb) evt_hdr = (struct fm_event_msg_hdr *)skb->data; printk(KERN_INFO ">> hdr:%02x len:%02x sts:%02x numhci:%02x opcode:%02x type:%s dlen:%02x", - evt_hdr->hdr, evt_hdr->len, + evt_hdr->header, evt_hdr->len, evt_hdr->status, evt_hdr->num_fm_hci_cmds, evt_hdr->op, (evt_hdr->rd_wr) ? "RD" : "WR", evt_hdr->dlen); @@ -243,6 +243,9 @@ inline void dump_rx_skb_data(struct sk_buff *skb) } printk(KERN_CONT "\n"); } +#else +static void dump_tx_skb_data(struct sk_buff *skb) {} +static void dump_rx_skb_data(struct sk_buff *skb) {} #endif void fmc_update_region_info(struct fmdev *fmdev, u8 region_to_set) @@ -369,6 +372,7 @@ static void send_tasklet(unsigned long arg) fmdev->resp_comp = fm_cb(skb)->completion; /* Write FM packet to ST driver */ + dump_tx_skb_data(skb); len = g_st_write(skb); if (len < 0) { kfree_skb(skb); @@ -1454,6 +1458,8 @@ static long fm_st_receive(void *arg, struct sk_buff *skb) } memcpy(skb_push(skb, 1), &skb->cb[0], 1); + dump_rx_skb_data(skb); + skb_queue_tail(&fmdev->rx_q, skb); tasklet_schedule(&fmdev->rx_task); -- 2.19.2