Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp8041877ybi; Thu, 6 Jun 2019 05:52:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqxm94UgwGGC8fWF7lKM2I89k/K1mew+6aBzwGjAFyWFX+uIoEp+d9wNh6yjpT/agoGB5b58 X-Received: by 2002:a17:90a:9281:: with SMTP id n1mr49330778pjo.25.1559825542257; Thu, 06 Jun 2019 05:52:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559825542; cv=none; d=google.com; s=arc-20160816; b=buJVJ9i0CTsKjE7zc9yb/t2FCVbgspA7IiICNUDTsdsUo7bKU8xaSV9o2ZNXOWgDCp 61Gm1IjJvVsVVJ+2a4oqAYvsV0Gw+F3kxdvu7tLgyI28ZUKy7yhhpCdPird4GvenzJ5K aNIs9zOOY8SkWOxxDrMKQELWJSaZ3fVZifuzdgLRYzxPU8tEppRM4SudTthC6fJAZaHa hyNTZSse5AWu97f5l5I1c21NdFQrNMJNuwdk0dW56zR8PFI1ys6HJpwRb9iUqk5F0nBJ 79iJ1i07Hl9XEckuiWgv1muJnPgVct3TWVNrxUqkrUiC0MzHKZTjVDmfHUErnrKCxkRQ BraQ== 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=AvzxyZQyViAqtwQYq7pnaktuRRb4B8pnvEPR+rdnJvU=; b=IO/kixEmWX+kp4/DbryGe91CQ795mb4OaAWbjquLW9v8gDUXcqBJAH/QZAk9VO1r4x K1lX0cxPyML90zYOVpdOyjc1n9uppJbSWoatz4YpEPbBKWZ2njxsqoxT2+/CFti4thn0 2UGBNEBEj/SvkRDqqh/aPMd5un6Q9T3Vn/9srQ0bvxD1UPXWx65j1tf+0Vc/PSsasH9Z p9ESGHOeob7ryBy4Vn0ZYLIV5QT9AteodVx3b2J8Nx7qiME6R5p3xqkOB6qOi7Is4t5/ 6vaEgLYZvDS9oNYrbirAPyADFgfIZ8YoqIDywOVfGGaldO3WnzbsYBGJpy5+y6fL8Jy1 e5HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Q8uBqHnU; 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 p5si1963481pgk.352.2019.06.06.05.52.05; Thu, 06 Jun 2019 05:52:22 -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=Q8uBqHnU; 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 S1728749AbfFFMEg (ORCPT + 99 others); Thu, 6 Jun 2019 08:04:36 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:51964 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728561AbfFFMEf (ORCPT ); Thu, 6 Jun 2019 08:04:35 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x56C4Q8r021326; Thu, 6 Jun 2019 07:04:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1559822666; bh=AvzxyZQyViAqtwQYq7pnaktuRRb4B8pnvEPR+rdnJvU=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=Q8uBqHnU3UExbGChb9DO4sjnnhugmJsFrBP9iCTlHMLDf+xbcSW6AE99IIiCiqDJF Q9S3YKLmZfzTaVwlDUpPnzpF3UlZaqnM1sXs8nwWQdT/D+pe7ihHLHIDcbkfIGSrt2 gdlF0IQQDu+iHtutHyDFYkRAKPN6moljaKzPs/Lo= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x56C4QpG010887 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 6 Jun 2019 07:04:26 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 6 Jun 2019 07:04:26 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Thu, 6 Jun 2019 07:04:26 -0500 Received: from [192.168.2.10] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x56C4N15062131; Thu, 6 Jun 2019 07:04:23 -0500 Subject: Re: [PATCH 01/16] firmware: ti_sci: Add resource management APIs for ringacc, psi-l and udma To: Lokesh Vutla , , , , CC: , , , , , , , References: <20190506123456.6777-1-peter.ujfalusi@ti.com> <20190506123456.6777-2-peter.ujfalusi@ti.com> From: Peter Ujfalusi Message-ID: <78a2d824-d730-4174-e80b-4153a2744427@ti.com> Date: Thu, 6 Jun 2019 15:04:51 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit 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 Hi Lokesh, On 06/06/2019 9.00, Lokesh Vutla wrote: > Hi Peter, > > On 06/05/19 6:04 PM, Peter Ujfalusi wrote: >> Signed-off-by: Peter Ujfalusi > > Patch has the following checkpatch warnings and checks which can be fixed: > > WARNING: Missing commit description - Add an appropriate one How did I missed it? > CHECK: Lines should not end with a '(' > #262: FILE: drivers/firmware/ti_sci.c:2286: > +static int ti_sci_cmd_rm_udmap_tx_ch_cfg( > > CHECK: Lines should not end with a '(' > #323: FILE: drivers/firmware/ti_sci.c:2347: > +static int ti_sci_cmd_rm_udmap_rx_ch_cfg( > > CHECK: Lines should not end with a '(' > #383: FILE: drivers/firmware/ti_sci.c:2407: > +static int ti_sci_cmd_rm_udmap_rx_flow_cfg1( > > CHECK: Lines should not end with a '(' > #1414: FILE: include/linux/soc/ti/ti_sci_protocol.h:455: > + int (*rx_flow_cfg)( > > total: 0 errors, 2 warnings, 4 checks, 1399 lines checked There must be a reason why these left, but I will take another look. >> --- >> drivers/firmware/ti_sci.c | 439 +++++++++++++++ >> drivers/firmware/ti_sci.h | 704 +++++++++++++++++++++++++ >> include/linux/soc/ti/ti_sci_protocol.h | 216 ++++++++ >> 3 files changed, 1359 insertions(+) >> >> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c >> index 64d895b80bc3..af3ebcdeab18 100644 >> --- a/drivers/firmware/ti_sci.c >> +++ b/drivers/firmware/ti_sci.c > > [..snip.] > >> +} >> + >> +static int ti_sci_cmd_rm_psil_pair(const struct ti_sci_handle *handle, >> + u32 nav_id, u32 src_thread, u32 dst_thread) >> +{ > > All the psil ops doesn't have the kernel-doc function comments. Just be > consistent with other functions :) OK. >> + struct ti_sci_msg_hdr *resp; >> + struct ti_sci_msg_psil_pair *req; >> + struct ti_sci_xfer *xfer; >> + struct ti_sci_info *info; >> + struct device *dev; >> + int ret = 0; >> + >> + if (IS_ERR(handle)) >> + return PTR_ERR(handle); >> + if (!handle) >> + return -EINVAL; >> + >> + info = handle_to_ti_sci_info(handle); >> + dev = info->dev; >> + >> + xfer = ti_sci_get_one_xfer(info, TI_SCI_MSG_RM_PSIL_PAIR, >> + TI_SCI_FLAG_REQ_ACK_ON_PROCESSED, >> + sizeof(*req), sizeof(*resp)); >> + if (IS_ERR(xfer)) { >> + ret = PTR_ERR(xfer); >> + dev_err(dev, "RM_PSIL:Message reconfig failed(%d)\n", ret); >> + return ret; >> + } >> + req = (struct ti_sci_msg_psil_pair *)xfer->xfer_buf; >> + req->nav_id = nav_id; >> + req->src_thread = src_thread; >> + req->dst_thread = dst_thread; >> + >> + ret = ti_sci_do_xfer(info, xfer); >> + if (ret) { >> + dev_err(dev, "RM_PSIL:Mbox send fail %d\n", ret); >> + goto fail; >> + } >> + >> + resp = (struct ti_sci_msg_hdr *)xfer->xfer_buf; >> + ret = ti_sci_is_response_ack(resp) ? 0 : -EINVAL; >> + >> +fail: >> + ti_sci_put_one_xfer(&info->minfo, xfer); >> + >> + return ret; >> +} >> + > > [..snip..] > >> + */ >> +struct ti_sci_msg_rm_ring_cfg_req { >> + struct ti_sci_msg_hdr hdr; >> + u32 valid_params; >> + u16 nav_id; >> + u16 index; >> + u32 addr_lo; >> + u32 addr_hi; >> + u32 count; >> + u8 mode; >> + u8 size; >> + u8 order_id; >> +} __packed; >> + >> +/** >> + * struct ti_sci_msg_rm_ring_cfg_resp - Response to configuring a ring. >> + * >> + * @hdr: Generic Header >> + */ >> +struct ti_sci_msg_rm_ring_cfg_resp { >> + struct ti_sci_msg_hdr hdr; >> +} __packed; > > If it is a generic ACK, NACK response, just use the header directly. Sure, I'll fix it and other places if any. > > [..snip..] > >> + */ >> +struct ti_sci_msg_rm_udmap_rx_ch_cfg_req { >> + struct ti_sci_msg_hdr hdr; >> + u32 valid_params; >> + u16 nav_id; >> + u16 index; >> + u16 rx_fetch_size; >> + u16 rxcq_qnum; >> + u8 rx_priority; >> + u8 rx_qos; >> + u8 rx_orderid; >> + u8 rx_sched_priority; >> + u16 flowid_start; >> + u16 flowid_cnt; >> + u8 rx_pause_on_err; >> + u8 rx_atype; >> + u8 rx_chan_type; >> + u8 rx_ignore_short; >> + u8 rx_ignore_long; >> + u8 rx_burst_size; >> + > > extra line? Will remove it. > >> +} __packed; >> + >> +/** > > > Thanks and regards, > Lokesh > Thanks, - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki