Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp513880pxf; Wed, 7 Apr 2021 05:21:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxbWscJKFQ0eFU3eLX9ui9AeZveKSOkYK4F64VnogXVzgUf74qzZAJum5OyghnA0OW+yjFp X-Received: by 2002:a05:6e02:170c:: with SMTP id u12mr2623525ill.100.1617798083427; Wed, 07 Apr 2021 05:21:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617798083; cv=none; d=google.com; s=arc-20160816; b=yn3Gjr4v7MGS4pn3g8SAnDp82hj1Bh1HtbGS4t9M+1KZFn4MZIHKKUheOk30ji8AAl zWkBZtBSpCkpjNbAyZa+gci+iPlCBV2ipigabNYFyda8dOfmsgFgke2iX9sqEUk7ujLJ DfxRU0t51h7m1eIgInoHj8xQlXAUVU4NnzJbV4VMzNrqEvTYwUF9nQpScpvMNt1Zf0KD aMcBe7SwZfHzhoH9JxrvnGwSNKPwWpjmaUNIe0agaLD0eM3tru97FxTr/1vGOfKi17Gw JlJSRN8m6KWInsthIqb41rPydNecHtOmXNJeV4vjSQnp46mTBzBdVNmaDB8nEfibkFyl jXaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=SmuAICY7BfV2FQ+TWZqN5rr6C144dVwfzZ62LXjDgDI=; b=MGFNTtDmUwqoT8OJMHLFDLB03BzTBXObsw1+gi9jdDUEpm+uU3u4EljD7ZhcKAZ1M3 gQ7MtLx0LB9aYbB4XScLYybBsFqFQa0jt7I60wZmNtXDuLcrFt4mhWeHmfaa9PHc0fdM pzdR9SkWK9/li9pnIDnlDTehkBiwv2VXwfz/ErV2iEgZJNdxVNuBtS82YZ3SOHhWPTbP YCn4VoDl3VlJfkJ+W6gVBNiVlZeBsoDsn+dXZn/GAjkgB+gqW7ROLYslS9UeXgAMg5VM x9WRgQh4t7I/ICBSRvi7m+T+xZ1YMt9DxlyqQP+/VCp+Epg4akAMsOyvIrgDxqcZsgLp MZEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EhawNeEX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q15si21096009iow.39.2021.04.07.05.21.11; Wed, 07 Apr 2021 05:21:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=EhawNeEX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239005AbhDFT4x (ORCPT + 99 others); Tue, 6 Apr 2021 15:56:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233947AbhDFT4w (ORCPT ); Tue, 6 Apr 2021 15:56:52 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7FDA7C06174A for ; Tue, 6 Apr 2021 12:56:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=SmuAICY7BfV2FQ+TWZqN5rr6C144dVwfzZ62LXjDgDI=; b=EhawNeEXpMRPlr1ZhJ3QQHx5Zf +LoaIUlKOpitU0CxrCHiXJT68Dr645j4vuu6J0PZIqVtqW+RSRoyPzocyN6tBo86mm169kTIUAJtW mOvce3s1KJ2x+9bIgfqJvCInxD1dYguBlOwvsXwYLNrYsw2sQwdODQCAeXh/5Uk5YWT2hnYX+XISl jS62mWkspKvymAoUOuSRrTnQl85OXp9zr4dygdB0YHq7xCDExbcMdAGsxkascDc7hUSWDVFiYVg+F o8KUXoNpkgVQcglfei6ujXuv5GOLqI99o4p2Gy25H/aLjM9VvyDckYLORCgvK7qj29C1PuVGB2CJE Nm3geIqQ==; Received: from willy by casper.infradead.org with local (Exim 4.94 #2 (Red Hat Linux)) id 1lTroD-00DLMI-Tr; Tue, 06 Apr 2021 19:56:27 +0000 Date: Tue, 6 Apr 2021 20:56:21 +0100 From: Matthew Wilcox To: Beatriz Martins de Carvalho Cc: linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org Subject: Re: [Outreachy kernel] [RESEND PATCH] staging: emxx_udc: Ending line with argument Message-ID: <20210406195621.GU2531743@casper.infradead.org> References: <20210406193409.96428-1-martinsdecarvalhobeatriz@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210406193409.96428-1-martinsdecarvalhobeatriz@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 08:34:09PM +0100, Beatriz Martins de Carvalho wrote: > Cleans up check of "Lines should not end with a '('" > with argument present in next line in file emxx_udc.c I appreciate that you've removed the checkpatch warning, but this is still harder to read than the original used to be. > - _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); > - length = _nbu2ss_readl( > - &ep->udc->p_regs->EP_REGS[ep->epnum - 1].EP_LEN_DCNT); > + length = _nbu2ss_readl(&ep->udc->p_regs->EP_REGS[ep->epnum - 1].EP_LEN_DCNT); > - regdata = _nbu2ss_readl( > - &preg->EP_REGS[ep->epnum - 1].EP_STATUS); > + regdata = _nbu2ss_readl(&preg->EP_REGS[ep->epnum - 1].EP_STATUS); The real problem with this driver is that their abstraction layer is wrong. For example: /* Interrupt Status */ status = _nbu2ss_readl(&udc->p_regs->EP_REGS[num].EP_STATUS); /* Interrupt Clear */ _nbu2ss_writel(&udc->p_regs->EP_REGS[num].EP_STATUS, ~status); If instead this were: status = nbu2ss_read_ep_status(udc, num); nbu2ss_write_ep_status(udc, num, ~status); that would be a lot shorter and clearer. Cleanups along these lines would be a lot more useful, and would fix the 80 column warning.