Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3399580pxf; Mon, 15 Mar 2021 08:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxsZBLDONR1zm7qaJ/vLjuYFjib8U0ml6QbxKOFMciid4nJH3qNZHmHsVrsKExC5+QWd2kF X-Received: by 2002:a5d:65cd:: with SMTP id e13mr307287wrw.334.1615823127653; Mon, 15 Mar 2021 08:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615823127; cv=none; d=google.com; s=arc-20160816; b=doGWhPK8DbgLsfS8tE+xwCp4UMjGlxwNrz0uXbyJ8Maq2mAp0z7SGRkTEdMXdRMEX8 kJwG0FWbPVki8z7BOGEBfIn62gtJkqdoJembaBYaxz2dnNSeFZj6xsfYWzXib5FetT8U NhQihE75DNW0SiOXHCvpOgumoTSuZd9YbAydS6+UWM4DSmqU/vARO5tsi3U3xhX1gB1Q 5xZ5W3wh+srbFOu0VnwcpYFZjPNmBN/wadoERs8SAu+CNP7dThZbivuG7QfkOe8n/cMD WNMEKqV/RXI/03Bzlufrb+xirXuPtPpDcakmHWle9nj+/y3x0LxkjHvJYZvogcMFVeHk /UIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date; bh=MYKvmGFt7HYaRD/CozMOQvBMBPHR3j3kFJySMHxOiYs=; b=o9EHjiO+zVeLXuRxBTNmaqblt+QlTjqzCdq8tPZXJ43vdZY4OdYMcCZRK1IsrSH68T bNc9XyFEyAtTTjcHUsB4HckQr375Bc//Mqx93Egn333GNzLqK2Cul9OhAjWFPR6F/B9c AJhmuI3ZzC3wHzHxSbHUsgiv0TUSaSjxX4ML+OoHmoWeME4ywnBjdvyQLbUTxqF2MqQz Ym5L/ia8SQZTqiEvGmERRwE/G/U3hao54Fam8I8ceObPacVDaaFxR8PF2batjDttxBY7 0J8W5xu+gjw8eDumq0kwMJtIGicVg2gSEieoGkUI014akUwHTxpSwXDgVwIEDpxdzCBH inYg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m26si12219156edv.514.2021.03.15.08.45.04; Mon, 15 Mar 2021 08:45:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230409AbhCOPl6 (ORCPT + 99 others); Mon, 15 Mar 2021 11:41:58 -0400 Received: from mx2.suse.de ([195.135.220.15]:33346 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232210AbhCOPlr (ORCPT ); Mon, 15 Mar 2021 11:41:47 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 15AC5AC75; Mon, 15 Mar 2021 15:41:46 +0000 (UTC) Date: Mon, 15 Mar 2021 16:41:46 +0100 Message-ID: From: Takashi Iwai To: Vitaly Rodionov Cc: , , Stefan Binding , Takashi Iwai , Subject: Re: [PATCH v1 1/4] ALSA: hda/cirrus: Add error handling into CS8409 I2C functions In-Reply-To: References: <20210313113410.90088-1-vitalyr@opensource.cirrus.com> <20210313113410.90088-2-vitalyr@opensource.cirrus.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 15 Mar 2021 16:37:32 +0100, Vitaly Rodionov wrote: > > >> @@ -1881,13 +1896,15 @@ static void cs8409_jack_unsol_event(struct hda_codec *codec, unsigned int res) > >> reg_hs_status = cs8409_i2c_read(codec, CS42L42_I2C_ADDR, 0x1124, 1); > >> reg_ts_status = cs8409_i2c_read(codec, CS42L42_I2C_ADDR, 0x130f, 1); > >> - /* Clear interrupts */ > >> + /* Clear interrupts, by reading interrupt status registers */ > >> cs8409_i2c_read(codec, CS42L42_I2C_ADDR, 0x1b7b, 1); > >> - cs8409_i2c_read(codec, CS42L42_I2C_ADDR, 0x1308, 1); > >> - cs8409_i2c_read(codec, CS42L42_I2C_ADDR, 0x130f, 1); > > Why those two calls are removed? > This 2 call are redundant as we already did read these 2 registers in > a code few lines above. OK, then please either split the patch to address this or mention the change briefly in the commit log. thanks, Takashi