Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4023685pxb; Tue, 10 Nov 2020 06:14:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJzjAePdys6F3V/firvzbhIxXoEhLKdqJYVAf0wbeXzRjp+K5wbJtBh8OK0th6gKs5iMqeM/ X-Received: by 2002:a2e:5742:: with SMTP id r2mr8066085ljd.161.1605017648244; Tue, 10 Nov 2020 06:14:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605017648; cv=none; d=google.com; s=arc-20160816; b=Upwwrq1PceTFqBYiCVrwo4hakeCbRruHd2vx93uD18CLWTLdnRdgH4viQk3gQcGYew i5bH8FXMXtR1lR/DrS2TTksGSuFWNGCPxrbDCvlcndNoP2p2ZErUzYOVRf18aXzxOWRX 8LJx7x7UG7mYGmpcfKl2KqlJinq/cI0fk8dlPXKkBWComvjv7W1WJiR5R+oEDAnLyAwn 3DLfgvA8TQr2g0GPv0coXoWCX85vLUJLoEJu5NeTSH61kVJgo1EZ5K+AQCu55gSDyxXP aaQuIV7odSENYp2YuoOluY/uCg9Jiw0FPZezNlN3pdQ96kD4esH2pKEPxHGr258tB+7w gz8g== 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=ZrP1XAHiZ90F1ruflFERIhIFX48as5H9Y+mX9mtoFcI=; b=jGrnJLB5uo1cQPMF4bKcYnOQFD3ICbsseRCxXB+mCjjuCk5+LezvHS32/G5K5Wt8b9 EIIBCwUKhnrA5X0lVH9WHonQ8ceTTOJ+KsfTdKJbzau6RU58wadiSzI3lObRwxh8hES2 OIyGfXpkfvDvcaKo16ye5lEhHLKXJFqpnPuJ3W0z5DsASacwPs+WDN7uVkHkr5K4WAHU 3wd3YpEvlLXgHfXQyfH91bSwbRL/KhKVoT8PLrsSBV/ZKrsIE0wJ3u4zkg4CEFWGRPYB V23bpb+/V07mADDbtqGK2D3LsPwbJh/nUXi0P1zg33BZfF0l5dTAxwT3wTdC7roWfRn2 g6VQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LU7+l0lC; 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 n15si3862169lji.375.2020.11.10.06.13.39; Tue, 10 Nov 2020 06:14:08 -0800 (PST) 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=LU7+l0lC; 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 S1730666AbgKJOLG (ORCPT + 99 others); Tue, 10 Nov 2020 09:11:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726721AbgKJOLF (ORCPT ); Tue, 10 Nov 2020 09:11:05 -0500 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 46600C0613CF; Tue, 10 Nov 2020 06:11:05 -0800 (PST) Received: by mail-pf1-x442.google.com with SMTP id v12so11514668pfm.13; Tue, 10 Nov 2020 06:11:05 -0800 (PST) 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=ZrP1XAHiZ90F1ruflFERIhIFX48as5H9Y+mX9mtoFcI=; b=LU7+l0lCOB5cVkiaUP7L7/vVWtsAaImpMjSoTbWcRgNgrJU0nFzf8Dc0bWhmkW3yTr MUKgGrPpa8mLmDZqMarXRnyF+LXEy5lvvSWJX2pyuJUNd+DWPCWjyyepQj77VbBB0+6j cfBzYo5HJ0Wt6WoI85fxynGxDNkymOPjpBftxy8dFPcLxpSTEpwN0M1biaOYf2mUqqgJ gbP9PaYNCie+irVjuQC21WLpzcmYZ+/71NG2neBZjrS66hjK/XNJ+tzlrW9muTageeiW 6gek6S0V6loyLS4IsayfdkBqy2jTaoVIn2FHYzfaPFc5sf37RsLJWy008G2rmf99pXbE DXvQ== 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=ZrP1XAHiZ90F1ruflFERIhIFX48as5H9Y+mX9mtoFcI=; b=GojTOhLs6mX5yx+zIzGnMlaKV6jgNG9+RfNV0xHTJU3Q5sOaIcuCO2uOvFrxO/X0mC oo+4XfUUXCLIirvxOL2dcH7u1afDSr4B/rhBsA0cwag2pmzHejWI4ObLWTNiTCsmKFtv kmaRZdkS0b4ExWsAT7WF6LkD+c/cXbhYcrncpnFNgpdMi/XZ3Dh75m9bb+zxuB5B2TAk bWaUCX9NOSwbh+18ZXatzwSCYpodGXxkvb4OZ8BZu/mvlO+Gaz/VB1nLkQSKn6vqaJFL GhzTLsRCqgS0KiriHW3YK3F33uYRorfvcacV1OaKdWga1+hP0hxjm4LyiEUNR72zUJo1 dnNQ== X-Gm-Message-State: AOAM530KkSa2wcXwgeRYbEh2PlcvbANHCM2BaM23sBi6nU9lD0/rdQsi bfzRr+kqPcIClkXL+CUdOj3Bvj95jn3KlEvOWMU= X-Received: by 2002:aa7:8c4f:0:b029:18b:f361:4aa3 with SMTP id e15-20020aa78c4f0000b029018bf3614aa3mr1125363pfd.73.1605017464647; Tue, 10 Nov 2020 06:11:04 -0800 (PST) MIME-Version: 1.0 References: <20201110123406.3261-1-brgl@bgdev.pl> <20201110123406.3261-7-brgl@bgdev.pl> In-Reply-To: <20201110123406.3261-7-brgl@bgdev.pl> From: Andy Shevchenko Date: Tue, 10 Nov 2020 16:11:53 +0200 Message-ID: Subject: Re: [PATCH v3 6/7] gpio: exar: switch to using regmap To: Bartosz Golaszewski Cc: Linus Walleij , Andy Shevchenko , Jan Kiszka , David Laight , "open list:GPIO SUBSYSTEM" , Linux Kernel Mailing List , Bartosz Golaszewski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 10, 2020 at 2:35 PM Bartosz Golaszewski wrote: ... > struct exar_gpio_chip { > struct gpio_chip gpio_chip; > - struct mutex lock; > + struct regmap *regs; Leaving the same name is a call for potential troubles. > int index; > - void __iomem *regs; > char name[20]; > unsigned int first_pin; > }; ... > +static const struct regmap_config exar_regmap_config = { > + .name = "exar-gpio", > + .reg_bits = 8, > + .val_bits = 8, > +}; Looking at the crash, are you sure this is a comprehensive description? Maybe it requires something like stride or so? -- With Best Regards, Andy Shevchenko