Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp4578534rwb; Sun, 4 Dec 2022 04:45:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf6VhvYoDI8vK+qYfPw5VM/IVV1oPLx14o08g+3QBg/eJ5xM010BMk1z9NxWx+44/iKh8zCr X-Received: by 2002:a05:6402:1802:b0:461:72cb:e5d with SMTP id g2-20020a056402180200b0046172cb0e5dmr61929703edy.410.1670157946237; Sun, 04 Dec 2022 04:45:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670157946; cv=none; d=google.com; s=arc-20160816; b=Ixq5ymnHyZnA6em4fQ/5yiqblD+q+bVgAErZBgIhehLnh0ybQXPKHphteXxl0dwZn2 UQKf1y7bVC4Rq2uJCIGbB25M0dCqyEiXye84npggiQsGxE33fS1uCKTxC1WWh/iTOngd UtEmTK9ytMnwHY5oWOq54rkk/LntMw1xkVWkM+MmLLVciVMphtE8disDcUTKmi0IZu5x u4oLm78RhH1ZKj2ty57cvuHMH/i0Eat6gTSN7RYHEtbUgUEA5/PjUISXcWlWvnPN/WVL ReVcgFGe9ZxlVWWi2PM5tq8Qk1hToN7a/8jXdGcN2IpBG8cPytyXh/xbPRldKCuaYoOe OBug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:subject:cc:to:from:date:references:in-reply-to :message-id:mime-version:user-agent:feedback-id:dkim-signature :dkim-signature; bh=CoGojBldvp8vts1WXDufl3QTeeG6RrXZWoBhB7qP5HI=; b=NDzcZG2+FvQWwplO2AWmRazhQlHXe89kTLtn6GQDzGoDA3lnAplHjQsoO5MWszq6Ze Mpgdth//b/fOacNVnkqT7YFFqANtHmHSJYifUg9E9IOw7IFiMYuopzKz2/fI0gJFHKZ2 3r3dt/+InMyvCOMKmkSUmzDvbZW3wfPaveVik7Yz6rlNWnFNUrUPffxq9p1SBBGCHdIa BnrbWd/ysn3CwN69HknZ2SUur4ZCL+dyD7B9OaqZ094k9UeB/rzpQipjgN2ShkLR4XzX xKACE3CWPTTO/IMsKrWGRemqmdQkxLWn0aVI/OflUaXjLRghiTK2dvsGqhR+u44BAX9K 6jbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=Bt3t+pCv; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=DxeCgNBV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id tz14-20020a170907c78e00b007b2bddc9b87si8332192ejc.306.2022.12.04.04.45.22; Sun, 04 Dec 2022 04:45:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@arndb.de header.s=fm1 header.b=Bt3t+pCv; dkim=pass header.i=@messagingengine.com header.s=fm1 header.b=DxeCgNBV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230062AbiLDMKp (ORCPT + 83 others); Sun, 4 Dec 2022 07:10:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbiLDMKn (ORCPT ); Sun, 4 Dec 2022 07:10:43 -0500 Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 80EAF17AB8; Sun, 4 Dec 2022 04:10:42 -0800 (PST) Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 284E55C00FF; Sun, 4 Dec 2022 07:10:40 -0500 (EST) Received: from imap51 ([10.202.2.101]) by compute6.internal (MEProxy); Sun, 04 Dec 2022 07:10:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arndb.de; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1670155840; x=1670242240; bh=CoGojBldvp 8vts1WXDufl3QTeeG6RrXZWoBhB7qP5HI=; b=Bt3t+pCvXTostL74alusXgNN2I oLhoOcA34WlUK1HpM8zYrIq09NT6vJeDNBj/QdZnjHPCSY+ZUy+12uImKcNpjSPM o0Qr+CIcrehvro9ebDcKpmBO8KNVO0BSLyVsZqv9jkmom0XPxGpvLeiycBhyso/8 pWUyCCDG5sY1PPjQhiPvm7NU5068KCV9X/PWB2P1GHq+0C96bygXAKrn+V5Ukhl7 s7lNWObcsg2gwh4/61eV3/1UOs8rIoQb6FB3dYEy/Ck7h0skHoTgrMXUYD92caiH LVymfXQoewwpqSKzAiqVC6quJzrOTZYuY02ME7g19RNKqeqgpVhO3za9ITpg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1670155840; x=1670242240; bh=CoGojBldvp8vts1WXDufl3QTeeG6 RrXZWoBhB7qP5HI=; b=DxeCgNBVAAMM2gNNTDGahzTQIA8E/3lkh9laTq8iI5JI oocBov/dRgohjG7gGHMhodEsrIvcUGfX70TlrC5hErvHwlfTVVTfGqKcTDhS329l rD+FaM0sMNpM3jsx9euuXm8KFkx502Dwdn3v5snXh5/yrmCGjVUmHg4VFsC3IQOm rLgVcc1ZcgdX7GJ2QRCaCaXSBBv1eAIhu8iM2xjO6xiG+7n3ECRMdG0oJq9aKmiI 6SG12snIId67D0+6rJud3wzLSmPtuY+EFsHc/yywdYZFUwR088jM6Mk0ITGUNKvn qf3WI/ip6fDNv+zXdoNPQCXdP6unHlzazkw2UySLnA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedruddvgdefkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefofgggkfgjfhffhffvvefutgesthdtredtreertdenucfhrhhomhepfdetrhhn ugcuuegvrhhgmhgrnhhnfdcuoegrrhhnugesrghrnhgusgdruggvqeenucggtffrrghtth gvrhhnpeffheeugeetiefhgeethfejgfdtuefggeejleehjeeutefhfeeggefhkedtkeet ffenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegrrh hnugesrghrnhgusgdruggv X-ME-Proxy: Feedback-ID: i56a14606:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 623A3B60086; Sun, 4 Dec 2022 07:10:39 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.7.0-alpha0-1115-g8b801eadce-fm-20221102.001-g8b801ead Mime-Version: 1.0 Message-Id: <81a7715b-559f-4c5c-bdb6-1aa00d409155@app.fastmail.com> In-Reply-To: References: Date: Sun, 04 Dec 2022 13:10:19 +0100 From: "Arnd Bergmann" To: "Dmitry Torokhov" , soc@kernel.org Cc: "Li Yang" , "Qiang Zhao" , "Greg Kroah-Hartman" , "Linus Walleij" , "Andy Shevchenko" , linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org Subject: Re: [RESEND PATCH] soc: fsl: qe: request pins non-exclusively Content-Type: text/plain X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 4, 2022, at 05:50, Dmitry Torokhov wrote: > > SoC team, the problematic patch has been in next for a while and it > would be great to get the fix in to make sure the driver is not broken > in 6.2. Thanks! I have no problem taking thsi patch, but I get a merge conflict that I'm not sure how to resolve: @@@ -186,23 -182,27 +180,43 @@@ struct qe_pin *qe_pin_request(struct de if (WARN_ON(!gc)) { err = -ENODEV; goto err0; ++<<<<<<< HEAD + } + qe_pin->gpiod = gpiod; + qe_pin->controller = gpiochip_get_data(gc); + /* + * FIXME: this gets the local offset on the gpio_chip so that the driver + * can manipulate pin control settings through its custom API. The real + * solution is to create a real pin control driver for this. + */ + qe_pin->num = gpio_chip_hwgpio(gpiod); + + if (!of_device_is_compatible(gc->of_node, "fsl,mpc8323-qe-pario-bank")) { + pr_debug("%s: tried to get a non-qe pin\n", __func__); + gpiod_put(gpiod); ++======= + } else if (!fwnode_device_is_compatible(gc->fwnode, + "fsl,mpc8323-qe-pario-bank")) { + dev_dbg(dev, "%s: tried to get a non-qe pin\n", __func__); ++>>>>>>> soc: fsl: qe: request pins non-exclusively err = -EINVAL; - goto err0; + } else { + qe_pin->controller = gpiochip_get_data(gc); + /* + * FIXME: this gets the local offset on the gpio_chip so that + * the driver can manipulate pin control settings through its + * custom API. The real solution is to create a real pin control + * driver for this. + */ + qe_pin->num = desc_to_gpio(gpiod) - gc->base; } Could you rebase the patch on top of the soc/driver branch in the soc tree and send the updated version? Arnd