Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp1281591img; Tue, 19 Mar 2019 04:30:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNwI5LO2ShLchDBwCL+GQO71baW30rMDmCXHulTZ968oo4EJC+NN142HrrCa38m00IY8D0 X-Received: by 2002:a63:1060:: with SMTP id 32mr1367071pgq.126.1552995048454; Tue, 19 Mar 2019 04:30:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552995048; cv=none; d=google.com; s=arc-20160816; b=JwqPOCl0wgXLKXDqhQOhD+zD2JG7lXU0gzNeisxEbNiWP7nrIUbQHBgfzf4yrqjtrs 5HRMKXHvS0+n6uBdh5kZiNkEwK4ojPLtzU/RJGCvnjq8SkEdo/KjyPPWKNpTg7CHPFfU Ni3u9jf41MsS3CAOls8ECoEBD3GPoNSr921kvt+fYOmrh5KuoIvmB6m2RancHyL8TWJp xYHu74m9UMTItucJK/BqmdpmkB7d6CHI9kTbVUxylSnebG7ORFb2FM5LVQu0cEh6r1iC d0RnCxZbLo/Z7MrweM7LaH6W5Y44HF6xQ0XoUMTuMgHnZdLDSZOYdrsbW1T9K1CdUKzI 9mUQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Es6vVtWdeJw30D9IEs+AiNyE0v+OEBRQ3nwhlu3+zcc=; b=lOpofnS41PvLExHK2qXA/7vbrmgm+cIzniV+m+83g0c+cxUp/9C6y5H2x2cDhevPpd 1QrgYXddrap4iGIelBUJ+Sz/b0Axa5fDV1KfCZ/focQ2aBoSbGW1piCbkmyYfs+xJeXX Xei6NK2Ensw8SBDsa48oPopUnyLmWQs2sbWqGTwLHDOnF0u+QC6g4ExoMuCiMGrCuGUp WD4AakJGpzPS5Bfm0Bsj4b5nKWWfzsITf9brQryNMpfLEDViUDOtqkItJXD7HBvrRSX5 rIOzAaVppdyV69uHNK6H/viYdCFS5Xje9V7j76q7EWFUlaE3Uzd+Ey53o5m8HjVjneor Cugg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nBPWCPPZ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si11386219pgh.457.2019.03.19.04.30.32; Tue, 19 Mar 2019 04:30:48 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=nBPWCPPZ; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727218AbfCSL34 (ORCPT + 99 others); Tue, 19 Mar 2019 07:29:56 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47130 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725934AbfCSL34 (ORCPT ); Tue, 19 Mar 2019 07:29:56 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id x2JBTl4w093726; Tue, 19 Mar 2019 06:29:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1552994987; bh=Es6vVtWdeJw30D9IEs+AiNyE0v+OEBRQ3nwhlu3+zcc=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=nBPWCPPZYiQU2K4IoDaIcFfUX0coZ7qeeDkfbudf19LAn9vRosAtzS6tEUmVCZ0xA yiPihtICQB7RlkRILhFEiSYSTBFaxPVw17lTce3DzB+niQcRFO6lP4oAP9CRhbRfMP eIu95rgz9xqQr+v297bxhhhAQgQe3eVj7NqN2LeM= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x2JBTlAm038920 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 19 Mar 2019 06:29:47 -0500 Received: from DLEE108.ent.ti.com (157.170.170.38) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 19 Mar 2019 06:29:46 -0500 Received: from dflp32.itg.ti.com (10.64.6.15) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1713.5 via Frontend Transport; Tue, 19 Mar 2019 06:29:46 -0500 Received: from [172.22.111.142] (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id x2JBTkKb012195; Tue, 19 Mar 2019 06:29:46 -0500 Subject: Re: [PATCH v10 1/4] can: m_can: Create a m_can platform framework To: Wolfgang Grandegger , , CC: , , References: <20190315170257.12847-1-dmurphy@ti.com> <0b9fc85a-25bc-d85e-83c9-bc974e0b44e5@grandegger.com> From: Dan Murphy Message-ID: <455ea343-818a-e647-6315-e8855ca43ad2@ti.com> Date: Tue, 19 Mar 2019 06:29:23 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.3 MIME-Version: 1.0 In-Reply-To: <0b9fc85a-25bc-d85e-83c9-bc974e0b44e5@grandegger.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello On 3/19/19 1:24 AM, Wolfgang Grandegger wrote: > Hello Dan, > > checkpatch still reports one "line over 80 characters". > Yes I saw that one before I submitted I was not happy with how it was to be resolved. It made the line unreadable I will see how to fix it. >> + >> + if (priv->is_peripheral) { >> + if (priv->tx_skb) { >> + netdev_err(dev, "hard_xmit called while tx busy\n"); >> + return NETDEV_TX_BUSY; >> + } >> + >> + if (priv->can.state == CAN_STATE_BUS_OFF) { >> + m_can_clean(dev); >> + } else { > > Could you please add a comment here about stopping the queue early. I > would also mention that an improved version may use an array of tx_skbs > to support queueing of outgoing messages. > Ack >> + priv->tx_skb = skb; >> + netif_stop_queue(priv->net); >> + queue_work(priv->tx_wq, &priv->tx_work); >> + } >> + } else { >> + priv->tx_skb = skb; >> + return m_can_tx_handler(priv); >> } >> >> return NETDEV_TX_OK; >> } > > At the next respin, you can then add my > > Acked-by: Wolfgang Grandegger > > to the Patch 1/1, 1/2 and 1/4. > > Thanks for your contribution and patience. > No worries. I am wrapping up tests on our side and see if there is any customer feedback on this version. So far the tests look fine no changes. I should have v11 out by the end of the week. Latest cangen data for tcan is below. bitrate 500000 dbitrate 2000000 cangen can0 -g 0 -i -f & 11118 transmitted frames (TXF) 11118 received frames (RXF) 0 matched frames (RXMF) 0 % total match ratio (RXMR) 442 frames/s total tx rate (TXR) 442 frames/s total rx rate (RXR) 0 % current match ratio (CRXMR) 117 frames/s current tx rate (CTXR) 123 frames/s current rx rate (CRXR) 0 % max match ratio (MRXMR) 498 frames/s max tx rate (MTXR) 488 frames/s max rx rate (MRXR) 0 current receive list entries (CRCV) 0 maximum receive list entries (MRCV) > Wolfgang > -- ------------------ Dan Murphy