From patchwork Mon Nov 14 10:29:53 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charles Keepax X-Patchwork-Id: 19664 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2073083wru; Mon, 14 Nov 2022 02:37:40 -0800 (PST) X-Google-Smtp-Source: AA0mqf5axiQj50LadA5iXhMjPIMriBKniZNdUV/YIJ5iUqGuMucPN2MC2ZaaffXSbF5Ig1ePO0Vy X-Received: by 2002:a17:906:950e:b0:7ae:b9fc:8668 with SMTP id u14-20020a170906950e00b007aeb9fc8668mr9160544ejx.257.1668422259989; Mon, 14 Nov 2022 02:37:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668422259; cv=none; d=google.com; s=arc-20160816; b=wKfhiYYocpc0NH29AArBFWWU3McywXI9ILgnatYlXeiHxvRwtvgk0Kl9CDhqjZMNBc Vo+3cnDv0kuFF7TLvOHzOgAodmDgU/jDWaSuf+oVDjqfky5aiO1mQHHQ0XTV7C6UEROY GFlsmAEbSmS0ePjisUsAkoO10fgbiNmhWnRe8QoqMMbVhNtsc1HNc50h1B5DxWcDLEhZ K8AB7XI23bKkg4j8m+O514E5HFNC4+LUnWHe1jlvN0a7a81F8FzhEmEvnOdB4opIN9lg prOSEsrwAJ4+mz40klcOSHH2L586njhmWaFY9JvLhgZYweT5UnYrVPTkMdr2DjJJbt2d EC0g== 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=C8x7Ea1yZLWaFKtwstq1Od1PDFQoikXzXfnEcLWKVII=; b=IF1x6Xe1uAijZd2d0vbbS7S1c3jFaLX7P9qoT7Jsk+bfbqWGQHlImVxhpzqaMsvGcN ORDqX3xL+a1m4gkqYSjXCTJ5CZLpeY6Ob3pFLW5UI1EL6ehvNYkNe4kTxeDYWwtyipYV rTwDxmejzApjOxkwYtXyFoQFa1EkGpc0HGJDR54hviTio3lh96uNDdDfNrKSazmlKjt8 885QH14siFgNGtHOjSU3bvI4qxrm4Q4L9lt5AxN/i80Em2vUAkYX2MFh5sAPv/KGd0he WWrBFOvDljBVKf4nVLDZkdfY1GhelxT3ZxuWBM+2Yf5wtXGleThWdavpqWTf/zei3vvb YzLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=e1YAP1ug; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id da1-20020a056402176100b0045ca3839229si7436591edb.274.2022.11.14.02.37.16; Mon, 14 Nov 2022 02:37:39 -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=e1YAP1ug; 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 S236266AbiKNKa0 (ORCPT + 99 others); Mon, 14 Nov 2022 05:30:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236290AbiKNKaP (ORCPT ); Mon, 14 Nov 2022 05:30:15 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80439F587 for ; Mon, 14 Nov 2022 02:30:13 -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 2AE8Wcib019990; Mon, 14 Nov 2022 04:29:58 -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=C8x7Ea1yZLWaFKtwstq1Od1PDFQoikXzXfnEcLWKVII=; b=e1YAP1ugITfHvKDsVwx72xPsI9UncP9PEijRMVBJhZbyJQhBn9iiMhYO/jOkSaOgP2TV BzKqkHUDmgrEm7lZdf8Oy5ckgLeaG2FwNMR0uSpDuKfrdXYJ3yiZ+heunxttNCPlVuQ8 Ck7+1xHfBOZNrRNKlRHkIsAeaXiUTk0Vx6LcCCVotI/4sCm0K3DrtuTKErHNxql1BBaW 8ucTmVoD73ARMQtc+YSbjaCW8jVe0gLv5xHc17pRP4ZpRL8W1Q6uGq86tGd/1SaQZP1i /lyM1JjOqkhZpQpwXNmDa61ijYo1Ux2JbAZXLmFiSMyLqSLoNI0AMSWsfEhp3Itj7Gf+ WQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3kt8sst0ck-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 14 Nov 2022 04:29:57 -0600 Received: from ediex02.ad.cirrus.com (198.61.84.81) by ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.15; Mon, 14 Nov 2022 04:29:56 -0600 Received: from ediswmail.ad.cirrus.com (198.61.86.93) by anon-ediex02.ad.cirrus.com (198.61.84.81) with Microsoft SMTP Server id 15.2.1118.15 via Frontend Transport; Mon, 14 Nov 2022 04:29:56 -0600 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 46360477; Mon, 14 Nov 2022 10:29:56 +0000 (UTC) From: Charles Keepax To: CC: , , , , , Subject: [PATCH 1/4] soundwire: bus: export sdw_nwrite_no_pm and sdw_nread_no_pm functions Date: Mon, 14 Nov 2022 10:29:53 +0000 Message-ID: <20221114102956.914468-2-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20221114102956.914468-1-ckeepax@opensource.cirrus.com> References: <20221114102956.914468-1-ckeepax@opensource.cirrus.com> MIME-Version: 1.0 X-Proofpoint-GUID: q_2AKa7BIDTaXnRa-EPavF79D2krWaPW X-Proofpoint-ORIG-GUID: q_2AKa7BIDTaXnRa-EPavF79D2krWaPW 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1749467539466164300?= X-GMAIL-MSGID: =?utf-8?q?1749467539466164300?= 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 --- 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);