Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp630929rwd; Sat, 27 May 2023 04:07:51 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7WcS1sVdvms5A63pBDTpb/QOKjHo8vtnR+6j/atkbKyGNH8Z87KEtNUk8emDKpYqeNOlxC X-Received: by 2002:a17:90a:d586:b0:253:8eea:cf with SMTP id v6-20020a17090ad58600b002538eea00cfmr5389191pju.28.1685185671389; Sat, 27 May 2023 04:07:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685185671; cv=none; d=google.com; s=arc-20160816; b=BbslO94wAgxP3uOrkWKinOoccuF+cbV/3kGeKrhJqS2xK9eQQTZSvfplS+tSERaa4Z wvHwhye5YBZ+g6UG97geAOHc4Sqrss4kkvWmt/S6JQfT4215BiI31HM61c/Zvh5ca0K9 i0Tnv2lT/WImbGIIYSc4aj8i7UHT9sQWgGAKckAcmDDePk8GObSKfdQLIgjMTIhk0/Jb rdEKqpd/5xM+7mTMClIPhJfM7Dn2Y7aqKcDxiHNq35XjKJwWmyV2tSeNP4DKf8LKsDev 95iGMHRxMWrUURgjEP8dHvXkXttQN60/pwsS9d7DaaXiKZair/IKfhvfhcyA+KtR1SBW OjkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=jeQXWSdc3eOIhqi+gffBBQXm/9H2xHrmUtUp4HQxswc=; b=IVpg32KHMQ7v6TaA6jZeBtUc1hgKajfPkesxaDuQ9aq/kJAkOZqws87nt4ZiLcUVkH gQ4NdPTg6M8FenHGn9YhfX/6zUnmrS8WwP99D2IqvqKeFWi6XE4RYqwNu0IY502Xcser bnbhjJ8uN9DUmRU6Zb9ImbkYzv63m6/6BLbBAaCFChsvDyc+AR6DHHs9Utsa67T70XOa 4B8e+OBKGE6L3LlgfR+FINmhbZVTgC6mTPO0Xckz5c6N3iHs2qRL5dHS17XJYlpbI3a8 8LhS2ieVR8eGjPmma/U8rj5iAnl5gVhyAOKdvoLY4SmalkkUqTsPFt3gv+UJO2Rbfw0m To5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jPqBWun2; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 27-20020a17090a19db00b00256511877acsi644595pjj.190.2023.05.27.04.07.35; Sat, 27 May 2023 04:07:51 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=jPqBWun2; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232312AbjE0KjC (ORCPT + 99 others); Sat, 27 May 2023 06:39:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231608AbjE0KjB (ORCPT ); Sat, 27 May 2023 06:39:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4BD78D8 for ; Sat, 27 May 2023 03:39:00 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D5B5560B67 for ; Sat, 27 May 2023 10:38:59 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD647C433D2; Sat, 27 May 2023 10:38:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685183939; bh=3ENny4TLjAP6BGM/oHhGNzefJxUwL+iQcwwURQ1DS0E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jPqBWun2jt1uDOsPLMUyWY1ve5naJCAfB7AwNdGcZ30zRQ5zxCpPRUG1N0e2UwusN d1nms3MgE83xe42z+IhTSmHgdKmh6AG7MgZnne3AhmJtpfvaFOa3XpmZypEzVVVB/b 1e7js1lGGCmUN/9dRMLzaTpHdaVsF1kLAFFnbfhbGRpaXVLA+n0Tf6Fhdsa4Lf427D 16K4N+WYt3x6VIZK+HdRCs4A74WjMgwyAtXGY/xAdjhpVl5aGqqC60UcpweiN18kZq nTA7HZLDFw69frvGso96Jw/ACc6Orw4RtA0pFR0rK8CtN7UX9BzQDJ1ENj8MHf2T4U K7DZpuE2PQxLg== Date: Sat, 27 May 2023 16:08:55 +0530 From: Vinod Koul To: Bard Liao Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, pierre-louis.bossart@linux.intel.com, bard.liao@intel.com Subject: Re: [PATCH] soundwire: intel: read AC timing control register before updating it Message-ID: References: <20230515081301.12921-1-yung-chuan.liao@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230515081301.12921-1-yung-chuan.liao@linux.intel.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On 15-05-23, 16:13, Bard Liao wrote: > From: Chao Song > > Start from ACE1.x, DOAISE is added to AC timing control > register bit 5, it combines with DOAIS to get effective > timing, and has the default value 1. > > The current code fills DOAIS, DACTQE and DODS bits to a > variable initialized to zero, and updates the variable > to AC timing control register. With this operation, We > change DOAISE to 0, and force a much more aggressive > timing. The timing is even unable to form a working > waveform on SDA pin on Meteorlake. > > This patch uses read-modify-write operation for the AC > timing control register access, thus makes sure those > bits not supposed and intended to change are not touched. Applied, thanks -- ~Vinod