Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2601547lqb; Tue, 28 May 2024 05:18:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXtW7U1Yl/pcJ9hmGjGJrs4dU27SOzYBFRk0E0VI7oJrLfUkc8SIcFaM0cXfdN/VVl/rM1XbHVA3h6zzSVdj1FekRsZ727PRJvkClqTRg== X-Google-Smtp-Source: AGHT+IGxQJ+xCNnqoR750otq6YH57WAXYs5OXCzGdJHAnA4BV2mjoDoiGmph2ww2Y4K4KS5u6Jz2 X-Received: by 2002:a05:6a20:d41f:b0:1af:d3d1:3cd2 with SMTP id adf61e73a8af0-1b212ceff72mr10872371637.1.1716898695777; Tue, 28 May 2024 05:18:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716898695; cv=pass; d=google.com; s=arc-20160816; b=xSqRMXlW6KGdQs2RczllZVzuZNok6+FiQJMIUMpcMPxRUVtAW3qGZY5jDI4ZD2/eCi 1l9ffhszYtuPeMCZus+qHF4oEoFvEFnNe5hNrT1Qyn9sxCh5rEuqpltB9Oxo4l4BU9Wv MNI9rY+wEVIwJ4HB0WtFrgWzbi1mTLvewFgN8s/3sZycK4SVsKk5uUeYOccuY5PtM8So sn9EQgXzETFLW9YSz+5PWjENckFCe3V9TBAtSTRIHNgUZbHcSi5M1zPd7bU93kBEQvOR l1b5GKq/fP4GF9UtukTJ4XH9LTWxqN59V6gQ8FcdibO3t0JyuYAYmIlzwFW7Jvj/Xcb7 Vivw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=XYEcwBrn2ZuAVxK/8OUQeCzOCxQyqvHA12tGOH+svqk=; fh=VjzK4llc3AZOMDQm72KpD+aIYUTtct2Rg7IifXGJTu4=; b=L1lweFXDTetk9b0tJJK3QzHQQPpQQ68hkAi+2zEJliSTuyEdIictxCZ0AkLIjDaCY1 GoJg1geA214IKYA2Lyv5jAVyVAElttIGTYDM3IzAXSObUMffpMj3LN2IdA0zZyBlMm12 pbnSl3sSeBXoRvK0cIDMLxxk/mC3vRxr3+yjCAWs07PIDMkgNnyOF2nQXujp7/EYhaNO kIL89WpsVyw9vmiP1+1eAACL+ra4OaPpEOi8/9GyBamfQRSKcKqeGgbbr8zV/NYMGNyh WujnIIbruGMlbqyCfQjSyYClkLDxXzMFc2WajO9UL8M7b6CZe+/1ZNCrHQ3f02+s2GMD 0scQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wvR3m5ZZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-192238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822779bbfcsi8245840a12.397.2024.05.28.05.18.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 May 2024 05:18:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-192238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wvR3m5ZZ; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-192238-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-192238-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id DEB20B25FE0 for ; Tue, 28 May 2024 11:59:10 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E63DF16D32C; Tue, 28 May 2024 11:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="wvR3m5ZZ" Received: from mail-yw1-f181.google.com (mail-yw1-f181.google.com [209.85.128.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B224516C863 for ; Tue, 28 May 2024 11:58:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.181 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897531; cv=none; b=I/LMTBCukVBwkBby0ul/Wy9YnHrdVDM0njdTwn6ENFdlAb00Y8yaGsWnfyOc2QEq7eRRsGwVJcV1UCwsegk054Wn1oGyQyKjWkulHjJm/CCM9BPIUyRBf5Wn1LKeB0wTIZqPDT9gjkxmZHsssKUf7B0o+amy6orYnHfVdF5Vh3k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716897531; c=relaxed/simple; bh=XYEcwBrn2ZuAVxK/8OUQeCzOCxQyqvHA12tGOH+svqk=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=aevywr0RM2AoCBtebomvCFEUA1IIUSXkT0dYySTzKEnBhv0dkOhhs4XZ5PM0rh9Cl2NajK/PgXyBP55/CuaBdyb4qRUHjTTcbpdpWhcvuyYowuwZ0Fd1qdzcVjDVPEyMWHbRYyMRsJOZng+TUtgvb7E2HbRcWDInsYZEjFgJEYA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=wvR3m5ZZ; arc=none smtp.client-ip=209.85.128.181 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yw1-f181.google.com with SMTP id 00721157ae682-62a2424ecdaso7320427b3.1 for ; Tue, 28 May 2024 04:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716897529; x=1717502329; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=XYEcwBrn2ZuAVxK/8OUQeCzOCxQyqvHA12tGOH+svqk=; b=wvR3m5ZZpG9TtziiPqDPQd0C34yd81oJCe8YxiDKUc7x3yDmT7O61VeD0EuhMNMEfA JPkShAzEB05xK3MwdHG0UN53ECPH+FcKzBaXBYzvmFZFg73NSah1Cyl4QLhTlS4DN9Xw y7Xu5ADr6FQgPeL3KBt/snfKfeCGH6cu3osGRYmwamijfnjbQqGsSoENKN5kyXnmOT6m NkJxGf9W7QKX28IlARln1KP+2pS0jF9P+LfCd2gRSgBbzXglwdJxWq5+JsQE/XWHP+q0 L/j8iD6b/QTfd3PIyTEIhFdySbTNKb9YgYyR5jLd/Vk1wbP0Vt6YReX+QHkdfHlSu6X4 7F8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716897529; x=1717502329; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=XYEcwBrn2ZuAVxK/8OUQeCzOCxQyqvHA12tGOH+svqk=; b=rPJAHxCnAF8GPGR7NqXv0+jQFWGNoNEKDUCBsz3zBha4yCT1oKxprylWDe3eCG8e53 BlIQ1330AF/FsV49IV37VR4c8/8haaCH89XbdfrwDr0SkCkMZNDacUUQ6iwcS7U3OHqj V33NXSAIxdo7EiUu3vY4/QIZgtVT4T9Ih8e4BBRVM73efx8EeB86fCsj7zTgYcwMfuPZ oW2ysQzH/KONKBESWtSyiFMPuQ6RnfH61c6fOi1BPTHeEvc2RUp0KKOA588lhgRe3OGS B+7IOREkFHy4ApXkPNhUB+HVJInTk/lf6tSdUJaeI/0LlX2h5KtRkN6b4rG1qAwgFMsV EYzg== X-Forwarded-Encrypted: i=1; AJvYcCXo8ahxwiHeoeVHLSwx+KGK8OKazhS4tnAognvnhuu1PBORrBE8/Y4DWCbX1a/qvxau63qyCirfm90LqYBgglHLEUuMJ/7lKtIQvAAR X-Gm-Message-State: AOJu0YylmNrUZY83hDkg17IuIew8KQgkqC6dFLkXvygXkluJ1shYhe3P Z92aiICcWryGDpnimldx+Qxk+J3wdIa+NwYCrMfJ0PeuVVzI8MHqOcL25MOk4V+Wt+K4Yfosr+h nJIDLkFl0W5wh/tqmorMZ/ppHP/X4ZZffrq7dMQ== X-Received: by 2002:a81:92d4:0:b0:61b:33f6:9bbb with SMTP id 00721157ae682-62a08de4efamr123625807b3.28.1716897528671; Tue, 28 May 2024 04:58:48 -0700 (PDT) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240521152602.1097764-1-patrick.rudolph@9elements.com> In-Reply-To: From: Linus Walleij Date: Tue, 28 May 2024 13:58:37 +0200 Message-ID: Subject: Re: [PATCH 1/3] pinctrl: cy8c95x0: Use single I2C lock To: Andy Shevchenko Cc: Patrick Rudolph , naresh.solanki@9elements.com, broonie@kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2024 at 7:25=E2=80=AFPM Andy Shevchenko wrote: > On Tue, May 21, 2024 at 6:26=E2=80=AFPM Patrick Rudolph > wrote: > > > > Currently there are 3 locks being used when accessing the chip, one > > in the driver and one in each regmap. Reduce that to one driver only > > lock that protects all regmap and regcache accesses. > > Right. But please consider converting the driver to use cleanup.h. > Dunno if it requires a separate patch or can be folded into this one > as it seems you anyway touch almost all mutex calls in the code. > Linus? I think it's best to add a separate patch for this for bisection, just right after this one. Yours, Linus Walleij