Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6450637yba; Wed, 1 May 2019 12:33:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz9RinX7V8bt1UvHJyhPTpq4QE/z2aKsHZCKW0GeYJyqR47dBaS7IYJtrqoLZoF0vG3JqQ X-Received: by 2002:a17:902:854a:: with SMTP id d10mr34018700plo.8.1556739211553; Wed, 01 May 2019 12:33:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556739211; cv=none; d=google.com; s=arc-20160816; b=eOZXfdcNDbC22fYK9PKbMaYFrjk1nXvXo3vS5vc8eQeq4WhjAEDcPpt5ht/YB5GDpY MCc2HvreKut1D2wlT5KRT17qepsJnz4sOOYonsJ8ugXAhaOqbr4aunsOWEv272MyqXML BxCYN9vYXcTA+9yidAU7Udwrm3iB/Lb9TqD+Jj944lgiVYvpWo6JVPYpcpw3dHpP7NFU UfXUb4Ocl4mMIPffHN59wDKP3o6QWqiQVm5Ho3AqSwezo1OW4a18tCYOa3Xg45cJIuAl Tyr3XfNdGRs0tQvpDnrIP2GRIsqu5I0R9Pz4foOUwdQ59ClGvkR4Mv/wfCP1qxRl0HC2 Tsfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=1vPeVmMtyTHgwP5h7upLZPHu6LlY0VeVXcswS51oeXM=; b=bwzNBOFCRKegVWZEveBjE4wNW1dS1WTD9zq1ty6pmVKZwmcf0zDHJBPaPU88qXe2+K U++c1IomTJ+u4Y7wfHzoUtyVavrv609aS3sTEd61fwwIPB+BB3d8nTaI07Gyy3ZMz+JD FLwuvZny2m3OW/V6G6rfG+Vh88UrPGLToeB9f2QcsmTfe/a+Yj2htpRcAmm78hEjJIW3 lyLFMntyIO9IV4wzUqHeHJfoG+fwEPWpOunyVzcpkwmMW8vi9oAbkrNxqlZyQkCR8mfT JqrhkIYiahLl73lNNmigNqafjNS97H6s1LTHZyLmyjE4iJpuggvW//ORXCkVkUM/JNRn fI0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@prevas.se header.s=selector1 header.b=pdN1xu8z; 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 x3si41177897plv.33.2019.05.01.12.33.15; Wed, 01 May 2019 12:33:31 -0700 (PDT) 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=@prevas.se header.s=selector1 header.b=pdN1xu8z; 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 S1726224AbfEATcR (ORCPT + 99 others); Wed, 1 May 2019 15:32:17 -0400 Received: from mail-eopbgr30097.outbound.protection.outlook.com ([40.107.3.97]:30801 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726125AbfEATcO (ORCPT ); Wed, 1 May 2019 15:32:14 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.se; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1vPeVmMtyTHgwP5h7upLZPHu6LlY0VeVXcswS51oeXM=; b=pdN1xu8zp9Aqlat1CoIR+IR0Mhurrd7dhmEOlUlulO70wcegIfsc9oR6iJgeBEiQ+l8PhAHKrQU1JgxZ3xXHsYjklTfvntJEW6qT/adUC5cYV9IPDYrCX8DfRgGJtByBZaM2hiwvbknBGK73XA3kPRZ0NvP59+EdJ15UYjkAWd0= Received: from VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM (20.178.126.212) by VI1PR10MB2382.EURPRD10.PROD.OUTLOOK.COM (20.177.62.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.15; Wed, 1 May 2019 19:32:10 +0000 Received: from VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM ([fe80::48b8:9cff:182:f3d8]) by VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM ([fe80::48b8:9cff:182:f3d8%2]) with mapi id 15.20.1856.008; Wed, 1 May 2019 19:32:10 +0000 From: Rasmus Villemoes To: Andrew Lunn , Vivien Didelot CC: "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "David S. Miller" , Florian Fainelli , Rasmus Villemoes Subject: [RFC PATCH 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Thread-Topic: [RFC PATCH 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Thread-Index: AQHVAFSRDSaXDG0750O+aewkwJZ2+w== Date: Wed, 1 May 2019 19:32:10 +0000 Message-ID: <20190501193126.19196-2-rasmus.villemoes@prevas.dk> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> In-Reply-To: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0902CA0005.eurprd09.prod.outlook.com (2603:10a6:3:e5::15) To VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:803:e3::20) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Rasmus.Villemoes@prevas.se; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.20.1 x-originating-ip: [5.186.118.63] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d89a25cc-ec7d-4cce-3888-08d6ce6bb417 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:VI1PR10MB2382; x-ms-traffictypediagnostic: VI1PR10MB2382: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 00246AB517 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(366004)(39850400004)(396003)(136003)(346002)(376002)(189003)(199004)(81166006)(6512007)(14454004)(186003)(50226002)(8676002)(107886003)(66066001)(3846002)(71190400001)(4326008)(6116002)(8976002)(478600001)(54906003)(81156014)(1076003)(8936002)(25786009)(71446004)(72206003)(316002)(73956011)(71200400001)(305945005)(74482002)(68736007)(66476007)(76176011)(44832011)(486006)(64756008)(53936002)(66446008)(66556008)(14444005)(256004)(99286004)(110136005)(6436002)(446003)(386003)(476003)(11346002)(6486002)(7736002)(26005)(6506007)(42882007)(2906002)(66946007)(2616005)(36756003)(52116002)(102836004)(5660300002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR10MB2382;H:VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: prevas.se does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: iOpFkXJnRPCw7klGyfrSra/4qrzLApogUlXSb+QLL48xhlxQYVMOeWITSywxhWEYT8S3+F4YeEASayOj1pZtZi/s2m8VIu16ysIigInmDBcRm8JuyuzMxVgU+714vItZ3KzK6hlGiK5BMie2/uu38tX+Chk+6vJLS/QSMvbRhWvM8E+DSJDIrvFgIZmQiiTrUXYha5ZzLThPj8yl5L7+9qSDvtjEH5lxZ8cJUYJaVC+Myu/EIbQ5ZqcsDtUEIpUPZVWRDW4/HCXiyQNokZyJS+L+ivNEea8ZLaDGmPEptW7LuoR0hycDITIfrE7Vokf+UoPoEQ1ZLbKmxo3yDcZ/Rd0lAIlOgEs+KSzk4QpR2/ZUz+FY57B47QxNr4uvzklvsLy9KZeyGR/oLy0lL9Mln31G/xI2ZKdBE83ZTXCysVo= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: d89a25cc-ec7d-4cce-3888-08d6ce6bb417 X-MS-Exchange-CrossTenant-originalarrivaltime: 01 May 2019 19:32:10.1589 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR10MB2382 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org VGhlIDg4ZTYyNTAgKGFzIHdlbGwgYXMgNjIyMCwgNjA3MSwgNjA3MCwgNjAyMCkgZG8gbm90IHN1 cHBvcnQNCm11bHRpLWNoaXAgKGluZGlyZWN0KSBhZGRyZXNzaW5nLiBIb3dldmVyLCBvbmUgY2Fu IHN0aWxsIGhhdmUgdHdvIG9mDQp0aGVtIG9uIHRoZSBzYW1lIG1kaW8gYnVzLCBzaW5jZSB0aGUg ZGV2aWNlIG9ubHkgdXNlcyAxNiBvZiB0aGUgMzINCnBvc3NpYmxlIGFkZHJlc3NlcywgZWl0aGVy IGFkZHJlc3NlcyAweDAwLTB4MEYgb3IgMHgxMC0weDFGIGRlcGVuZGluZw0Kb24gdGhlIEFERFI0 IHBpbiBhdCByZXNldCBbc2luY2UgQUREUjQgaXMgaW50ZXJuYWxseSBwdWxsZWQgaGlnaCwgdGhl DQpsYXR0ZXIgaXMgdGhlIGRlZmF1bHRdLg0KDQpJbiBvcmRlciB0byBwcmVwYXJlIGZvciBzdXB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