Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp968166ybp; Fri, 4 Oct 2019 07:42:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaD/SeX8OtdHV1kV2/72VvmPhvoJKxj0Dad7+W8d7iCsDSmCAzmpXSzq5vN7SueYNm/azW X-Received: by 2002:a17:906:c742:: with SMTP id fk2mr12946268ejb.44.1570200170986; Fri, 04 Oct 2019 07:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570200170; cv=none; d=google.com; s=arc-20160816; b=hMsOIIigV19zA4DEOOyIwHLvVPUE34NuxDTVI5gbns1jjoGVSa9Ea5VHPCvTwVXZ16 6b0s3sb159th8ALSn3pzjh5RvaMndDSz693TGzcXvpxZXcDo7RPTVbnRiFvNNeKezXrS v5XsQwubmBa+yjhk0fWnv9Gt5UHZ+GVZizxI5HXjKLwb1E4uTu/s0ieixO9sFgwMeM/B 2xK4HSpXqcI1YDQYt2Vw7TlyCsBUh954Vjgo9jQBzo+qb/Zna6j/80i9yTlrZJuxSghC Drk/61bKm01zefPb6ZHFgxfSv4HgjrkWR6FlYZBKzu0vAvI5voSy8ytoLGjC/2JTTkk7 BYUA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=XEj1k0dJ1qcoM+UawUbwXKpbMAMjE8MaxelnljfnAoA=; b=Uj03TO0fOFpXzYk1dcCwsv+rjBZThV6GhCWwLm726LFDYZz7JDRtVkciIrpr490mOC qLY+Tdy784GtqgCjbdL6BWwL7nPoVW8KkqV0ZYrAlo6TJJxvlVBrSI04KpmlZ6u4+kzs UgjoLjwIuakKYoahR2hG3fhmpzQpW4QcuMLupk1FSz5HAOpLs/qtAeJJSEm4DGCbMnyV rr7ZPsRhSHaY2AaRADVemyxWsXyONSD5uO1z1DVYlrt1YUP/s87WI4zp9pjQJO7ch7ji wleiiNY7wR3wY4FepF0de2GgegvkZ14CmU9QkRlOEijW1zQmEDpi3wpW9rjSNw/IlJes zSkg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bitwise.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n6si3463182edq.228.2019.10.04.07.42.26; Fri, 04 Oct 2019 07:42:50 -0700 (PDT) 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; 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=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=bitwise.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389334AbfJDOkz (ORCPT + 99 others); Fri, 4 Oct 2019 10:40:55 -0400 Received: from mail.bitwise.fi ([109.204.228.163]:44302 "EHLO mail.bitwise.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389119AbfJDOkx (ORCPT ); Fri, 4 Oct 2019 10:40:53 -0400 X-Greylist: delayed 476 seconds by postgrey-1.27 at vger.kernel.org; Fri, 04 Oct 2019 10:40:52 EDT Received: from localhost (localhost [127.0.0.1]) by mail.bitwise.fi (Postfix) with ESMTP id A3E8260027; Fri, 4 Oct 2019 17:32:55 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at mail.bitwise.fi Received: from mail.bitwise.fi ([127.0.0.1]) by localhost (mail.bitwise.fi [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1_nSWJbb_H5q; Fri, 4 Oct 2019 17:32:52 +0300 (EEST) Received: from [192.168.5.238] (fw1.dmz.bitwise.fi [192.168.69.1]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: anssiha) by mail.bitwise.fi (Postfix) with ESMTPSA id C99FB60064; Fri, 4 Oct 2019 17:32:52 +0300 (EEST) Subject: Re: [PATCH 2/6] net: can: xilinx_can: Fix flags field initialization for axi can and canps To: Appana Durga Kedareswara rao Cc: wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, michal.simek@xilinx.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-can@vger.kernel.org References: <1552908766-26753-1-git-send-email-appana.durga.rao@xilinx.com> <1552908766-26753-3-git-send-email-appana.durga.rao@xilinx.com> From: Anssi Hannula Message-ID: Date: Fri, 4 Oct 2019 17:32:52 +0300 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <1552908766-26753-3-git-send-email-appana.durga.rao@xilinx.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-GB Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18.3.2019 13.32, Appana Durga Kedareswara rao wrote: > AXI CAN IP and CANPS IP supports tx fifo empty feature, this patch updates > the flags field for the same. > > Signed-off-by: Appana Durga Kedareswara rao > --- > drivers/net/can/xilinx_can.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/can/xilinx_can.c b/drivers/net/can/xilinx_can.c > index 2de51ac..22569ef 100644 > --- a/drivers/net/can/xilinx_can.c > +++ b/drivers/net/can/xilinx_can.c > @@ -1428,6 +1428,7 @@ static const struct dev_pm_ops xcan_dev_pm_ops = { > }; > > static const struct xcan_devtype_data xcan_zynq_data = { > + .flags = XCAN_FLAG_TXFEMP, > .bittiming_const = &xcan_bittiming_const, > .btr_ts2_shift = XCAN_BTR_TS2_SHIFT, > .btr_sjw_shift = XCAN_BTR_SJW_SHIFT, Thanks for catching this, this line seemed to have been incorrectly removed by my 9e5f1b273e ("can: xilinx_can: add support for Xilinx CAN FD core"). But: > @@ -1435,6 +1436,7 @@ static const struct xcan_devtype_data xcan_zynq_data = { > }; > > static const struct xcan_devtype_data xcan_axi_data = { > + .flags = XCAN_FLAG_TXFEMP, > .bittiming_const = &xcan_bittiming_const, > .btr_ts2_shift = XCAN_BTR_TS2_SHIFT, > .btr_sjw_shift = XCAN_BTR_SJW_SHIFT, Are you sure this is right? In the documentation [1] there does not seem to be any TXFEMP interrupt, it would be interrupt bit 14 but AXI CAN 5.0 seems to only go up to 11. Or maybe it is undocumented or there is a newer version somewhere? [1] https://www.xilinx.com/support/documentation/ip_documentation/can/v5_0/pg096-can.pdf -- Anssi Hannula / Bitwise Oy +358 503803997