Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp203786pxb; Wed, 18 Aug 2021 20:08:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaFKqgHu2DwGGH/7Aj+JFU0Vz2Nw71XcxMFKWhThAkWue8GDnV/4+Mz+B9wp5RJNkNfDIT X-Received: by 2002:a6b:e010:: with SMTP id z16mr9858096iog.94.1629342495983; Wed, 18 Aug 2021 20:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629342495; cv=none; d=google.com; s=arc-20160816; b=aFnTUnqnxTda9H6bCbqpfH7jVjwbqiTAj7hybV5KXmKyFci8SM6EHdNr1qEDoaN0W8 0S0GuPQAVwLW4lmRyrqz0R0fbTvJHSQzgI4r0fsjbfAfEH5LiGnQKbN7D9sLWjXtN5SQ kiZwDpl/6hCgNpjXaS93XK/xgyhj6iKFydmglgoJWSOrJvj/5ZYFH84lhZkTmMQMZIgG HrJNGxELKH53SrTXZ0epSnm8o7AraMw7AXOA2gGwLoObAZR9zTVz4hA4EB+r8rnfwqYO AV5hUvnymzm7agQrSDa2UI6ZXUIMlws3dYp4rz5gBQlD+tqIfyYDNEVmgUn7DVHr/kHU Dx5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :authenticated-by; bh=3hxWd4qfpZ4+L2Qs7KZKormVyzjDKwGfbN1iT3Od+FA=; b=wwgVBkh+kVrVGQNSAUp5HWDcAqLd+1JIG2jdhCaGmKHQMAiUNroUUTh7ZA1qTmQJhB nrpKssgoZcvnBxMtChNBXdxUaQ9ZHS7j31A/AGN1e+yrY8yKpnElwjG4XymjnmgLF5wP rWfLzbmnR1O5bygBFHXwIKIYgESkJCm9Bb3wFWJWqsuMf+eVp6jMMw1C+xXGQXkeOkpa 9yJTp1j1AeaZUUj71l5PphnZPo8YCYeQUyyApXhivH8vpRRQB6tafZWtFleWhcKC/n+W f7LMnRrCydIpg5aRC7+8rNPmBT96hQAP+H7FMQ6SxgveFhHiMwcMhhUZbnZ62qcT8iRw Dw7Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z2si1579496jaj.101.2021.08.18.20.08.04; Wed, 18 Aug 2021 20:08:15 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236428AbhHSDG4 (ORCPT + 99 others); Wed, 18 Aug 2021 23:06:56 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:45055 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236112AbhHSDGs (ORCPT ); Wed, 18 Aug 2021 23:06:48 -0400 Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.73 with qID 17J3624r8007588, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36502.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.71/5.88) with ESMTPS id 17J3624r8007588 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NOT); Thu, 19 Aug 2021 11:06:02 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXH36502.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 19 Aug 2021 11:06:01 +0800 Received: from fc34.localdomain (172.21.177.102) by RTEXMBS04.realtek.com.tw (172.21.6.97) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 19 Aug 2021 11:06:00 +0800 From: Hayes Wang To: , CC: , , , , Hayes Wang Subject: [PATCH net 1/2] r8152: fix writing USB_BP2_EN Date: Thu, 19 Aug 2021 11:05:36 +0800 Message-ID: <20210819030537.3730-378-nic_swsd@realtek.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210819030537.3730-377-nic_swsd@realtek.com> References: <20210819030537.3730-377-nic_swsd@realtek.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [172.21.177.102] X-ClientProxiedBy: RTEXH36501.realtek.com.tw (172.21.6.27) To RTEXMBS04.realtek.com.tw (172.21.6.97) X-KSE-ServerInfo: RTEXMBS04.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: trusted connection X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Deterministic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 08/19/2021 02:52:00 X-KSE-AttachmentFiltering-Interceptor-Info: no applicable attachment filtering rules found X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: =?big5?B?Q2xlYW4sIGJhc2VzOiAyMDIxLzgvMTggpFWkyCAxMToyNTowMA==?= X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-ServerInfo: RTEXH36502.realtek.com.tw, 9 X-KSE-Attachment-Filter-Triggered-Rules: Clean X-KSE-Attachment-Filter-Triggered-Filters: Clean X-KSE-BulkMessagesFiltering-Scan-Result: protection disabled X-KSE-AntiSpam-Outbound-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 08/19/2021 02:54:56 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 0 X-KSE-AntiSpam-Info: Lua profiles 165646 [Aug 18 2021] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: hayeswang@realtek.com X-KSE-AntiSpam-Info: LuaCore: 454 454 39c6e442fd417993330528e7f9d13ac1bf7fdf8c X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: realtek.com:7.1.1;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2 X-KSE-AntiSpam-Info: Rate: 0 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 08/19/2021 02:57:00 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The register of USB_BP2_EN is 16 bits, so we should use ocp_write_word(), not ocp_write_byte(). Fixes: 9370f2d05a2a ("support request_firmware for RTL8153") Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/usb/r8152.c b/drivers/net/usb/r8152.c index e09b107b5c99..3fd17b6dc61d 100644 --- a/drivers/net/usb/r8152.c +++ b/drivers/net/usb/r8152.c @@ -3965,7 +3965,7 @@ static void rtl_clear_bp(struct r8152 *tp, u16 type) case RTL_VER_15: default: if (type == MCU_TYPE_USB) { - ocp_write_byte(tp, MCU_TYPE_USB, USB_BP2_EN, 0); + ocp_write_word(tp, MCU_TYPE_USB, USB_BP2_EN, 0); ocp_write_word(tp, MCU_TYPE_USB, USB_BP_8, 0); ocp_write_word(tp, MCU_TYPE_USB, USB_BP_9, 0); -- 2.31.1