Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1450453pxj; Fri, 4 Jun 2021 15:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx0OgyX4hxiqOzUFKtKb47uz6JhkpXjt4afaWxQStyhSsb7c6YV8SpfVyIKzqV7g3qLIjJZ X-Received: by 2002:a17:906:2c1b:: with SMTP id e27mr6305427ejh.5.1622844171906; Fri, 04 Jun 2021 15:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622844171; cv=none; d=google.com; s=arc-20160816; b=gy+OrG2UmMw5CUKYzNrwabwu75L19mNKOnu9CLSvqgRtOcjS4K7WIHesBEigCRMeNW KSM30KETLEp/vkiZ4K+UILRqdCxWO4hE1RscgsZhOHikhp/cQN6I8c+9jKNPVDioYu5t YlOLMpizhYX2u5SVOw5Z7iw5AQW1vDmaW+61kafC3QpL+dIGURht7PitheZlKEkQVkkz 3AMOXZ1Pj0uCUibQeTNiR6W9+wvXdXP05TnqMD5KSl1oN0XwZzOCXDVOHMDKiNIAevf/ InaqbfWx1S7UeqxVd+N+NNLrkQ7q1hUNnWIBss+uH5f04Ts4RpGJVOUnlxZ6h7cDAY4u wRVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=J3cUQxofReVfzXAKx9OJNj8MTjPpRu0z60JXwKyp/4U=; b=0tblo6qXnq+n8Z9+mppNpDp4r4e6/rp4VpKP9MYBQW+fRByJEB5TQoaTElmo3evdZg l1/d7iILdcM5dZGNYCpQKPrqXI4A6+iY7Enl3w1YXcQ+l3SMdc6zL2gE0JqhmCmw4D2E mHOnfR8X7cTEIx/OAH7Q2F5qpVCRl8Q9NEPbCu5XPAkFVsdiPOkH5ZUsvAETwNYotnDk Mi1b3VSABz6OCp8ofKFgDNs/undRUomkEQUKNZeEmQ8GLIteolCojvDHNHZgc1rEj6wG YrSQMSAtH3eu8I5YUZCLGA3T/wMC4k64oZ52aTq0JhLJyFEV2tPlQvnJl0OOyiqql+rA zgqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P4xVpSmn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i11si5463850edc.325.2021.06.04.15.02.28; Fri, 04 Jun 2021 15:02:51 -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; dkim=pass header.i=@linaro.org header.s=google header.b=P4xVpSmn; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229746AbhFDWCd (ORCPT + 99 others); Fri, 4 Jun 2021 18:02:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34438 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229668AbhFDWCd (ORCPT ); Fri, 4 Jun 2021 18:02:33 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 52600C061766 for ; Fri, 4 Jun 2021 15:00:46 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id c11so13404209ljd.6 for ; Fri, 04 Jun 2021 15:00:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=J3cUQxofReVfzXAKx9OJNj8MTjPpRu0z60JXwKyp/4U=; b=P4xVpSmnFgkUukbaUkp1IvyEIsFhcnEdT15u+jPLp31nt3RNzK8OXdffCc1qj3xsAZ 2qPRTCZluy2EPg/C690Yq92VxbuGhEt3kcAvXtaqeC6Vz1G3eV2Zv8Eff+zL8VFTAXJt Fgy2Z/1CFxs6Y9ZjtAHsyqHNl21O+93bZySEqCeSSFndsiN9bjsnL2yZMMqFBu8Px86F ii2+qcN074Fdxo6lV4FbNTsFS8oZopCN79yxu+oRoecq87DFmaGTdfnUlRB6zVNAWQ0N ruLObxLsXtgTbFojy3tcmhpZtSJMdGreTqLgmn65i2jm86kXPhiAq/9uQfutbyV3OkYB Wp/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=J3cUQxofReVfzXAKx9OJNj8MTjPpRu0z60JXwKyp/4U=; b=p0FiyKITUQb9+62PeQGQDbpdM1h8rIL3UuOaFE8P+2QjEVQ4ax6KYEaF1Ykyoj1hKL ln6lZoBBgEGPYclaztd5+Fy1KzqD/1t7PQQuSESteenIo7fcVIMIYkeiwwyf4vGf08cO mwIKcBU/H7Z5fjB/OxrqxyV29wB52k0p2lRh7e9UhPIHRTvlEt7ApbRbB8zqskO9qr/g wBUpG3//fScTA+iIwB3KQElDSrHW7BJKvkpYXnIkhBXvZvknB7bHHZEu1P5XwzCR653q TX954Q+mT8rJPEef1D+ko2UJsduwsluCarD/+IEMwmJIwiPN1Atn6N4v6AN82Xo8mIpE hYMg== X-Gm-Message-State: AOAM5308EVL/GpXIg8wGYp8VXgBOexaqBHJEY3n+cdv23slM6doGYo/X EP+LNJGPs6F3tlZjSPrjm2cyWbsVc9lIfQXzJ4f080Lgkfg= X-Received: by 2002:a2e:90c7:: with SMTP id o7mr5008239ljg.368.1622844044656; Fri, 04 Jun 2021 15:00:44 -0700 (PDT) MIME-Version: 1.0 References: <20210604110406.11006-1-michael@walle.cc> In-Reply-To: <20210604110406.11006-1-michael@walle.cc> From: Linus Walleij Date: Sat, 5 Jun 2021 00:00:33 +0200 Message-ID: Subject: Re: [PATCH] gpio: regmap: move drvdata to config data To: Michael Walle Cc: "open list:GPIO SUBSYSTEM" , linux-kernel , Bartosz Golaszewski , Matti Vaittinen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 4, 2021 at 1:04 PM Michael Walle wrote: > Drop gpio_regmap_set_drvdata() and instead add it to the configuration > data passed to gpio_regmap_register(). > > gpio_regmap_set_drvdata() can't really be used in a race free way. This > is because the gpio_regmap object which is needed by _set_drvdata() is > returned by gpio_regmap_register(). On the other hand, the callbacks > which use the drvdata might already be called right after the > gpiochip_add() call in gpio_regmap_register(). Therefore, we have to > provide the drvdata early before we call gpiochip_add(). > > Reported-by: Matti Vaittinen > Signed-off-by: Michael Walle Reviewed-by: Linus Walleij > Btw, I'm not sure how to handle this "was part of another patch by another > author" thing. Should I leave the Sob and just add mine? Ideally just stack Sign-offs it is called the "delivery path". Yours, Linus Walleij