Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5016388iog; Wed, 22 Jun 2022 10:10:58 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uzi95XYwexNmu9FFL++9y3zhCy9iPkmVT8Q0/TIcYqQosl8rrDP+evycyWnmQdo+pFlB7a X-Received: by 2002:a05:6402:24a4:b0:434:e43e:2462 with SMTP id q36-20020a05640224a400b00434e43e2462mr5268939eda.312.1655917858600; Wed, 22 Jun 2022 10:10:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655917858; cv=none; d=google.com; s=arc-20160816; b=sGGhyqCCvewHSXOxsDdUXU/9gd6D/3VFN123gMLiO5ILzG+h/I7d9CJsI347MxU3sd DF51W8uEcFJtTq8b8LFh6y97dPbIKP8/uwGw2bre5LWwweJjyTfatjCV/7faYesAcAw3 02vwNoXjnhEtpb7x5nM2fgCm9uWKipoLq7cjZ9ByeIxe6G6qMzsfyZhdqBkrtg2+7Ju1 Y2xcC+KG14jC+LudT24fkpcnKs7Qtg9SKKqFRmqs/KLTGUfK7A4tEAa98+wYbXuVRT0I aeKyxZ0ZZ0PeaHg83rbwUZGO72HIolCThqsg7J4ibE9HaLA8oX0165V3Y+qKrEJd6pzD 19rw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:organization:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=yfLVpV0ompar5f4KkB5p3i4xI7sdg1eNMbmOJTKrEyI=; b=0U5h1KkwSIVW0HQ09Og4H4WCbPuGrCHnbV7rt/jy5psw21MkHQG8IZkKNcfAOuG5vn sBVACteHoS8/HoFZd5gu/5LWxy59TMlk7x1eojXBEfC1ifFVwHtrgpSvJLmnloDjmAeQ 8mUWGN1KTHmt3Nnh48qWzHE6KGQV2w3e7td8Kl2sr6t9tmx5KzU2BHdcktCsvnaflHfq 4kVvKH01izlTvaqYkIsiEK4nnwGLyMGbzgG3ahCpI35Z1+4A3f0R23T4QO2ES2XvVHzI t0nAb4VMCWJAID1wJz2rz5zLcWPPOz7s9RlLr7N7usu8YWpaGO4ynKXxNl6ozAXfCObc pXNw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jPHKOqTR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h7-20020a170906530700b00718cb8cd8a3si2289318ejo.187.2022.06.22.10.10.30; Wed, 22 Jun 2022 10:10:58 -0700 (PDT) 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=@intel.com header.s=Intel header.b=jPHKOqTR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377268AbiFVRJ3 (ORCPT + 99 others); Wed, 22 Jun 2022 13:09:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355951AbiFVRJM (ORCPT ); Wed, 22 Jun 2022 13:09:12 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55BCD3EF30; Wed, 22 Jun 2022 10:07:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655917663; x=1687453663; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=2GUfLn3Tz3WxjmHe+ZnGNWrA4D2qWYVVfvVgDLrL0IQ=; b=jPHKOqTR+Jra6Fa58yNrFvY8KnEZMZKWwqof2v8I0tQZo6yq56YiuKzl jgGh+cNfUQ/DO39Xm8zzg11i1+mCZ/2f6yUHFbw8KfG80Kiy1y6DzURE9 m43AFqOBjTwbQVLwHLTi5Roya0OKlprKpRC/28SHfguvXERDN471uv31d QLOWr4TEE65ER7X8+I6N3RRTOb9LfFrcFfdtoNKZtAAxWuT6wpo4rfAE6 KRFqde0IbcN2pOy4DC4v7E861Z7bbGqG9mTifuUWyiv7+kklJWwtIFkvK A1qVYfI7CSuSa9r1kJuAXSqom6ueFBlSvhQA8V4zwhNyaZ/9E9mf4MX/G Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="278025906" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="278025906" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 10:07:05 -0700 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="585805521" Received: from smile.fi.intel.com ([10.237.72.54]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 10:07:01 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1o43of-000sUH-S5; Wed, 22 Jun 2022 20:06:57 +0300 Date: Wed, 22 Jun 2022 20:06:57 +0300 From: Andy Shevchenko To: Lino Sanfilippo Cc: gregkh@linuxfoundation.org, jirislaby@kernel.org, ilpo.jarvinen@linux.intel.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, vz@mleia.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, lukas@wunner.de, p.rosenberger@kunbus.com, Lino Sanfilippo Subject: Re: [PATCH 2/8] serial: core, 8250: set RS485 termination gpio in serial core Message-ID: References: <20220622154659.8710-1-LinoSanfilippo@gmx.de> <20220622154659.8710-3-LinoSanfilippo@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220622154659.8710-3-LinoSanfilippo@gmx.de> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_HI,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Wed, Jun 22, 2022 at 05:46:53PM +0200, Lino Sanfilippo wrote: > From: Lino Sanfilippo > > In serial8250_em485_config() the termination GPIO is set with the uart_port > spinlock held. This is an issue if setting the GPIO line can sleep (e.g. > since the concerning GPIO expander is connected via SPI or I2C). > > Fix this by setting the termination line outside of the uart_port spinlock > in the serial core. This doesn't describe that this patch is actually changing GPIO to support sleep mode. So, it doesn't fix anything. Please rephrase the commit message accordingly. > This also makes setting the termination GPIO generic for all uart drivers. UART -- With Best Regards, Andy Shevchenko