Received: by 10.223.164.202 with SMTP id h10csp292934wrb; Mon, 6 Nov 2017 06:45:52 -0800 (PST) X-Google-Smtp-Source: ABhQp+SvyhgpKhZRj8Qm72m2pvxiLXOkr232WoS1YQ6LRhJs9rkEzcin0Yvbbmqs//gvXWtULGWy X-Received: by 10.101.85.72 with SMTP id t8mr15613723pgr.211.1509979552513; Mon, 06 Nov 2017 06:45:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1509979552; cv=none; d=google.com; s=arc-20160816; b=GXAksNAH7cE/A/8lhjFLgG/LiNP10srAs6CkVNVBa7s0rddtmpJ28BFqlW6KtfOxN5 9JQjL0Hu3H/2Xv0ofQHqM1e8rVUZT3qKYB+7qoxUpA3KKvw5+jP/DbvabY44jJYuFJZm ymhIPhAaad8qEm+uy0TKm7a2EJNYv9Hu4+LbUshZsmoKhMoNG5NijdINuMsMbLFXZOYx 2GnA3M95poQLGKWkButtJsjNdhDvNZq5pSYqc2nboBzxT+6AOiFnKe0aBmbowZA6yp2x vNraltYtzhzo6FsHNYW1KwHjl97uTfPu0NvUGDUaUEfcckas4kcWEIOFksDnRnjwQGbZ AkfQ== 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:to:subject:arc-authentication-results; bh=XHsBn1uXhLmzAbf1ODvJQWOInUg5YfPT5IaA+na13BM=; b=i4OZ3LuZioYKePtAX/aTvwVQSLalZWpB+eAsbLdWJjHbHAMnCbBsbNV6e1w9K/gwnI 0kYtfZoD0Y9Hnrr6+oFEItfgBnMux90CQIMS8zSAQL5PSJq0HqpL3try86x5azM4jMhS +o//M85ET+I4IdZEky/l/axM3mNzwu/HpGzSPw32fmlyVL6wDJS+4VYqpMKK22+x+NN/ Eh3sR566rAbuWqCv2DX3zeLKlyBkYmeQZWOxlD9Pk79lNOMts/oAkkPn0KxrgUfVCvJe k+Uf8L5fr71XzcvLhQcC08FnvfQmOdu/ndh+UsJFUxTtDla9AzSTZjcJDkgFT7nPSW6k g/QQ== 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 1si10294209ple.401.2017.11.06.06.45.38; Mon, 06 Nov 2017 06:45:52 -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 S932480AbdKFOoX (ORCPT + 97 others); Mon, 6 Nov 2017 09:44:23 -0500 Received: from aibo.runbox.com ([91.220.196.211]:47024 "EHLO aibo.runbox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753592AbdKFOju (ORCPT ); Mon, 6 Nov 2017 09:39:50 -0500 Received: from [10.9.9.211] (helo=mailfront11.runbox.com) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1eBiZ1-0001Ih-Oc; Mon, 06 Nov 2017 15:39:47 +0100 Received: from 93.89.113.32.ip.vitnett.no ([93.89.113.32] helo=[10.5.202.90]) by mailfront11.runbox.com with esmtpsa (uid:646232 ) (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.82) id 1eBiZ0-0004cS-Ke; Mon, 06 Nov 2017 15:39:46 +0100 Subject: Re: [PATCH net-next] net: dsa: lan9303: Drop port range check To: andrew@lunn.ch, vivien.didelot@savoirfairelinux.com, f.fainelli@gmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20171106141949.19806-1-privat@egil-hjelmeland.no> From: Egil Hjelmeland Message-ID: <4d340c8e-8155-1251-3ab1-76f4948d9f1b@egil-hjelmeland.no> Date: Mon, 6 Nov 2017 15:39:46 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171106141949.19806-1-privat@egil-hjelmeland.no> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06. nov. 2017 15:19, Egil Hjelmeland wrote: > Now that ds->num_ports is 3, there is no need to check range of "port" > parameter. > > + lan9303_disable_processing_port(chip, port); > + lan9303_phy_write(ds, chip->phy_addr_sel_strap + port, > + MII_BMCR, BMCR_PDOWN); > } I see now that line breaking could be adjusted here. But I am going to touch that line in a upcomming patch about phy_addr_sel_strap. I promise fix it then, making it to a one-liner. > > static int lan9303_port_bridge_join(struct dsa_switch *ds, int port, > Egil From 1584806846272338147@xxx Wed Nov 22 22:26:25 +0000 2017 X-GM-THRID: 1584806846272338147 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread