Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4326967rwb; Mon, 21 Nov 2022 06:26:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf6XuShdl9Pzbc4s3oEiiqbCIfkMixZXPRCadWPsrQkFV9b5oyepxxMD+lnRdaxz4d0IDwwU X-Received: by 2002:a05:6402:4284:b0:461:8156:e0ca with SMTP id g4-20020a056402428400b004618156e0camr16334899edc.271.1669040804193; Mon, 21 Nov 2022 06:26:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669040804; cv=none; d=google.com; s=arc-20160816; b=qX1vEyAU/kf19Fg+7N8NsW5BmYQf4j7T18iE/TjMwMRvlW0nzsrcOWVJhHzfTHdwbj Ylb+Vbf6A4jVa0hPw+LgFHsuSv4Qxtuul6YPeqzLl0vWgHD0JLwGrrXPNGQ64kdcBZyS FQu8qQghBan2UhfHQEUtFZLUCZ8yzQPVi06Mi39HFruVYSTok1U6cil846hzsAdzJmfw jfQTO4XiTnX/cpOKlgAdEnBLBsVGMEPlSz+KV5qkjG8yn1/wzkezN4vsckvAqSiSpOZP xg+/6q2fzApiUBon/L/rsBXATaegBzYuViUhynmPebF2dc4EpaYBsSXUFnCXf8ZtJqhB lq2w== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=drhTEQe31yycsjARalMi8wiw6eVsmgrhMdEVBIej5ao=; b=UJv65hit7as74aqzZZnR5odcoHPgLK82daOj3rtx3geRphyL4MR8O/fUMeife7mj+s twxRhpYxCBs0HrC3YM724Y5LlpcVE0ONlReM4jEDs4Qnsm9uMUV6r8bHE4dkrCDxxFPY 19+41FmYKFBTvDbKOLWakOBEC7+QZuvWnOVBupi5kf836JwgVv1gJ0xqoLrVO7auhuFR eL/g0AbhdGsH5I1QEy10cWAWSSdFn3D7yuxs4U8GtPBs0yisY2rIyz6190+sBWmdPbFu YKXMSRnHgGy/TkhdUFH1L46912Gp5/oUNuJqPM6hVk39z7xtA2EMKXPy/7TsELbEXRUc ldoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cirrus.com header.s=PODMain02222019 header.b=Px2yehW0; 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 t18-20020a1709063e5200b0076f0940cb28si7673968eji.175.2022.11.21.06.26.21; Mon, 21 Nov 2022 06:26:44 -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=Px2yehW0; 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 S230475AbiKUOP6 (ORCPT + 91 others); Mon, 21 Nov 2022 09:15:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbiKUOPZ (ORCPT ); Mon, 21 Nov 2022 09:15:25 -0500 Received: from mx0b-001ae601.pphosted.com (mx0b-001ae601.pphosted.com [67.231.152.168]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3F7E5F58 for ; Mon, 21 Nov 2022 06:14:15 -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 2ALCr4Bv002700; Mon, 21 Nov 2022 08:14:08 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cirrus.com; h=from : to : cc : subject : date : message-id : mime-version : content-transfer-encoding : content-type; s=PODMain02222019; bh=drhTEQe31yycsjARalMi8wiw6eVsmgrhMdEVBIej5ao=; b=Px2yehW0pb3Dxk9Et+O5SgtdGsZeG+kXGc3p3QjGWDkub5qGbuUdeMLag+VO6SOBOCsF DNhb0ERqw9FNiXBSncGlgzb1bhPdcTsc32h1PAsyLAOgqmCZuv87SGkgceIxjzpuzYI/ bA4ClYvtTf/SFc5nekF5lMnen1xv22ul6JcXvBI5t6W/z1Iti9QUXGqviPGNnjxlIIVl Ddb8wKqJPvI7XIV4cRQcBEh7+7IxdycptQ7xP19MQBJSk3xQBcqYNwbGJzbPM4QzsXBC ZQ2tmXfDTs4b04QdmW+k9rUbRsEZII2oWSmJWnBANv4PARNVrJbcxjYZQX+YV7FBKE1l DQ== Received: from ediex02.ad.cirrus.com ([84.19.233.68]) by mx0b-001ae601.pphosted.com (PPS) with ESMTPS id 3kxvet283r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 21 Nov 2022 08:14:07 -0600 Received: from ediex01.ad.cirrus.com (198.61.84.80) 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.20; Mon, 21 Nov 2022 08:14:06 -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; Mon, 21 Nov 2022 08:14:06 -0600 Received: from algalon.ad.cirrus.com (algalon.ad.cirrus.com [198.90.251.122]) by ediswmail.ad.cirrus.com (Postfix) with ESMTP id 5DF06468; Mon, 21 Nov 2022 14:14:06 +0000 (UTC) From: Charles Keepax To: CC: , , , , , Subject: [PATCH v3 0/4] Minor SoundWire clean ups Date: Mon, 21 Nov 2022 14:14:02 +0000 Message-ID: <20221121141406.3840561-1-ckeepax@opensource.cirrus.com> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Proofpoint-ORIG-GUID: JZF-RXjQwTMQmNfQXDXWTohWiOHZXD5q X-Proofpoint-GUID: JZF-RXjQwTMQmNfQXDXWTohWiOHZXD5q 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 Just some minor tidy ups and preparation for starting to upstream some Cirrus SoundWire devices. The first three patches are pretty trivial, the last patch which moves the remaining core over to using the no_pm functions could probably use some careful review. Changes since v2: - Fix up a memory leak of a buffer on the error path - Added some reviewed by's Thanks, Charles Charles Keepax (3): soundwire: Provide build stubs for common functions soundwire: debugfs: Switch to sdw_read_no_pm soundwire: stream: Move remaining register accesses over to no_pm Simon Trimmer (1): soundwire: bus: export sdw_nwrite_no_pm and sdw_nread_no_pm functions drivers/soundwire/bus.c | 10 ++-- drivers/soundwire/debugfs.c | 13 ++++- drivers/soundwire/stream.c | 30 +++++------ include/linux/soundwire/sdw.h | 94 +++++++++++++++++++++++++++++++---- 4 files changed, 116 insertions(+), 31 deletions(-) -- 2.30.2