Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp2127459rwb; Thu, 17 Nov 2022 06:57:28 -0800 (PST) X-Google-Smtp-Source: AA0mqf56VMWYi6Nv2I7NwGTJx8F4BZaCf6eHCP3KuWI+BkJOCGTunGmC1nCPgYmN66P6bBgUzEy8 X-Received: by 2002:a05:6402:2885:b0:467:cc91:903b with SMTP id eg5-20020a056402288500b00467cc91903bmr2527811edb.130.1668697048719; Thu, 17 Nov 2022 06:57:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668697048; cv=none; d=google.com; s=arc-20160816; b=oyWMsA5ls85ONFesYSBtgLG5j8ShXnSLvVpIUdZ1apU0/vMoTZ7UiNCa9/LavOzIz2 jN0DCLpuQSgKrX2qYLn65imU93ZJx8q91vQCwr8BdBGfmDgv12is8burA3EdWThT8iEA p/CCtVXSG3veHHDhjwZ5XUBEP5886BmoUz0bKDEMuAPX7PJqzjL8qSMWza9IO9rBM3kk e87xz2YRTvRWgno7IKO20bvvX2lAw9n63PRskssQg6YZ4LHJ/0EjjrzGoMn5bfqrLfxE y9GAuAAeNceUm+HhmiGlZPLGOpEBZXbcSEf1zZP5603JTSYZ+CY9jbR4n1jxOXE/EcU7 Q5EQ== 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 :dkim-signature; bh=zXCK59+Dn/1+x3tHXEtHgK5hfaXjmAqb7IocCpy3EoQ=; b=kyPfDEDJHQTsGpyQeNe8UWAmLTTKrV/Xci80R/6/MW+ecwet4R5jIeCbYrhB6vwcrp MrZ4S2a5K2xPoWUBAJPL8SlCOD3qjLqkT0Fpsj8SR78+Anw6eirRlbPWnR40P3EGBHyj JoSkh50agUJxWF2eSq7yNyxvfT4JHrxXbgxtsPyrZmDnyP+EIksGd5BEUg3kNBoykDBa Wv9Qq8fFbJbRwD8JMHwJejehKOZAC6cIp/NoIjBjWlcKfp0fZ9WEaPqE/dqq7+dlLDe7 4uqS88Bt1+/fmUkcw6XXfb8XBEvIgLqmr9XqYndmk1scaKJwQV8LC2kobsbbNHgPL76r yMmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=PC2eSohE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bc17-20020a056402205100b0046721c5b7e0si974274edb.511.2022.11.17.06.57.06; Thu, 17 Nov 2022 06:57:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=PC2eSohE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cirrus.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240320AbiKQORu (ORCPT + 92 others); Thu, 17 Nov 2022 09:17:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47802 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234915AbiKQORq (ORCPT ); Thu, 17 Nov 2022 09:17:46 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA43E1CD for ; Thu, 17 Nov 2022 06:17:45 -0800 (PST) Received: from pps.filterd (m0077474.ppops.net [127.0.0.1]) by mx0b-001ae601.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2AHEHLJW006137; Thu, 17 Nov 2022 08:17:29 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=zXCK59+Dn/1+x3tHXEtHgK5hfaXjmAqb7IocCpy3EoQ=; b=PC2eSohEE7k/dFbz4nJ3SeQq9nOXSW3c9zJwbJdpL+Prw6Gz2lJ/uPbuHDzlIyIWddKR ZQQyNcMlGYnSWtv2ONDNlIr5V6TJqMchvZCnWBsBvCIVJvZQZcU1Z+jyJCkWim1HjyvG FWLrFRE0t80lXdLKTiYCYxq+UOA5e0JiXTLrDySl0hnwFDhG6lTvuMCiGh2AlZHKHtyJ bfUtUuZw896vfiQsbEogxwWgP0gXGk7aOrTOm84U/2A/1Z5E09moRDrmZCvWWsbqguEh X/t3lWuXhMT72wXcxcWYH1GCZA5sz8Ci+vBKy534sTnz6A5sC9GrlqXXNMWFK6LLiTfL tg== Received: from ediex01.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3kv73yk9j9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 17 Nov 2022 08:17:29 -0600 Received: from ediex01.ad.cirrus.com (198.61.84.80) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.20; Thu, 17 Nov 2022 08:17:27 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by ediex01.ad.cirrus.com (198.61.84.80) with Microsoft SMTP Server id 15.2.1118.20 via Frontend Transport; Thu, 17 Nov 2022 08:17:27 -0600 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id C9E12B12; Thu, 17 Nov 2022 14:17:27 +0000 (UTC) From: Charles Keepax To: CC: , , , , , Subject: [PATCH v2 1/4] soundwire: bus: export sdw_nwrite_no_pm and sdw_nread_no_pm functions Date: Thu, 17 Nov 2022 14:17:24 +0000 Message-ID: <20221117141727.3031503-2-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221117141727.3031503-1-ckeepax@opensource.cirrus.com> References: <20221117141727.3031503-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: e5tQ8Uy3OyfPvr284qk_kLx9Zq9XDvOp X-Proofpoint-GUID: e5tQ8Uy3OyfPvr284qk_kLx9Zq9XDvOp X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Simon Trimmer The commit 167790abb90f ("soundwire: export sdw_write/read_no_pm functions") exposed the single byte no_pm versions of the IO functions that can be used without touching PM, export the multi byte no_pm versions for the same reason. Signed-off-by: Simon Trimmer Signed-off-by: Charles Keepax --- No change since v1. drivers/soundwire/bus.c | 8 ++++---- include/linux/soundwire/sdw.h | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index 76515c33e639e..ef4878258afad 100644 --- a/drivers/soundwire/bus.c +++ b/drivers/soundwire/bus.c @@ -414,8 +414,7 @@ int sdw_fill_msg(struct sdw_msg *msg, struct sdw_slave *slave, * all clients need to use the pm versions */ -static int -sdw_nread_no_pm(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) +int sdw_nread_no_pm(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) { struct sdw_msg msg; int ret; @@ -430,9 +429,9 @@ sdw_nread_no_pm(struct sdw_slave *slave, u32 addr, size_t count, u8 *val) ret = 0; return ret; } +EXPORT_SYMBOL(sdw_nread_no_pm); -static int -sdw_nwrite_no_pm(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val) +int sdw_nwrite_no_pm(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val) { struct sdw_msg msg; int ret; @@ -447,6 +446,7 @@ sdw_nwrite_no_pm(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val) ret = 0; return ret; } +EXPORT_SYMBOL(sdw_nwrite_no_pm); int sdw_write_no_pm(struct sdw_slave *slave, u32 addr, u8 value) { diff --git a/include/linux/soundwire/sdw.h b/include/linux/soundwire/sdw.h index 9e4537f409c29..902ed46f76c80 100644 --- a/include/linux/soundwire/sdw.h +++ b/include/linux/soundwire/sdw.h @@ -1047,7 +1047,9 @@ int sdw_write(struct sdw_slave *slave, u32 addr, u8 value); int sdw_write_no_pm(struct sdw_slave *slave, u32 addr, u8 value); int sdw_read_no_pm(struct sdw_slave *slave, u32 addr); int sdw_nread(struct sdw_slave *slave, u32 addr, size_t count, u8 *val); +int sdw_nread_no_pm(struct sdw_slave *slave, u32 addr, size_t count, u8 *val); int sdw_nwrite(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val); +int sdw_nwrite_no_pm(struct sdw_slave *slave, u32 addr, size_t count, const u8 *val); int sdw_update(struct sdw_slave *slave, u32 addr, u8 mask, u8 val); int sdw_update_no_pm(struct sdw_slave *slave, u32 addr, u8 mask, u8 val); -- 2.30.2