Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9103634imu; Sat, 29 Dec 2018 10:20:27 -0800 (PST) X-Google-Smtp-Source: ALg8bN5n3iAVdltDBBVE9QwgkSq66nn4WGvdJ59+d4fQEI7dccvUmKkJvD64JCxppTxyh5uYgeuL X-Received: by 2002:a63:c42:: with SMTP id 2mr2427231pgm.372.1546107627275; Sat, 29 Dec 2018 10:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546107627; cv=none; d=google.com; s=arc-20160816; b=Q+KDjdpp24GEZfB1uHBiQFiVU5MeACJG6yUSarDP9czXUBV1BLf7KhiW07HUlRmPXO TORVBVkeH+PS34GrQwISTVnlv4cx5OOrjVgBNSA36YJaSjp923YWz4sn32Bi+FbZSkfS t9s4UzSGCeMeNKU4rBNlpOolr7UXx22Lf0BF1FIdrtMoAkOYGl5fid2yI04JTblPOMiY 3o9wP7D6sqruZKBMz+RvIjEVhzAOTkUm2Pxf8qiTvX5LjeobLWOYZE6LE4TteqM3zi46 +R0mDTxFOYTcIzZxkSEJuYMdf3oOhgJpilB/khvW+VolP4AT5UWgF9L6VAnXaLm5PiTO M1ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=SsdMP4tMaKgMronza7Qf/UgE2j2tDASazSY4oBtkHi4=; b=zq8ERpPaCFP9mcKupqkUlHqlC6ENOQrNoJkW4TFpYWKAKAYyQcy7r7h9N4Q4wQf2cl zAqiiBvJ23/6ZGZsbPYjO+2T09/Efx8vu77KlPCHsuifv/1YVmGPlp3A2TnkRNA8UVhD lOgc+Fzf6IC3GcrTG5KiiJtsjESy4VN/0rUmQsEt6MVy/2vLRLfx8AO+RDpT6V2rxeJq weddDp9vIpkiOzb6ntUJiuBKJqKqvEuOGPQljhi3gLKszEDhacBNKLGTSwLw/bRHgaB+ CtUVbpBgXrhX8RKAfi7AuAAU7Z7d/MvfgI1LBIw8+t/rvbwyqTv4DmUd73kQJtIVolYy 1miA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bg7si19448521plb.149.2018.12.29.10.20.00; Sat, 29 Dec 2018 10:20:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727401AbeL2LNq (ORCPT + 99 others); Sat, 29 Dec 2018 06:13:46 -0500 Received: from mail-vs1-f65.google.com ([209.85.217.65]:44097 "EHLO mail-vs1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726116AbeL2LNq (ORCPT ); Sat, 29 Dec 2018 06:13:46 -0500 Received: by mail-vs1-f65.google.com with SMTP id z23so11055435vsj.11 for ; Sat, 29 Dec 2018 03:13:45 -0800 (PST) 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=SsdMP4tMaKgMronza7Qf/UgE2j2tDASazSY4oBtkHi4=; b=lakcea09az1fkyfgLqXwHgsMtY0H/K4Yr0tqFyK4Q0K1sGDBlndbdVLId5OHQhjMFi 88HnL8itiLN6++RqOgdDgfb4jLJW5ta8obsAC6JnGJ+axLNvY491RfCOO05b6ilaI5Ra Rs2jOFyQ3rE0rj1cSZxgL7mzr1PSxxXeXsDfthvGq7H6yDxEebmYlmEzFbh83zG3mmIy Pismy9Zy5gDcnfR2MUQIu1+8cK35mRas5c5i48MWeOffEm4NwX1ldh/7A1Ko93xTQ+1s UKam0rZ49/LMBIEFXvxQQ8WR9gcDpaSGwujX3JmskHRP1UCvbjnWY2Btv1+He3AZ5D1z UVHg== X-Gm-Message-State: AA+aEWai5vxPyP39zOG6Tj+923eKDIDjSArGJvlBdm32a31hVDpfO1lo zaIfWs8T0kTTYuVA2Q8C6dioQ/9wyr8eLAHGl00= X-Received: by 2002:a67:d119:: with SMTP id u25mr11764990vsi.63.1546082024833; Sat, 29 Dec 2018 03:13:44 -0800 (PST) MIME-Version: 1.0 References: <20181227084443.GA23991@localhost.localdomain> In-Reply-To: <20181227084443.GA23991@localhost.localdomain> From: Geert Uytterhoeven Date: Sat, 29 Dec 2018 12:13:32 +0100 Message-ID: Subject: Re: [PATCH] regmap: regmap-irq: silently ignore unsupported type settings To: Matti Vaittinen Cc: mazziesaccount@gmail.com, Mark Brown , Greg KH , "Rafael J. Wysocki" , Linux Kernel Mailing List , Support Opensource Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matti, On Thu, Dec 27, 2018 at 9:44 AM Matti Vaittinen wrote: > Do not return error if irq-type setting is requested for > controlloer which does not support this. This is how > regmap-irq has previously handled the undupported type > settings and existing drivers seem to be upset if failure > is now reported. > > Fixes: 1c2928e3e321 ("regmap: regmap-irq/gpio-max77620: add level-irq support") > Signed-off-by: Matti Vaittinen Reported-by: Geert Uytterhoeven > --- > > Geert reported that 1c2928e3e321 breaks da9063-rtc on the Renesas > Koelsch board: > > https://lore.kernel.org/lkml/20181227075648.GB2461@localhost.localdomain/T/#m194616cc88d7b4c2a78f7ce07907608fdb64a092 > > Geert, do you know if anyone vould to test this? Thanks, that seems to fix the issue with da9063-rtc. I don't know how to trigger an actual interrupt, though. > --- a/drivers/base/regmap/regmap-irq.c > +++ b/drivers/base/regmap/regmap-irq.c > @@ -258,7 +258,7 @@ static int regmap_irq_set_type(struct irq_data *data, unsigned int type) > const struct regmap_irq_type *t = &irq_data->type; > > if ((t->types_supported & type) != type) > - return -ENOTSUPP; > + return 0; > > reg = t->type_reg_offset / map->reg_stride; > > -- > 2.14.3 Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds