Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp130248ybc; Mon, 11 Nov 2019 21:57:37 -0800 (PST) X-Google-Smtp-Source: APXvYqxxJj69DqRxLWSYCnToKLcOm03D9W7WYzDtXu0GElzvQAvCDPo8OQ8pl3CXqvjfSQMXqb1j X-Received: by 2002:a50:d717:: with SMTP id t23mr30381142edi.231.1573538257347; Mon, 11 Nov 2019 21:57:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573538257; cv=none; d=google.com; s=arc-20160816; b=j8spvBS8iv4aQXqH+75b9td/qKjF3NIhpAp6duUAAQXH6ya9TJLI5vWjhMi6THoCrO 706lpnMLskauZZ8tGXmmfKZOfjrwQ3XdGRzCX9gp8QvA8XrhZiwOkhH8dE36su0diZZO 9XwHsU3DkihlfdGzogm/8zcwKfJPfDjpV6Gqzt/14jmUP44xixih9khoNBomlm+rLt1B mq67AJxMvAhJXF4spJvhxZUnrCQ9fGBk+/BW0Oy2/7EHEj1nS0nDa5MDtScFkpmyDCdz ST1dNRPoR00MRBtBRsdBRfsR4o1chhKckiDW+5jqdzwFVwWYm8AvxX5soWRvUhuSSpZZ J4Hw== 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 :references:in-reply-to:from:subject:cc:to:message-id:date :dkim-signature; bh=t4H1BAGawGahyIzPrHbrHyHMfWVwsFAeBKzU7Z42zAo=; b=YWEC42KPfDDyhyPf1OkTVADYnsJ3QGsNYtAwMTggYh0cVuft2yWP4zWiovtLGGp5Yu q6Gi0HBNL2x7QKDPkZw17RHF9Uc2Qxya7ObNdAanXs/AseYfv9swPbbrYalYkvHPq8hP 1VOnuo1pmoKTUzm2d/zNCGWWxnVkftqSvDRjNmdOQ1yps1cDVXt7eMjoEj1c0yVnKMfQ y6zSTMk4JsgcEu/Aq1UTIi4/t8HMWjn+yA8ubMxRdv3lZu0/cbs3AgYsR0UTAPSiKTLT qWXPJbfVmBpjiqDH+e9lwOBNyN77V4UgHUeCs4rYYJ8IvnAila/tcdq1+vjcjBrD6Dbq fcmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AkjoSmay; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2si10909672ejz.65.2019.11.11.21.57.13; Mon, 11 Nov 2019 21:57:37 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=AkjoSmay; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727012AbfKLF4c (ORCPT + 99 others); Tue, 12 Nov 2019 00:56:32 -0500 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:30890 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725775AbfKLF4b (ORCPT ); Tue, 12 Nov 2019 00:56:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1573538190; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=t4H1BAGawGahyIzPrHbrHyHMfWVwsFAeBKzU7Z42zAo=; b=AkjoSmayGVAAMhbnFjP0BTCOzo4XoUQg3jiWRBBBJ8WIEPNEH7CJJUDnq0H0KBNWVLSNT+ H6TCpgbAtyB9COvbWfu7X479/aC2lKTw2/x1HPTZ4b0M5dUVOsdFW8OWGYH4AgLr9Lr2pH xMaC4I1fKEFSR3CRqy+KQWMx+kuuVeo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-50-OfrAog8PPI22IT-AmCI-Nw-1; Tue, 12 Nov 2019 00:56:27 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C3645800C61; Tue, 12 Nov 2019 05:56:24 +0000 (UTC) Received: from localhost (ovpn-112-54.rdu2.redhat.com [10.10.112.54]) by smtp.corp.redhat.com (Postfix) with ESMTP id 5D2D860852; Tue, 12 Nov 2019 05:56:18 +0000 (UTC) Date: Mon, 11 Nov 2019 21:56:17 -0800 (PST) Message-Id: <20191111.215617.1625420574702786179.davem@redhat.com> To: Mark-MC.Lee@mediatek.com Cc: sean.wang@mediatek.com, john@phrozen.org, matthias.bgg@gmail.com, andrew@lunn.ch, robh+dt@kernel.org, mark.rutland@arm.com, opensource@vdorst.com, devicetree@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, jakub.kicinski@netronome.com Subject: Re: [PATCH net,v2 1/3] net: ethernet: mediatek: Integrate GDM/PSE setup operations From: David Miller In-Reply-To: <20191111065129.30078-2-Mark-MC.Lee@mediatek.com> References: <20191111065129.30078-1-Mark-MC.Lee@mediatek.com> <20191111065129.30078-2-Mark-MC.Lee@mediatek.com> Mime-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-MC-Unique: OfrAog8PPI22IT-AmCI-Nw-1 X-Mimecast-Spam-Score: 0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: MarkLee Date: Mon, 11 Nov 2019 14:51:27 +0800 > +static void mtk_gdm_config(struct mtk_eth *eth, u32 config) > +{ > +=09int i; > + > +=09for (i =3D 0; i < MTK_MAC_COUNT; i++) { > +=09=09u32 val =3D mtk_r32(eth, MTK_GDMA_FWD_CFG(i)); > + > +=09=09/* default setup the forward port to send frame to PDMA */ > +=09=09val &=3D ~0xffff; > + > +=09=09/* Enable RX checksum */ > +=09=09val |=3D MTK_GDMA_ICS_EN | MTK_GDMA_TCS_EN | MTK_GDMA_UCS_EN; > + > +=09=09val |=3D config; > + > +=09=09mtk_w32(eth, val, MTK_GDMA_FWD_CFG(i)); > +=09} > +=09/*Reset and enable PSE*/ Please put spaces before and after the comment sentence, like: =09/* Reset and enable PSE */