Message ID | eca01a03897abc6859c22b7a0213354a18304f29.camel@microchip.com |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=550V=AK=vger.kernel.org=netdev-owner@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6CE4BC433E2 for <netdev@archiver.kernel.org>; Mon, 29 Jun 2020 19:19:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3CF15206A5 for <netdev@archiver.kernel.org>; Mon, 29 Jun 2020 19:19:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=microchip.com header.i=@microchip.com header.b="XZeeUWUe"; dkim=pass (1024-bit key) header.d=microchiptechnology.onmicrosoft.com header.i=@microchiptechnology.onmicrosoft.com header.b="fIFet3Dx" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731781AbgF2TTq (ORCPT <rfc822;netdev@archiver.kernel.org>); Mon, 29 Jun 2020 15:19:46 -0400 Received: from esa2.microchip.iphmx.com ([68.232.149.84]:35783 "EHLO esa2.microchip.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732072AbgF2TTo (ORCPT <rfc822;netdev@vger.kernel.org>); Mon, 29 Jun 2020 15:19:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1593458383; x=1624994383; h=from:to:cc:subject:date:message-id:content-id: content-transfer-encoding:mime-version; bh=S7RV17VsWqu3dyTvljWWEJLWl/0iARjuqJBb/CFh71g=; b=XZeeUWUe2tnA2JsTMmi9TvSegTjI6WqDJ8zFIb7Lpv1mwiXenkMKrsJO y7W17tkhbJ1a8rTsRqHs3o/ZKvvuPedeEz1ANnDklCkdHcOpXbwYWB3uf 8W5nxmqVHusvGw+VHUsKEHbovQEzJOVOE/qS2eJHrogsmMcg0YXsjAr9p QF7EPzGpydbNmSBlDolRM+kLV+P8VQCkbYTSQfdROxOdRWuLYPAECmKNs KO1SLjKfft1bkEZ8NXCQ7KfA6iS2uBPReGyjHZr3MSVjI273Bm26rsnaZ o8P6cD+Qn5V1rPgZdyElivfytZ0dUafsdpOpu9XgF6ey25yHIqWJfYsXO w==; IronPort-SDR: 7/f5Nyv9y5UVQ8Vk8NJwxeYxa4i+tcXtoYXC6nEseeG/M7HTVSV043UcJhjcKRPWR5QALF8XRP Reh7NlPFffWJjCondHZySLGwsMSM0Zi9VH6yUgCHI/DJSDZWdqOem/4GAWjOjkwOpqkZ2HIA5F qMhICudoBLerUSTO3FI8thKSphNABh9C3wUlyStXiNzPNLbN+vfQWtpG8G4fKlyHZuNcvWoBkR U9XKvWedkMkqU7SPkZ/lbU0psdROxr7KdGvd1xauxE0qjQZlRZRZoiBadQEnw38VunzLKsGPn8 dvw= X-IronPort-AV: E=Sophos;i="5.75,294,1589266800"; d="scan'208";a="80077633" Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa2.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 29 Jun 2020 06:13:21 -0700 Received: from chn-vm-ex04.mchp-main.com (10.10.85.152) by chn-vm-ex03.mchp-main.com (10.10.85.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Mon, 29 Jun 2020 06:13:21 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (10.10.215.89) by email.microchip.com (10.10.87.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3 via Frontend Transport; Mon, 29 Jun 2020 06:13:21 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ei4ML5ZCGJEc/hTmgiitI/TnCYS/iPtc24AM3CG1/EWVcNtHEitwfxbtEF2rlSBm9un70DIBGohzM7ZSp6eHLl1RCNpjeEPrsuTnXMG0MbzDBWnmqr2TitCZUYZ7IeJtL2dJy2PazTKbuX+0kaaJtqAp+cUA4HRczeIN5M/4HnXBBIvT7wuFD47CAmCpGGnro4odVQX7P6voGrddBonMxB5NwK82NfedZD7OynhrblCDOekesmw5owWI0M940NUK6DZcXhLmf2yDtQ2w0KZSV+3cVFToiySr4+Do0REg2Kt6WYUe6VTwSfP0TS734mJS6yBsmsStM0By930R01W0cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S7RV17VsWqu3dyTvljWWEJLWl/0iARjuqJBb/CFh71g=; b=ZSKLPwzR7y9jAkH+3fb4d60qNAUoOCusQOGVyzOhqe/M4V/Gy7ciS/20xy/tTPHcpNMujrF+LxzZWjf1tjfGkQpZkT7fNyjnZsoa7+kbVA4U0eufSPccmRrUhUjXLQZaRhMylurGQtCqoG2NxYmp1Q3OGybOQo9nLIlZeYrFrqbV8FTZYCTBdVjJTX0dQ9IOicmnXoeGAfndDoDz1zTH3p83uytaSy6EpF33h7l5/Jq+ZY68exQM7F7nLHe6zQfOlzakUTjeMJfuqolLuCT3ugZqgZperqG/y4hQs1CtLQdlH/1xCUO5bKRq/YBgMM2JaU9lGLWmBF2vtRpaym+M+A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=microchip.com; dmarc=pass action=none header.from=microchip.com; dkim=pass header.d=microchip.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microchiptechnology.onmicrosoft.com; s=selector2-microchiptechnology-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S7RV17VsWqu3dyTvljWWEJLWl/0iARjuqJBb/CFh71g=; b=fIFet3DxXO8dd447aiP1IGFcZEnByJ2QhGAUAaz9x7Zh5zN7jt553jKB0Yd+Pn76XO8oxqrOy9TUh9TR2W4tdrlQIyE738koxdBZsAiC7m4Zm4emsRjNemgBjT89cUEVM+EsAJ2lRUGfCAJkDrK6sJgaf3JEDer2v/0LvmfQioI= Received: from BY5PR11MB3927.namprd11.prod.outlook.com (2603:10b6:a03:186::21) by BY5PR11MB4434.namprd11.prod.outlook.com (2603:10b6:a03:1c2::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3131.20; Mon, 29 Jun 2020 13:13:19 +0000 Received: from BY5PR11MB3927.namprd11.prod.outlook.com ([fe80::5993:d0ac:9849:d311]) by BY5PR11MB3927.namprd11.prod.outlook.com ([fe80::5993:d0ac:9849:d311%7]) with mapi id 15.20.3131.027; Mon, 29 Jun 2020 13:13:19 +0000 From: <Andre.Edich@microchip.com> To: <netdev@vger.kernel.org>, <UNGLinuxDriver@microchip.com>, <steve.glendinning@shawell.net> CC: <Parthiban.Veerasooran@microchip.com> Subject: [PATCH net-next 7/8] smsc95xx: use PHY framework instead of MII library Thread-Topic: [PATCH net-next 7/8] smsc95xx: use PHY framework instead of MII library Thread-Index: AQHWThcOXiClW+0yNkaESaHFHegHIA== Date: Mon, 29 Jun 2020 13:13:18 +0000 Message-ID: <eca01a03897abc6859c22b7a0213354a18304f29.camel@microchip.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Evolution 3.36.3 authentication-results: vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=none action=none header.from=microchip.com; x-originating-ip: [93.202.178.57] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6f6bff8b-a442-4d10-090b-08d81c2e311b x-ms-traffictypediagnostic: BY5PR11MB4434: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <BY5PR11MB4434B0B648E56D0F70BC270DEC6E0@BY5PR11MB4434.namprd11.prod.outlook.com> x-bypassexternaltag: True x-ms-oob-tlc-oobclassifiers: OLM:6108; x-forefront-prvs: 044968D9E1 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: ligNQ7Ud1r9iDnQuGGevecaNAJaVgrMxlb/mzcBBpA+uXljmB8um55L2dWLsafrgirt9KZlJKQEqdMxwJGgYkc8sbQrWoPtkuK9t2gIXoPlmbW+DKWrGnwSneI3kWipK3zxIGaYeSPa/RK0TtDljzmflAiz2vk3fb5UxYoEh+baDtboWa0AwCre0e9vC/glljXWhU3WUsR65no749QiH5sxurU1/MNK2UCJaoGu0ZgH9gZo8BpJAodMn2Z04laDj6mWDYJmHUH34h3+3DEAbIYYvdCLTw9Gst3Fpo/q30agg/wq/zlcnJzElpn+YXdiJXqEUHDOW2dHWBQ6hi13Axw== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY5PR11MB3927.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(396003)(366004)(136003)(39860400002)(346002)(376002)(83380400001)(6512007)(8676002)(8936002)(5660300002)(36756003)(110136005)(4326008)(316002)(2906002)(6486002)(107886003)(66946007)(6506007)(2616005)(76116006)(91956017)(66476007)(66556008)(64756008)(66446008)(186003)(26005)(478600001)(86362001)(71200400001); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: Tlgvxq5HS5ASyn80aauvG0Ulx+VJF9iy7QtT6eW9smF2DZbQKDA6iJXG3oPOWKdlW34vSqKoo6Rfx2AvY9MZg0vzNaAjiAQymkaWNijlkka1L0EF1L4NqqdoyAUhW+umYFJ/t8m5eyuo1XhndUMBnwQkIryFDTLeISkF2Cm0fzSb5uXOckWqvFF78IH7FBw/kI4r/7ybpY3M0QM9/uZ03ziYVRbmHlJ0Hz6DCTTWq785AX4INBZBOYE6QOQaoFFRX/vfNK0aEJys3A8d1DBNs21i0EJcylXTDCZcs/B4n8KhEujPFAIxHral3esrG5wHYTYxBcVlSvRzZW0VTxQdhCImMsl46dg6z6+XplpY9yMA47L4ou4GM8W6ohKudV6Z9ZxjnK3r+ejO68A4lBl2ecDLl1Z6q8wHY0AEg8SpRCUR6DCZ6K0RGtTpytrcO+aA35u9QORnyO7eUklbGrdq+YLKtsQQdbbIQx6xSHWTN1yQ54ThmrElRwU1Yx82/3CL Content-Type: text/plain; charset="utf-8" Content-ID: <B0FD87C1702C42469B46425DCFB4C16F@namprd11.prod.outlook.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BY5PR11MB3927.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6f6bff8b-a442-4d10-090b-08d81c2e311b X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2020 13:13:18.8795 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 3f4057f3-b418-4d4e-ba84-d55b4e897d88 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 1SXq7NNDXRJrHJ5/PXNc2l9oD9P1ufTH3Yi+9PzXbgBBZGOmLZOibfJKb8SClhiNNANaPKSfg/fDmsmBgMUNkKlRLKA8kG1plg90a1ZgBZ8= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR11MB4434 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
[net-next,1/8] smsc95xx: check return value of smsc95xx_reset
|
expand
|
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index bcdd7e726f5b..06fcc2518305 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -51,6 +51,9 @@ #define SUSPEND_ALLMODES (SUSPEND_SUSPEND0 | SUSPEND_SUSPEND1 | \ SUSPEND_SUSPEND2 | SUSPEND_SUSPEND3) +#define PHY_ID_MASK 0x1f +#define REG_NUM_MASK 0x1f + struct smsc95xx_priv {