Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp176445ybi; Fri, 24 May 2019 02:02:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqx9ngzVwqGItfo4dwoE/8i/bhNXxHwDf/ZiT/WtS7IFm95eBUNqyyfxHH21uW0KnIqFjzha X-Received: by 2002:a62:7689:: with SMTP id r131mr110907851pfc.181.1558688541592; Fri, 24 May 2019 02:02:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558688541; cv=none; d=google.com; s=arc-20160816; b=BkQkw3qk9AaKKI0hFFarD9spR++YTF/MPtWIvQv4y3X5xnvU7pcH7dtOnTYAiQbK8Z D8U5AYmP3ZUEg8ytFctwrRY65io3E+ZZGKKUOBEuicuFjEw7ElT62NWV1Ngf5J9DYjkO 0/XmpKzqrs7OF57IeMQS1HsULAdA5jHn2CkjkpwRptZrUcLO3GtqM0TKW/wG8pcKhnHN rSLO4Z5lhWZxhhtD2jPHBer9WsmPuy9L1iTKREDl9nuFO5LO3QLPfxyFSlAvpSgy73ao oOviJW4uroiuwxNFl9SLu78uM0qJ3O8npADkOFMJwlJcYjNco/OIwY5MVvtP59s6hREi fo/A== 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=RLiLQBk6mDR68tMSmLAgJhpBYj0D6jIpmn5Wbu5fPwg=; b=u822/s9MFTDro3f0QdTv9qRWqedtYee4lO7f4kod34EkQULvpjlCE4ZzBtlyuQtiPk XTjBlbSR5Rp8FLh2oVGkzFIm42yyJH3O5Ssm5x0rEQhdpAEkwAyhqSmNS8W1p6boqyje feOMSaNaHStAjxDzxc6Vloi/O7t4aym4Bha8QxsBi1Z3sFVYydXFIk4qGyWdesmvxu3j WGNLuE0VvjDULaS7E7ADEpjf+6wZwRh6Lv4WULlMBBBGak2WIcOlZTsrRRf9Xs5xA0v0 S3RuSNhpgCU7MJqn2FOl/rZfIPy9ibUjQbeYIoOIr3oUdCIg9Icch8WpFY4sdQmquh7p tGmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@prevas.se header.s=selector1 header.b=nYnke4C+; 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 h10si1660073pgs.303.2019.05.24.02.02.01; Fri, 24 May 2019 02:02:21 -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=nYnke4C+; 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 S2390034AbfEXJAd (ORCPT + 99 others); Fri, 24 May 2019 05:00:33 -0400 Received: from mail-eopbgr30131.outbound.protection.outlook.com ([40.107.3.131]:58510 "EHLO EUR03-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2389978AbfEXJAd (ORCPT ); Fri, 24 May 2019 05:00:33 -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=RLiLQBk6mDR68tMSmLAgJhpBYj0D6jIpmn5Wbu5fPwg=; b=nYnke4C+VohsMtQkB75tmO4Byv/8O91Tgx8gRbJLCoYy7n7dBgE+MXCGHQ8HH6Hddy1Ryvs4PURA/wj3x4ECK/YxjtoXL8YldVC1tJiHOHFD2lZZ9JwxKUnjXEKCHNDVjzMD3zvdYjw6zo21jxt2arjDkcvTSPfGV0o0PsGg+ks= Received: from VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM (20.178.126.212) by VI1PR10MB1535.EURPRD10.PROD.OUTLOOK.COM (10.166.146.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1900.17; Fri, 24 May 2019 09:00:25 +0000 Received: from VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM ([fe80::c81b:1b10:f6ab:fee5]) by VI1PR10MB2672.EURPRD10.PROD.OUTLOOK.COM ([fe80::c81b:1b10:f6ab:fee5%3]) with mapi id 15.20.1922.016; Fri, 24 May 2019 09:00:25 +0000 From: Rasmus Villemoes To: Andrew Lunn , Vivien Didelot , Florian Fainelli , "David S. Miller" CC: Rasmus Villemoes , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH v2 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Thread-Topic: [PATCH v2 1/5] net: dsa: mv88e6xxx: introduce support for two chips using direct smi addressing Thread-Index: AQHVEg8gIIPPVrFduEy/8gKcIhsUQw== Date: Fri, 24 May 2019 09:00:24 +0000 Message-ID: <20190524085921.11108-2-rasmus.villemoes@prevas.dk> References: <20190501193126.19196-1-rasmus.villemoes@prevas.dk> <20190524085921.11108-1-rasmus.villemoes@prevas.dk> In-Reply-To: <20190524085921.11108-1-rasmus.villemoes@prevas.dk> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: HE1PR0802CA0015.eurprd08.prod.outlook.com (2603:10a6:3:bd::25) 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: [81.216.59.226] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 01e361a9-4280-4dc5-a012-08d6e026425d x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020);SRVR:VI1PR10MB1535; x-ms-traffictypediagnostic: VI1PR10MB1535: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-forefront-prvs: 0047BC5ADE x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(39850400004)(136003)(366004)(396003)(376002)(346002)(189003)(199004)(42882007)(66946007)(73956011)(81166006)(102836004)(66066001)(6116002)(76176011)(1076003)(25786009)(52116002)(478600001)(386003)(6512007)(6506007)(186003)(3846002)(74482002)(72206003)(4326008)(66556008)(64756008)(66446008)(66476007)(316002)(26005)(36756003)(68736007)(50226002)(305945005)(5660300002)(7736002)(6436002)(44832011)(256004)(14444005)(486006)(53936002)(8676002)(81156014)(8976002)(110136005)(476003)(6486002)(8936002)(446003)(2906002)(11346002)(54906003)(2616005)(99286004)(71190400001)(71200400001)(14454004);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR10MB1535;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: CqKyIdnNQvk3vFBG7Qydx1nhQ0XSiX4QKsbKv8DreqdyrVH50PQ+PlaYOGF8x56g+p4wH7KaHLXPykFtvPoaCyiJgxWtUr4dkhZvYCJqkDRPDDj78Kh0CW9V3rGMZUVH9N9r9KAe0ZFFq1QqZ6CEqvE4C2ID2kajctPu8QlHDNf/1qMQzX8RccDveG6JdXgJcvUdzMuxg93WntHOXmXQx/TOzUaSigFrithyh8GnUyfd9rUFOOzzpW4rdjQM6eCRtF1Inkcer5O4a2kWorSjCip2CSf6PnPP6vtJ0igAfocdy7eCT2TxvG33+jwQpAEH+T/qCEfQa9OigN2AF+L+eXpspmjd7ht5l1uPtZ7ukzIhEibbE9jjS/rY9PZt6IS82rkqHGFT2wgSGX2HYVXLwbVch9ikcHbzuesDrbw9zh8= 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: 01e361a9-4280-4dc5-a012-08d6e026425d X-MS-Exchange-CrossTenant-originalarrivaltime: 24 May 2019 09:00:24.9573 (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: VI1PR10MB1535 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 DQpsYXR0ZXIgaXMgdGhlIGRlZmF1bHRdLg0KDQpJbiBvcmRlciB0byBw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