From patchwork Mon Mar 7 12:58:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Carpenter X-Patchwork-Id: 549384 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61929C433FE for ; Mon, 7 Mar 2022 12:58:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240507AbiCGM7u (ORCPT ); Mon, 7 Mar 2022 07:59:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35684 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230433AbiCGM7t (ORCPT ); Mon, 7 Mar 2022 07:59:49 -0500 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 226145BD14; Mon, 7 Mar 2022 04:58:55 -0800 (PST) Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 227BvxcY019187; Mon, 7 Mar 2022 12:58:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : content-type : mime-version; s=corp-2021-07-09; bh=BcAINTk8adBaFzN3HqJbESLKNawdGOLgsvJLgUvP1U0=; b=tY5sNKz4SmFee+vfQjjPT6OgOeqtvqtPiCZoS7TDm0An9vcUJ8ffV2dQ1b+gefIbcaHq If8Lx7Uh8tubPzH+gF3tXQ/52wMLG38Uv0Bhy3SxrZoQmMDlnBLpWTnz9CDutZk3RoXn 20QbOZTomARjXwqWglhsIhNKtOfrN9Qt2qeVMMDhER4tU6Ej/WIDKtPPhStSlTUAaP4f i4S5CXmPUD6KDHGcRvZmJNMDsk9Utsom2jVUkSY0ex7vnRGIbO4ibEAbQRIKGBmGsHDj 0uWYlChIrBCvcJpkzZd63Bv4fwnO74tfoqloDhdQpbJCgH/gGQx8hMCLAMQdzhFgCfv0 AQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by mx0b-00069f02.pphosted.com with ESMTP id 3em0dtuqqt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 07 Mar 2022 12:58:40 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 227CuckE039893; Mon, 7 Mar 2022 12:58:39 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2101.outbound.protection.outlook.com [104.47.70.101]) by userp3020.oracle.com with ESMTP id 3em1ahym22-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 07 Mar 2022 12:58:39 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BCQQ9/dkgvWoBWXkoHlKphFxybBmG3tKSYJbZfYqGLa0NagayY9TkZDTzzfkd3uO3tmSWTx42t7Yn6anJihm4hpdjdetOVRkqcbQ5v+E6KPzrul8oK3JbC8RDKjJ/QKtlJ3HL1IAsOs+OTvAvTKn75+ezxmdyZK4L+6bkOTgmsnIS/sSr+P6j64JYCyqdp25ETk+CBgVIZnA4Hu/2Rlu1njPxg6mmUbiqM8KYA0Eu2tVMGJSVufvs5dbX9HrFbvC5CUXx+Y5opUCZSjKnoYAzz483c26jPBb7bQMkbWnHm8BnCtMVmc5Bn7RM+d2ijHjDSAdpT+gk8D1//igmlmMQw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BcAINTk8adBaFzN3HqJbESLKNawdGOLgsvJLgUvP1U0=; b=fHjLocXKTNoJdnr909JYy5D1QptYusGTGL54FCqhZM6sUZbpBssv8RiMHnuzWeJp/VGsE1xroJr8/LwvECskC3ge271wGEGgU9KlpEIu3qA6mEm1w2XYY1ylbl8n9ecQaJuMT9mCOPkkvYm2HGrodFMH3gGqxkTkCUMhnI+KpCJeJKBbeUXvBkbnr2esiltcvTaglNmEteWCDVt+SWq91kGXCB1KJgHgs+q4gsUB/iSbhgwCGjMbAZtg4qyiTFoqGYyz/kPoO5tLQfavA4oQRixMZ8LxO9RKeREgbkbqLVoPJ6AKNNAf+GsiZB+i65ElZyTW44lQ5KVcwaDjHXLCNQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BcAINTk8adBaFzN3HqJbESLKNawdGOLgsvJLgUvP1U0=; b=b2vZ7phBscC5HekOwxa3z3Qn1C2zC+EgthDD/6rLM9HM61OZMc3FewqvFUb2eux5GXkU5hylDvjXBfxPn95k/kgEpG1kifJpeZbXSrxdbiU/qooNyyulAwt+i7oFKdCqxA8+4+odSV/TapBPHIVNUfRJVYQOCkxRxGiBQLC3EzE= Received: from MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) by BYAPR10MB3367.namprd10.prod.outlook.com (2603:10b6:a03:15d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5038.19; Mon, 7 Mar 2022 12:58:36 +0000 Received: from MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::2c3d:92b5:42b3:c1c5]) by MWHPR1001MB2365.namprd10.prod.outlook.com ([fe80::2c3d:92b5:42b3:c1c5%4]) with mapi id 15.20.5038.026; Mon, 7 Mar 2022 12:58:36 +0000 Date: Mon, 7 Mar 2022 15:58:15 +0300 From: Dan Carpenter To: Andy Gross , Srinivas Kandagatla Cc: Bjorn Andersson , Vinod Koul , Bard Liao , Pierre-Louis Bossart , Sanyog Kale , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org Subject: [PATCH] soundwire: qcom: fix an error message in swrm_wait_for_frame_gen_enabled() Message-ID: <20220307125814.GD16710@kili> Content-Disposition: inline X-Mailer: git-send-email haha only kidding User-Agent: Mutt/1.10.1 (2018-07-13) X-ClientProxiedBy: ZR0P278CA0115.CHEP278.PROD.OUTLOOK.COM (2603:10a6:910:20::12) To MWHPR1001MB2365.namprd10.prod.outlook.com (2603:10b6:301:2d::28) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: fbb0cfa7-cfc9-4164-85f2-08da003a318a X-MS-TrafficTypeDiagnostic: BYAPR10MB3367:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: nUdIfKVRwgVyyYP2xkARi4LEe2jTtAiekPWe2AfIVX2t3dQqXwxQsxzG6menFyUZ+kBYQqPsZCTpCf+zu8USDQ2F3xuWSeHPiGpvTU9MuIyb9iFSUV1mVRzHXotVnfZH4QhdcyyansnkEscpU+aG8fxaHUieqekxsSuu6RJS0G1Yxz8qSnNYW7YrMqRm3A2SI7SQ+CjRMNKGVqO3WgU3KcQ4yLrAOeaNcwrho+4LxMavmTJN2bOamaeSxho5DCYNcI42bAoukz/EjB6WzSos6qfhXsJ4juhfd9n/UpNCGy5xJgxcPll0a3veJgSxwjWAp2bhTbAGZtKQJHUYhoiabxdpEIAF7a5//YirdDosOGPA61za9Ay78bbZGpi6fwvSBEFiLb93mZp6/emClTIG6I3SjEhffH2Mdu2snHqaLsUjfpAjSYC6n9D1++/67IUVwkQkXtBB+bXouphq+x0/vdvxWsm9Edh+nO5G3QoA0vqhY1uKTmbh3uWfHuS8Db1cz9tYRyeTMJgNHmfzzTA6M9POhn1KdVq1haEY/OwlQtZ/L2cGpWc0acC/jUO0xuBoIWWCvQX2Bx+ckqtr1lZcjEnZpv4UnYnqXvVA13xYLK6rziwenfK5FpW2KeHNPLfkA97aqohL1mvZ1h4M6CfwqJPyDKMO/9oE6aoaiwsdCuj0JyQD5MBooFamU02OorN0UMapkP+BfcN7OYhN0/JFrA== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MWHPR1001MB2365.namprd10.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(7916004)(366004)(83380400001)(66556008)(66476007)(6486002)(6506007)(8676002)(4326008)(6666004)(52116002)(66946007)(8936002)(508600001)(54906003)(316002)(33716001)(4744005)(110136005)(7416002)(86362001)(6512007)(38100700002)(38350700002)(186003)(9686003)(1076003)(26005)(2906002)(33656002)(5660300002)(44832011); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: p0iZ6e4XuSpq+sdgIydPsB7ZaGkozpeAzFmteKTez2P90Rus7cZ8vIesHQHuSJzVQgPgeUPMEnp9Vx72Or6EznJZwlcvhaAZrJNlwzRWNE/1iijvdjNgsE1t2VMsZ6gaEj49nVjrmtQipjUFwtUq4oRaLUQQtyV0TS+1iJe2d4Vvt65hhhNzCgdiEl2VRYDj9yGjaDUjPS0H6UQUJDJYhSIEu00lIXvfu3xxOpJUeAnU3XdB60+2AK2Av0esioVioY3K4jqIO1M6U/V+6J0hQWgPq7IyjjEWIvgvq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kVS9mBrX+yiz2XxG9IW0qgcLaoOt0a4V+td1JVR5y4lfnrL74IJ9lQUOraNAM20Bbm40FOk3E1j9VogpW8bSFwh1vY1k6WXh6vPOAOWDSJj35sXlp9VerI2fOwhfQXWs6PG03t9IDZhXUKz6MVbkbSfX3w+W+l2pX12FdCj+wql3k1TsgdZEswspczvAPv/L+ZORU2fUNbKXNGwLV0qkmGhEoWKz9NS7JIkrOWkDMxBd686w2RN0wcTzMQuVK58XFRVtnjyCgunQ6jMAgZvcKe7PlSCzACLToSGM45VCQu/WihtfegoXKmR6BleF0VMNOg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: fbb0cfa7-cfc9-4164-85f2-08da003a318a X-MS-Exchange-CrossTenant-AuthSource: MWHPR1001MB2365.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Mar 2022 12:58:36.6861 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: Ra3+lob8F4/YiCGHCOXTy9Znjp+Tf0EksEWQAyRNpk/LVMbKkePWweKiFeTcNITRmamRMYAicbN2/WX77zBTU1mQtRg+xKpuaUf6sNlBO8A= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR10MB3367 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10278 signatures=690470 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 phishscore=0 bulkscore=0 malwarescore=0 spamscore=0 adultscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2203070075 X-Proofpoint-ORIG-GUID: wqN0YSTC30_M8a3VlzVaQAwkIK-PpHZT X-Proofpoint-GUID: wqN0YSTC30_M8a3VlzVaQAwkIK-PpHZT Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org The logical AND && is supposed to be bitwise AND & so it will sometimes print "connected" instead of "disconnected". Fixes: 74e79da9fd46 ("soundwire: qcom: add runtime pm support") Signed-off-by: Dan Carpenter --- drivers/soundwire/qcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index f613a41c278a..6ca041f9e449 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -1452,7 +1452,7 @@ static bool swrm_wait_for_frame_gen_enabled(struct qcom_swrm_ctrl *swrm) } while (retry--); dev_err(swrm->dev, "%s: link status not %s\n", __func__, - comp_sts && SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected"); + comp_sts & SWRM_FRM_GEN_ENABLED ? "connected" : "disconnected"); return false; }