Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1396154pxj; Fri, 21 May 2021 13:12:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwF4U2Zy4uG0wPiSmS0JAnEyTeQAzrGPtsOBg7K4ewIIa4aI72hn3GZxVW3ghlPBML06Z+S X-Received: by 2002:a02:1c81:: with SMTP id c123mr7065285jac.42.1621627949632; Fri, 21 May 2021 13:12:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621627949; cv=none; d=google.com; s=arc-20160816; b=rHN8ngJpt7I3onPE6HaZ6/AmLYr7RWqgOOHZMut1I7m85IdKnyS0ebGAzzu/t6xn1I CQIJKuP+0OYSgnuiHJMRj69XQCtS1zloIZaGKVmqCRx1QwcteVanM9AK1wJ1gEu0j9Qp lgrgFzUgwljzmFKAWFzY5keS6uLVT1GHcAQE9tnOip6Lr01tTh5cT2wVif65txtXJDx/ S9ZieI9FUASFqaNsSPG/0Q+RiDf2H+KZ32pw9w3h5UclIV/o4Pg1XdMwfSSU2zoU2fCd XHXIO5a+zHYNkzcDMCRUPwvWu1sHnZsR7sncvfokOYBr/Sd+hJj32pjdU2ObweomFHpo dkrA== 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=jNwcIRABGdgdsxKm1R5ZPD3oSMNkH2CN9R0AsY8oxF8=; b=wwdh+Jcg06xnR928xodCf1u1JcGtb1+hr3UcImsC6sdg1NuFKcIywNV6MUtih++BmD Ubv2jCKqftvNgtjRQSgu5WhG5FW/m90FN/F4HvXtMtpc4UMyzbRqlIwe6BIwisnI+FeO 50dEI5711WpOLB9CBA71bSoTZaCaKC7QGeasIbhAv8yeixfRIjjxZfUxbi2CAMqNVB2x 4bt4PBgwkYWEAI1FTZMuWrDWBKPmfSeHiPLtK/mM/2spaE9EdDBOvr1CFbXd0a0mFibC wUvfqr7v8wG+KBDaFG6s2uGDu1EmrsIyvrIydqEg1VXfLzqoS6AoSENCYOymkJarPDEY Zi5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=WWpkvx4x; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d6si8138417ilv.73.2021.05.21.13.12.16; Fri, 21 May 2021 13:12:29 -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=@gmail.com header.s=20161025 header.b=WWpkvx4x; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232281AbhEUKLS (ORCPT + 99 others); Fri, 21 May 2021 06:11:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231530AbhEUKLQ (ORCPT ); Fri, 21 May 2021 06:11:16 -0400 Received: from mail-pg1-x531.google.com (mail-pg1-x531.google.com [IPv6:2607:f8b0:4864:20::531]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CAEBC061763; Fri, 21 May 2021 03:09:54 -0700 (PDT) Received: by mail-pg1-x531.google.com with SMTP id k15so13832736pgb.10; Fri, 21 May 2021 03:09:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jNwcIRABGdgdsxKm1R5ZPD3oSMNkH2CN9R0AsY8oxF8=; b=WWpkvx4x55xlhEBYmTeubhnOdtlBx0ZrNaHPgxxLHChAthXJ4a0/N2euUN3v6oLWD8 UsD9hXGluY9RrM2lWVpcBRmV+G2F2PfRNfyeHzECmeaKQRykCXCRfSfoPcw19zRG0cTj p1mAccCW5WL9IQjhOMMKZ0ed0d4+wpMBUD6vNmqPvmjgUX8V7Vk2TY1zxCJ0I/4A3AgU W1ylmgpZLBOsyliaswrfwggXzDDR85dimbpE01jfQ4Is8avq3A5fl4J1cb+/al8u2sej e7TvkF9OCt7r098wM2KH3Bn8CCwNr9YUv62BRPUHWTejxRpio0ZZELAX3x42d6MJuiSD HJ2g== 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=jNwcIRABGdgdsxKm1R5ZPD3oSMNkH2CN9R0AsY8oxF8=; b=RtQz+laSU9st1YbVXoq4nmjnUS8d6qsxRwOj40A4JtE5Jh8ExcxmUSdktn6baNEOqf kkO1H+rmJscqrnPtc/10owAigMy9ltUS6G3n8njOVoIzhqkS1TkidfziyZHQ6Rr7lQaC FrElMxOYGA6IYayCpgjfcTkiq68bGT1jQ1vtHjBuFY0WYZTx9BWwHozXxhT8LzVFNjgT ZclRIReF/AMVmR+aOayYmHg3TYpxyhiZXBYQK/f+qZ9EBt0opbZ8XscZ5zAij4gPl6kh G8X9pKIepb+Cd9vAKcZ5jiGJ32iQgt/r/k9+ZlvnP5ouez/5Mgz5aMfOpO6pInvC8HCK sM/g== X-Gm-Message-State: AOAM5325yq6Cg8N6XSwjsoYY3cDMMLn6t1qSsz8jOOUPPU8MK80JvEhc TKn8VRtc3uacpMeLTUG+UwiM6I0eV/O0jzmnNjg= X-Received: by 2002:a63:79c3:: with SMTP id u186mr9158129pgc.203.1621591793580; Fri, 21 May 2021 03:09:53 -0700 (PDT) MIME-Version: 1.0 References: <6e319c22b41747e3911c7a5cad877134cabc9231.1621577204.git.matti.vaittinen@fi.rohmeurope.com> In-Reply-To: <6e319c22b41747e3911c7a5cad877134cabc9231.1621577204.git.matti.vaittinen@fi.rohmeurope.com> From: Andy Shevchenko Date: Fri, 21 May 2021 13:09:37 +0300 Message-ID: Subject: Re: [PATCH v2 1/3] gpio: regmap: Support few IC specific operations To: Matti Vaittinen Cc: Matti Vaittinen , Linus Walleij , Bartosz Golaszewski , Michael Walle , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , linux-power Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 21, 2021 at 12:53 PM Matti Vaittinen wrote: > > The set_config and init_valid_mask GPIO operations are usually very IC > specific. Allow IC drivers to provide these custom operations at > gpio-regmap registration. Thanks for this. In general (from design p.o.v.) looks good to me, one question below, though. > > Signed-off-by: Matti Vaittinen > > --- > Changelog v2: (based on suggestions by Michael Walle) > - drop gpio_regmap_set_drvdata() But why do we have gpio_regmap_get_drvdata() and why is it different now to the new member handling? > - drop checks and WARN() for pretty much impossible cases -- With Best Regards, Andy Shevchenko