Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp746649imm; Fri, 13 Jul 2018 05:47:42 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdYkxZKOC5YQi4vb+TUX3mNjfDyd5/1i49F7KkUu/kP5ELUN1/MTC9WR/LdPWf36QvQ51+E X-Received: by 2002:a62:4ece:: with SMTP id c197-v6mr7046652pfb.240.1531486062883; Fri, 13 Jul 2018 05:47:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531486062; cv=none; d=google.com; s=arc-20160816; b=RFbbVPHonmy0BgjQjc5KFtDkSyrYFmSBZan9IylKyN5/qEfhlTmahtuAwe1v+feOf6 DtxKZSp9zf6snqP66gKoaZDSSxDyZkY2uZY3SSHU8xHqmKP/7aeEzPNusEszonCGK0Ez MAezsxdI+Ui39l6/0NQWfhS+gq/2dMTmvodAYWSZa+suQ9Dj7b0YBsmthFZrV5/Syep8 zf7ztJyuIvikUWWOAJIBpeRxzAjSxq1gi6U/IqxF/DT86EJKw0fXTSfcD7NErBz9mKsR NnM9udisB3Yg1MKDyf5KljgZW+LIqr/l+pOhUU7ToDrUlGUCjQWagLBdmoljYwYxPwCt 5u+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=16ZLP/nQ9+8Ang6XauIXx6afu0FgmV8FzxbCRlGj85Q=; b=W3rJSb6ZUb0q+p/dG17/ioqNaaKVCZvzXnWCnkwFF/pFlgCwEgS6QLXvgwVotJOp8A WoxH2OqPbwbbtN/0VeTCgICtdsKwc1F4h8icTeTn1Io0jYbnsWDwXmPAc/lRYOQ4zL3p rW5sAGfblfGQJh+erWgyZQfZBLXDn4SMO2LR5ANih8l+hZMNbyp8HYwd2mb4+8kMBcIz iAokGiCJhQqtdukji4Q5VxF5dqDVWrmv3c/MCQkW49rHJAf9tybJiMcpSavBPNrNBQqv 6z0L/9DxeVTxF9HFbE7EfSdYHN68jLiHg2rRIyRwN4J89/QyqGRn+1UAtG7AQ4jqiscC HI8A== 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 q23-v6si23379559pgl.275.2018.07.13.05.47.27; Fri, 13 Jul 2018 05:47:42 -0700 (PDT) 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 S1729723AbeGMNBP (ORCPT + 99 others); Fri, 13 Jul 2018 09:01:15 -0400 Received: from muru.com ([72.249.23.125]:51316 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727999AbeGMNBP (ORCPT ); Fri, 13 Jul 2018 09:01:15 -0400 Received: from atomide.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id 6D3A58081; Fri, 13 Jul 2018 12:49:50 +0000 (UTC) Date: Fri, 13 Jul 2018 05:46:41 -0700 From: Tony Lindgren To: Linus Walleij Cc: Sean Wang , "moderated list:ARM/Mediatek SoC support" , Linux ARM , "open list:GPIO SUBSYSTEM" , "linux-kernel@vger.kernel.org" , Kevin Hilman , Jacopo Mondi , Paul Cercueil Subject: Re: [PATCH] pinctrl: mt7622: fix probe fail by misuse the selector Message-ID: <20180713124641.GR99251@atomide.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.0 (2018-05-17) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Linus Walleij [180713 08:14]: > On Thu, Jul 12, 2018 at 7:50 AM wrote: > > > From: Sean Wang > > > > After the commit acf137951367 ("pinctrl: core: Return selector to the > > pinctrl driver") and the commit 47f1242d19c3 ("pinctrl: pinmux: Return > > selector to the pinctrl driver"), it's necessary to add the fixes > > needed for the pin controller drivers to use the appropriate returned > > selector for a negative error number returned in case of the fail at > > these functions. Otherwise, the driver would have a failed probe and > > that causes boot message cannot correctly output and devices fail > > to acquire their own pins. > > > > Cc: Kevin Hilman > > Fixes: acf137951367 ("pinctrl: core: Return selector to the pinctrl driver") > > Fixes: 47f1242d19c3 ("pinctrl: pinmux: Return selector to the pinctrl driver") > > Signed-off-by: Sean Wang > > Applied on top of Tony's patches on the fixes branch. > > Now there are fixes piling on top of fixes and I am starting to feel > insecure of pushing this to v4.18 and I feel like letting these > fixes go to v4.19 (it can be picked to stable from there). Yes might be worth waiting as we're getting close to the merge window. > Tony: do you think there could be more fallout like this? Based on grep -A5 pinctrl_generic_add we have also: drivers/pinctrl/pinctrl-ingenic.c Looks like it should check for if (err < 0). Adding Paul Cercueil to Cc as well, Paul can you please check and patch? Then 12f953b382bf ("pinctrl: rza1: Fix selector use for groups and functions") seems to have fixed a similar issue for drivers/pinctrl/pinctrl-rza1.c Regards, Tony