Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3043008pxj; Mon, 7 Jun 2021 00:12:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxwFNxKf46v66FJ89Muoy2qgACfX2Z7jEX8BEb4Eo5Rz1wni9DzlLCWgD7/4yXyf5kTYYat X-Received: by 2002:a17:906:2b04:: with SMTP id a4mr3236855ejg.6.1623049951895; Mon, 07 Jun 2021 00:12:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623049951; cv=none; d=google.com; s=arc-20160816; b=HiGfa6f0sVUI4TUoLxvwwAQ933VjGZYg3LEmAqOgTXkqGzzvS49G+wUpLXwbWOzXip Ssc8whXCKUyXnXZB38Oy72XkLV7bbLnToMO7x1wlItAw+Xef+0wR0RxM2dsIVy95hiqL bQgbcs8mIG0t/AqcGnHA8sCutgnisoFzzlJLGTb4EUP43djPu6DCSny9nz8OzEVLf8aj 6h3sLH1VYNvMq0AU1yswK1qiAGzqU6tx8y2ngAb4L9o0mjIsS03lpQwAzexekIMhDEFv NAawa/5O4xJFxEj9NZnb1kp6vyt5zVTZnN1LSOsf7PRS98CKBuweyMppyJTURnZ4fdl2 yJ8A== 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=2sChFupNDISguJdQ93OuywrJgFnASQqUTk66QD3fheU=; b=CRqmqrrzDnMxrggm9ywECOTOK5XEcVoaroJOL4i1E59JfNQsP8X0FDm2+05JzwYnWP 4eLsmCOCVCYAQrDP3QU9hnmZBreWyxzrZa8G8FZEU0PHWJ/wJYg2lw4bBASWrw1f7w2N SmFBk/hVKp8APuna/gbwVDGI72tgrP0ompr0IleyLDY5O9/EswGSYSwPqTIWpLVFYGOh K7rtURF3RIwDVA0r7McXHatG1leP33zKIhXgAnrJYrsNA1awjxTUulb7hBlkpBawMLbQ o2K6YQGpL4XYdJfA+joYTg2VY3W/kXZ+mjREY0AlgkzwDnluusCpCR/xoB03oBT1+Xn0 wBEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jEdpGpSx; 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=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt8si11773158ejb.153.2021.06.07.00.12.08; Mon, 07 Jun 2021 00:12:31 -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=@linaro.org header.s=google header.b=jEdpGpSx; 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=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230177AbhFGHLu (ORCPT + 99 others); Mon, 7 Jun 2021 03:11:50 -0400 Received: from mail-lf1-f42.google.com ([209.85.167.42]:36809 "EHLO mail-lf1-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229436AbhFGHLu (ORCPT ); Mon, 7 Jun 2021 03:11:50 -0400 Received: by mail-lf1-f42.google.com with SMTP id v22so23211018lfa.3 for ; Mon, 07 Jun 2021 00:09:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2sChFupNDISguJdQ93OuywrJgFnASQqUTk66QD3fheU=; b=jEdpGpSxxxc/JBejLPt2hZOkIv+v1lW0s2dtES7baLoyk8uE+J2fBiI78gXF1g2VV8 sWn9RQE+J6fcHzxhHQiiGKf4pw9GkqkwLHFAbpXNUQSjEpRVq/KgDCHwaxhyQm1AbUw8 7ZHPZf3VsTW/zc/7ZJU3FIoChYlNF0rAH/UW3hivtdq0i1+jth0eYLf+LnBczxwBtSQn VLK5LwPCSuEV7JU9bAF1lqn5Ft29DTFDkowoh1YIvR/+S9J1Q7++w3aFK+NOTs+isWJV 9L5qbqSlsrqch+MhXomb/3BJI3vONZtF+dkksWjxjrI8jhSRcKvpbJclAZYPbdBBmKeX VcMg== 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=2sChFupNDISguJdQ93OuywrJgFnASQqUTk66QD3fheU=; b=tAFWhtJcAMvEVV3A3CRjuDza7j+ksEosdmpepBWS3A4lt8Qk8k2BoQJlxDzAbv+lm1 QzBXSCeEyE2cFEPs1n3bL1UZhWZbHMko45F952s9O/ocrmWYa2GYclTMEbL7si3fbrv4 z27XOmkPewRll06iAG50mttm+iI8ZnVI55AeZn9Dq78QrOgU3iNtlEjLq0j9HJ+Xks1f YAApTtz6F3eSOJhbSKquzdbeirNION8VmAXNZUXGNlX3oL8T4ZI+Pst3l76hHAzxKBkC YUaIebh+WL29Fh2gLKOuxnDeVisi6yn6O4/wnPOn0dpxPuaCA7XeeixbDo1TVhQnWnk+ 49dg== X-Gm-Message-State: AOAM533EJ1YUc21l9/Mn5SvOQXUgEEaHLHAJub2QxdpUg8Nd1EomjC6p x1L9H2CplYh2rqUmTR0VM0x/95LaIQa5LosNE1rhtA== X-Received: by 2002:a05:6512:2105:: with SMTP id q5mr10699515lfr.649.1623049727938; Mon, 07 Jun 2021 00:08:47 -0700 (PDT) MIME-Version: 1.0 References: <20210604055337.20407-1-sergio.paracuellos@gmail.com> In-Reply-To: <20210604055337.20407-1-sergio.paracuellos@gmail.com> From: Linus Walleij Date: Mon, 7 Jun 2021 09:08:37 +0200 Message-ID: Subject: Re: [PATCH] pinctrl: ralink: pinctrl-rt2880: avoid to error in calls is pin is already enabled To: Sergio Paracuellos Cc: "open list:GPIO SUBSYSTEM" , linux-kernel Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 4, 2021 at 7:53 AM Sergio Paracuellos wrote: > In 'rt2880_pmx_group_enable' driver is printing an error and returning > -EBUSY if a pin has been already enabled. This becomes in anoying messages > in the caller when this happens like the following: > > rt2880-pinmux pinctrl: pcie is already enabled > mt7621-pci 1e140000.pcie: Error applying setting, reverse things back > > To avoid this just print the already enabled message in the pinctrl > driver and return 0 instead to don't confuse the user with a real > bad problem. > > Signed-off-by: Sergio Paracuellos Patch applied for fixes. Yours, Linus Walleij