Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp824285imu; Sat, 17 Nov 2018 10:10:15 -0800 (PST) X-Google-Smtp-Source: AJdET5fPL1beiv+5pufO4+UzJg9n7qKbitsIs1S2u4256nnH/lcFEyyvYigVvu7m4KMjKsnz3TYY X-Received: by 2002:a62:93d5:: with SMTP id r82-v6mr16404155pfk.55.1542478215623; Sat, 17 Nov 2018 10:10:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542478215; cv=none; d=google.com; s=arc-20160816; b=IAApzB4e5lOlE5lZmlS71z7+Sw+CgUMuJt9QTvIZsnbryrLTS2k65V1JhfSQCy32oB yazB+qtcMTSE79NXFh93wWaKJs+KJL+dztkUr+w33Jluky5KIYUPaINFN9+0Bd2Podm7 n1hnFNkvAw/ogDQndLnMSJfPtXwfg4usXBo7oZKTMyzObfSlHQdFiOOjXzLA9ge/arLI /0ibvGv8pMjRHP3yuCI5qZPc8Zs1bUXbg88qRDI2egaLgCDc4vMiT1sbWbRJRproITkt cN12BhRsEOccWUAGmoIkSw1FsSkG7pD78SNNfXOrHFuKGf/x0T/teFiTrjs9SlK/WNEg 2nBQ== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=+u0wKibDx3O13OJU+wfkGNHRiCo+U6kzKbRzqhegtC8=; b=Xi17J5C1mVbzQXtRh0EyZbgOI9jww43wAD+ekWhtsatW/k6pZBKdTbkYyztbkXIk0G PqLXj7MAEpjCPRiE0BJJF7foxHC0yuRAmHDVgCvZvjhGmsMXJ9BuuuGXXNzIj2NtseXp +bneztz1A8qWQ4B0/FbIYSMV3GxhtWTYP/GN4UECdDFFqsDrqcOzK5z92scp3e3easfw JiNId2nvqLceZAzzoNRM3Aammx5EO1fudjzXD5R2mstZKUhYcvhXulkdw5JT7ru5MeqH wutHWDR2RGe02D3wJSUQuOYrqUhoTQiVgoz/WcmZECYKa7OPlA7RynfLDmkcD9JpNdn4 j6DQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b11-v6si36466442plk.406.2018.11.17.10.09.29; Sat, 17 Nov 2018 10:10:15 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726734AbeKREZF (ORCPT + 99 others); Sat, 17 Nov 2018 23:25:05 -0500 Received: from smtprelay0145.hostedemail.com ([216.40.44.145]:48491 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726442AbeKREZF (ORCPT ); Sat, 17 Nov 2018 23:25:05 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay08.hostedemail.com (Postfix) with ESMTP id 9E38A182CED5B; Sat, 17 Nov 2018 18:07:36 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::,RULES_HIT:2:41:69:355:379:599:800:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1535:1593:1594:1605:1606:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:3871:3872:3874:4117:4321:4605:5007:7514:7903:10004:10848:11026:11232:11233:11473:11658:11914:12043:12048:12438:12555:12683:12740:12760:12895:13439:13972:14659:21080:21451:21627:30054:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.14.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:34,LUA_SUMMARY:none X-HE-Tag: train75_805a7e24805b X-Filterd-Recvd-Size: 6341 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf19.hostedemail.com (Postfix) with ESMTPA; Sat, 17 Nov 2018 18:07:34 +0000 (UTC) Message-ID: <7ed4782b8872b5bf2788d4ce440149112f7e3c4b.camel@perches.com> Subject: Re: [PATCH 1/2] staging: emxx_udc: Split line and fix eol parenthesis From: Joe Perches To: Cristian Sicilia , Greg Kroah-Hartman , Carmeli Tamir , Christopher Diaz Riveros , Arkadiusz Lis , Nathan Chancellor Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Date: Sat, 17 Nov 2018 10:07:33 -0800 In-Reply-To: <1542411969-26570-2-git-send-email-sicilia.cristian@gmail.com> References: <1542411969-26570-1-git-send-email-sicilia.cristian@gmail.com> <1542411969-26570-2-git-send-email-sicilia.cristian@gmail.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 2018-11-17 at 00:46 +0100, Cristian Sicilia wrote: > Fix some parenthesis opened at end of line. It looks like this is all guarded by #ifdef UDC_DEBUG_DUMP which is not ever set and this probably would not compile if it was. It's probably better to remove all the blocks guarded by that flag and the flag itself. > Signed-off-by: Cristian Sicilia > --- > drivers/staging/emxx_udc/emxx_udc.c | 73 ++++++++++++++++++------------------- > 1 file changed, 36 insertions(+), 37 deletions(-) > > diff --git a/drivers/staging/emxx_udc/emxx_udc.c b/drivers/staging/emxx_udc/emxx_udc.c > index bf7c5da..26bd77c 100644 > --- a/drivers/staging/emxx_udc/emxx_udc.c > +++ b/drivers/staging/emxx_udc/emxx_udc.c > @@ -108,20 +108,20 @@ static void _nbu2ss_dump_register(struct nbu2ss_udc *udc) > > dev_dbg(&udc->dev, "\n-USB REG-\n"); > for (i = 0x0 ; i < USB_BASE_SIZE ; i += 16) { > - reg_data = _nbu2ss_readl( > - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i)); > + reg_data = _nbu2ss_readl((u32 *)IO_ADDRESS(USB_BASE_ADDRESS + > + i)); > dev_dbg(&udc->dev, "USB%04x =%08x", i, (int)reg_data); > > - reg_data = _nbu2ss_readl( > - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 4)); > + reg_data = _nbu2ss_readl((u32 *)IO_ADDRESS(USB_BASE_ADDRESS + > + i + 4)); > dev_dbg(&udc->dev, " %08x", (int)reg_data); > > - reg_data = _nbu2ss_readl( > - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 8)); > + reg_data = _nbu2ss_readl((u32 *)IO_ADDRESS(USB_BASE_ADDRESS + > + i + 8)); > dev_dbg(&udc->dev, " %08x", (int)reg_data); > > - reg_data = _nbu2ss_readl( > - (u32 *)IO_ADDRESS(USB_BASE_ADDRESS + i + 12)); > + reg_data = _nbu2ss_readl((u32 *)IO_ADDRESS(USB_BASE_ADDRESS + > + i + 12)); > dev_dbg(&udc->dev, " %08x\n", (int)reg_data); > } > > @@ -473,22 +473,23 @@ static void _nbu2ss_dma_map_single( > if (req->unaligned) { > req->req.dma = ep->phys_buf; > } else { > - req->req.dma = dma_map_single( > - udc->gadget.dev.parent, > - req->req.buf, > - req->req.length, > - (direct == USB_DIR_IN) > - ? DMA_TO_DEVICE : DMA_FROM_DEVICE); > + req->req.dma = > + dma_map_single(udc->gadget.dev.parent, > + req->req.buf, > + req->req.length, > + (direct == USB_DIR_IN) ? > + DMA_TO_DEVICE : > + DMA_FROM_DEVICE); > } > req->mapped = 1; > } else { > if (!req->unaligned) > - dma_sync_single_for_device( > - udc->gadget.dev.parent, > - req->req.dma, > - req->req.length, > - (direct == USB_DIR_IN) > - ? DMA_TO_DEVICE : DMA_FROM_DEVICE); > + dma_sync_single_for_device(udc->gadget.dev.parent, > + req->req.dma, > + req->req.length, > + (direct == USB_DIR_IN) > + ? DMA_TO_DEVICE : > + DMA_FROM_DEVICE); > > req->mapped = 0; > } > @@ -975,8 +976,8 @@ static int _nbu2ss_epn_out_transfer( > > /*-------------------------------------------------------------*/ > /* Receive Length */ > - i_recv_length > - = _nbu2ss_readl(&preg->EP_REGS[num].EP_LEN_DCNT) & EPN_LDATA; > + i_recv_length = > + _nbu2ss_readl(&preg->EP_REGS[num].EP_LEN_DCNT) & EPN_LDATA; > > if (i_recv_length != 0) { > result = _nbu2ss_epn_out_data(udc, ep, req, i_recv_length); > @@ -1115,10 +1116,9 @@ static int _nbu2ss_epn_in_pio( > i_word_length = length / sizeof(u32); > if (i_word_length > 0) { > for (i = 0; i < i_word_length; i++) { > - _nbu2ss_writel( > - &preg->EP_REGS[ep->epnum - 1].EP_WRITE > - , p_buf_32->dw > - ); > + _nbu2ss_writel(&preg->EP_REGS[ep->epnum - > + 1].EP_WRITE, > + p_buf_32->dw); > > p_buf_32++; > } > @@ -1472,13 +1472,11 @@ static inline int _nbu2ss_req_feature(struct nbu2ss_udc *udc, bool bset) > if (0x0000 == (wIndex & 0xFF70)) { > if (selector == USB_ENDPOINT_HALT) { > ep_adrs = wIndex & 0xFF; > - if (!bset) { > - _nbu2ss_endpoint_toggle_reset( > - udc, ep_adrs); > - } > + if (!bset) > + _nbu2ss_endpoint_toggle_reset(udc, > + ep_adrs); > > - _nbu2ss_set_endpoint_stall( > - udc, ep_adrs, bset); > + _nbu2ss_set_endpoint_stall(udc, ep_adrs, bset); > > result = 0; > } > @@ -1524,8 +1522,8 @@ static void _nbu2ss_epn_set_stall( > for (limit_cnt = 0 > ; limit_cnt < IN_DATA_EMPTY_COUNT > ; limit_cnt++) { > - regdata = _nbu2ss_readl( > - &preg->EP_REGS[ep->epnum - 1].EP_STATUS); > + regdata = _nbu2ss_readl(&preg->EP_REGS[ep->epnum - > + 1].EP_STATUS); > > if ((regdata & EPN_IN_DATA) == 0) > break; > @@ -2666,9 +2664,10 @@ static int nbu2ss_ep_queue( > > if (req->unaligned) { > if (!ep->virt_buf) > - ep->virt_buf = dma_alloc_coherent( > - NULL, PAGE_SIZE, > - &ep->phys_buf, GFP_ATOMIC | GFP_DMA); > + ep->virt_buf = dma_alloc_coherent(NULL, > + PAGE_SIZE, > + &ep->phys_buf, > + GFP_ATOMIC | GFP_DMA); > if (ep->epnum > 0) { > if (ep->direct == USB_DIR_IN) > memcpy(ep->virt_buf, req->req.buf,