Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2677688pxj; Mon, 14 Jun 2021 04:45:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwj+V5vd/pzuRYa0PhGDU08uox8TIVMNd1C9hJuQgZCV5N2HbEIj+4uZJPJ2lsfEOa2MNfe X-Received: by 2002:a17:906:1790:: with SMTP id t16mr14723324eje.203.1623671119636; Mon, 14 Jun 2021 04:45:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623671119; cv=none; d=google.com; s=arc-20160816; b=eR+Chr9Ir93ObBwHv9KIXCYJVNG4Ejpv0zLp4JwX7jHJs4E6as4VJFKSpazq9CTC3y PSEZN0PKzs5T7ZN3RtpeYcFPLAvnzxqw8qSBaG0OjO/BlNV0IbSqLoc0g+LuZ/HIUxrV Q1VWoAvhm6+il62y8vRNrRwna1D1UjqNVu+dt19VRU/2EpJBxwCcHyLqwNOczuoSgvPV t4xe1NYu8+bSwAl1n0UHa9hjuOoId80Z3MHnOoJSjypl2cF3mJDN3AwMGuhbGVPfE+x2 F7XR+2GNUa9cC6DSvftaQRBPL7WzAhzLTR2GastH3+hSdeaQ8WSgl4k01/Mq3dwRMX/i cDIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=9x65ozSl95slEz7wBJnEVMhGbXuUzunMLKHFU/dMzkw=; b=ZlEj3/zhwVG8atqKhvDSH0+wHQDD2HZPRDs1yQqgCrclczx/tztijztKuS8GNwyO6j KtLiMFO3nLjil+Bi7sHT/thD92XOPJ6UHhFH3bDJNWuXjeqgXmma9GJ4hRiufO61+zRU SCqVzf3bCelLS7wMF9IVMtbtAuZbzmTuaTm9Kzo26RJzMYwp6G93OxzjiCsUsXhrcL9i IBVX4gNNpXtsV7rqtZg/kKAX+TP6s9H5jC8QH06LdOgsBFHTgq4cW2mudi8uQmZVxeLU EolhOSp1MrObYSObqsfZ8GU7rVJ6WpGd1rxiajHrrXG+SxfQ2VShxLfWB5vWslR6O04N 3FqQ== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s16si11640711edr.339.2021.06.14.04.44.57; Mon, 14 Jun 2021 04:45:19 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236402AbhFNLni (ORCPT + 99 others); Mon, 14 Jun 2021 07:43:38 -0400 Received: from szxga02-in.huawei.com ([45.249.212.188]:4434 "EHLO szxga02-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235736AbhFNLeJ (ORCPT ); Mon, 14 Jun 2021 07:34:09 -0400 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.53]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4G3Tjg2T0Vz6yYX; Mon, 14 Jun 2021 19:28:55 +0800 (CST) Received: from dggemi759-chm.china.huawei.com (10.1.198.145) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2176.2; Mon, 14 Jun 2021 19:32:03 +0800 Received: from localhost.localdomain (10.67.165.24) by dggemi759-chm.china.huawei.com (10.1.198.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Mon, 14 Jun 2021 19:32:02 +0800 From: Guangbin Huang To: , , , , CC: , , , Subject: [PATCH V2 net-next 02/11] net: z85230: add blank line after declarations Date: Mon, 14 Jun 2021 19:28:42 +0800 Message-ID: <1623670131-49973-3-git-send-email-huangguangbin2@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1623670131-49973-1-git-send-email-huangguangbin2@huawei.com> References: <1623670131-49973-1-git-send-email-huangguangbin2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems705-chm.china.huawei.com (10.3.19.182) To dggemi759-chm.china.huawei.com (10.1.198.145) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Peng Li This patch fixes the checkpatch error about missing a blank line after declarations. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang --- drivers/net/wan/z85230.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/drivers/net/wan/z85230.c b/drivers/net/wan/z85230.c index f074cb1..3036d58 100644 --- a/drivers/net/wan/z85230.c +++ b/drivers/net/wan/z85230.c @@ -74,6 +74,7 @@ static inline int z8530_read_port(unsigned long p) { u8 r=inb(Z8530_PORT_OF(p)); + if(p&Z8530_PORT_SLEEP) /* gcc should figure this out efficiently ! */ udelay(5); return r; @@ -133,6 +134,7 @@ static inline u8 read_zsreg(struct z8530_channel *c, u8 reg) static inline u8 read_zsdata(struct z8530_channel *c) { u8 r; + r=z8530_read_port(c->dataio); return r; } @@ -653,6 +655,7 @@ static void z8530_tx_clear(struct z8530_channel *c) static void z8530_status_clear(struct z8530_channel *chan) { u8 status=read_zsreg(chan, R0); + if(status&TxEOM) write_zsctrl(chan, ERR_RES); write_zsctrl(chan, RES_EXT_INT); @@ -1360,6 +1363,7 @@ int z8530_channel_load(struct z8530_channel *c, u8 *rtable) while(*rtable!=255) { int reg=*rtable++; + if(reg>0x0F) write_zsreg(c, R15, c->regs[15]|1); write_zsreg(c, reg&0x0F, *rtable); @@ -1401,6 +1405,7 @@ EXPORT_SYMBOL(z8530_channel_load); static void z8530_tx_begin(struct z8530_channel *c) { unsigned long flags; + if(c->tx_skb) return; @@ -1672,6 +1677,7 @@ static void z8530_rx_done(struct z8530_channel *c) static inline int spans_boundary(struct sk_buff *skb) { unsigned long a=(unsigned long)skb->data; + a^=(a+skb->len); if(a&0x00010000) /* If the 64K bit is different.. */ return 1; -- 2.8.1