Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1260291pxu; Mon, 23 Nov 2020 16:16:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxUM43GlgkXwBe9QlfPU6xY56sKhHKpIW6dq4z+nx8y39rRrqmJE6owrOJ3sl8+AMeJJmjl X-Received: by 2002:a50:e0c9:: with SMTP id j9mr1706622edl.380.1606177018927; Mon, 23 Nov 2020 16:16:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606177018; cv=none; d=google.com; s=arc-20160816; b=xVYWHEko9uqEhWbHf34v0bvkmorFo8+xtjsHxtoFd2BmgpofiBgndOtF5F8SZ9HJQ3 Vh7y3pjwYPu683eNO5cLWxaiiPqgZlr3zh8sGM+wHH6YEQ7FwbHPNg9Z9jI3cssmtIs8 9B5k+497HvUt246qHt7TV/TO8e3OCVdkZQ2emVQ0c11DZYceQWhP3hKOkatyrjBaD4/n noypZ4NyDbmv2VKI7FyaCfsbAiTt6HpUfh1M5T6opI7Pm7m8afhlR9oaaPzZn2YK1MI1 ia3VSELe+GonfFqazERMRCTMRlVft1t+IIwND1bZPPU/v8m+iMmooqKjzmn4Z3zyrkU6 rGYw== 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=B86W+jdVxuWIBPQvh9VgYQZlnqJjyNB5p5InAyRoB6I=; b=ESpjupJJbkLVuIRdmLC11u1iaF7GpmWQp8LPqAzB4NClvEEJTNEYlRZkavOFCfQb/m 9CXllAFHUE6LhPUU77QLtdI8EWBt4rzcY5ABnv8ZCINPac0o7UUFSgfO5lgDlQrpXzK2 XoeB+zRot8fh3y9hrw0S4MSsrxDhVQD8gYpylelqezUX9cw1/Wgnjl/K98fPU3QG1s2b 0l/UEWeHKw59JcpDrrGc8HH26wSU6fpTiFzbtc6qHtfZ820uEUCI0sM9f/oSCEqUexDz SJEq0CSDa99T4+jockVej4h3IZbFr8B0VDse3TQrsn92XnwhV/EAbxdo6Spcso8ED8Uq FoCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Ql+B5HYP; 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 e16si7612259eds.500.2020.11.23.16.16.33; Mon, 23 Nov 2020 16:16:58 -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=@bgdev-pl.20150623.gappssmtp.com header.s=20150623 header.b=Ql+B5HYP; 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 S1730652AbgKWNde (ORCPT + 99 others); Mon, 23 Nov 2020 08:33:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37310 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730603AbgKWNdP (ORCPT ); Mon, 23 Nov 2020 08:33:15 -0500 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F692C061A4D for ; Mon, 23 Nov 2020 05:33:14 -0800 (PST) Received: by mail-il1-x142.google.com with SMTP id z12so3118964ilu.8 for ; Mon, 23 Nov 2020 05:33:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=B86W+jdVxuWIBPQvh9VgYQZlnqJjyNB5p5InAyRoB6I=; b=Ql+B5HYPmAmLy91ozR3CtGnnrhQQcGm7J219+3qkj1QbqFA5NSFZ+53URtCaAZT5Wz mHi4LpbDZVPZNkfNnvgXiwgCbF68xX0VM75It6kkBHOvkUxvB+0tXqDqZ8+C4hSJ9STm EW3mVDzssW88YlKed6bULwvfZZy929cSDs0GC4vJAOmCSQx9ao9emyU1yiUYnCk5I6mq Kfu9ZePha0xTRdNKbDey5RbU32dM/gdBioX7rzdMEbTxS5BfHS2IqhNzx9CeDpRB+OsQ 8GapysEAT6UI//oDNv3Q4fGAqAyIt428bOzgatRAjZtuHPjST5lp2ViK+vEG4Rayo/KV 68Ew== 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=B86W+jdVxuWIBPQvh9VgYQZlnqJjyNB5p5InAyRoB6I=; b=a+uHQc973F1v2ceapoWlhO2JV7y9+5OPNHFCohczdIVsatRev2csE0WEf1Y6JLY2hn guzCZ+5DVKjiIgEyaz7t35MiytqTON8GvPK3kqo3RJY4rgZkou7g0i7id2/qmL17tAsp 4UWrf1wpwKNKT4DMmwswqex8q1PPRYZ4ylkc6Ekb8VEvjgbVQ5aCC9wzM14wKU97da1L wMSbZViqrtRkJCUWGf+1di/+RIAMlm91ALpWIPtwu+8IKRY7Yg0jtaohdV50ldz5Tt6m Xx21aXisjaz5MuAuuTDweI533qPx5x1Mt792dgT6xumH15Vo8flakKvKqw8vZNq6Mrpd DwVg== X-Gm-Message-State: AOAM532W+OFvMjmW958Ry4vcOEKJUPurqwJARVtUu3abhXppa9KP+apZ KlV+2lKN5Lq0iuebN1CkKncC9OPhQmpOIsm5J24OVw== X-Received: by 2002:a92:dc07:: with SMTP id t7mr34265185iln.189.1606138393796; Mon, 23 Nov 2020 05:33:13 -0800 (PST) MIME-Version: 1.0 References: <20201116104242.19907-1-brgl@bgdev.pl> <86bf5fda-eeb5-5cb2-901f-a887af7584f6@siemens.com> In-Reply-To: From: Bartosz Golaszewski Date: Mon, 23 Nov 2020 14:33:03 +0100 Message-ID: Subject: Re: [PATCH v5 0/7] gpio: exar: refactor the driver To: Jan Kiszka Cc: Linus Walleij , Andy Shevchenko , 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 Mon, Nov 23, 2020 at 2:00 PM Jan Kiszka wrote: > > On 23.11.20 13:12, Bartosz Golaszewski wrote: > > Thanks!On Mon, Nov 23, 2020 at 1:03 PM Jan Kiszka > > wrote: > >> > >> On 23.11.20 12:38, Bartosz Golaszewski wrote: > >>> On Mon, Nov 16, 2020 at 11:42 AM Bartosz Golaszewski wrote: > >>>> > >>>> From: Bartosz Golaszewski > >>>> > >>>> I just wanted to convert the driver to using simpler IDA API but ended up > >>>> quickly converting it to using regmap. Unfortunately I don't have the HW > >>>> to test it so marking the patches that introduce functional change as RFT > >>>> and Cc'ing the original author. > >>>> > >>> > >>> Hi Jan! > >>> > >>> Could you give this last version a final spin before I merge it? > >>> > >> > >> [ 14.250117] exar_serial 0000:02:00.0: enabling device (0000 -> 0002) > >> [ 14.336622] 0000:02:00.0: ttyS2 at MMIO 0x90000000 (irq = 44, base_baud = 7812500) is a XR17V35X > >> [ 14.391588] 0000:02:00.0: ttyS3 at MMIO 0x90000400 (irq = 44, base_baud = 7812500) is a XR17V35X > >> [ 19.250510] gpio_exar: probe of gpio_exar.1.auto failed with error -22 > >> > >> That's "new"... > >> > > > > And if you change reg_bits from 11 to 16? > > > > 16 works. Didn't we have that already? > > Jan Yes we have, Andy suggested 11 is fine because it fits the highest address we need to access but it seems regmap doesn't like this value. Ok so I'll change it when applying, is that fine with you? Bart