Received: by 2002:a05:6358:bb9e:b0:b9:5105:a5b4 with SMTP id df30csp5452632rwb; Wed, 7 Sep 2022 03:07:43 -0700 (PDT) X-Google-Smtp-Source: AA6agR6KgVkMSKvyekfhgIvH1cllfuzp90RGbuDqFGVKiQiKU5X+V2baGJDT+hOwrEGqWFfLBRKi X-Received: by 2002:a17:907:6091:b0:731:37fb:bd9 with SMTP id ht17-20020a170907609100b0073137fb0bd9mr1782768ejc.219.1662545262922; Wed, 07 Sep 2022 03:07:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662545262; cv=none; d=google.com; s=arc-20160816; b=JkyzmifwPTE/jBT3PKZccXrsghK8IfubctfMp9kK+xWXOIXtK6mtaygJljtuYORi6P iFc7v3s9vk6ypXx5GkjNnvW9Qye5TXhDyIlEW8W+y2H+/tY/6JQ2NAKNKAcWNk+DEKKA 664RW+My2ypqDdJ+hyj+Xxop8wINueyGJPFtqk7c07SzXlGrSPs9ahUCAp1zxDVMqO7x ALt4vmxhPw0ISyV07ThecBOjNCRKfh2HQ6nQzqo5bZdxSDSdsqevXgDK8q7UCyE/BBdj dRuV8wLYuFzy6PzEvUCugJdYPERti4G8Gu0eg7LZgCbkrYtGFx7GDNw2TYgceNEBr1v5 c7dQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=3mAhBi1rPTAS6j/dnkoKt6zuS6P3YeZwk0db28VPv2c=; b=ZweZiIJvO59JnlmgYj65eGWWZD08TE8bSbkQ3uqos1NAXpaVAbIca6tjO3B1oBKobU vaHw2O4CyP2myOHEWkVbbn9S3RwtIkDEwl/VBrzXfh+oNj8hzDFve2Azl49oVCERyIZX +enjtwOuMfOaZoB4EHKoE7rwOHbwY1SP67iAR6xFQ2Y28dmJIB2x/mCLq0dvmnEUGT1Y o084LiHbWOrZczEzEa20BkM6HHvVb9PRLCoS+NxGvZmnR59kPblHU/ZjOlXFrelox+xe Zm2Hc4qer4DpAU8OboQ8KB3cdxZ/lV7gFm+Wpf1J6bFuBT4iKnZ24z0eo5Bo75XCcWXv pTkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=ijUB9cxM; 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 cw6-20020a170906478600b0073dc89e51b3si13762478ejc.87.2022.09.07.03.07.17; Wed, 07 Sep 2022 03:07:42 -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=ijUB9cxM; 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 S230384AbiIGJVe (ORCPT + 99 others); Wed, 7 Sep 2022 05:21:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229631AbiIGJVY (ORCPT ); Wed, 7 Sep 2022 05:21:24 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 79DBA86FE2; Wed, 7 Sep 2022 02:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1662542482; x=1694078482; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=0aD11024owXiWys0CYVqLXLWsO/hlSbQMpdnFQamO0s=; b=ijUB9cxMUP47lrbQe7vzijd2jl4I2q08vHG4+VIm7VLMqxt5rgmEAeYz +dCQz/yz8bfVr+WDm3ixZP3wn6o+aDTqIFJQ/CDKC/qWMh3ucpceKZ973 Of7Dwy9jOdxj17CurQAQJ+di9zmPYQ8tHWhhcIUfkAEjx55pFoh4fqmLQ 8X4mzI6L2s1tyqCxugwYShJ2nXxJ7cjVXRyl+6WehcJdVMC2FAknSaFBA N4O9QPE/ttUUp50aBI8KN5DHMjhEsN1MuYannBMhHrI9/tZ87N0QFh3gw jItJ4XR85Js4l8RJc+VepuUjEDngDRBTQuWRZKDoY2uoXzXy6uTrRoG1T A==; X-IronPort-AV: E=McAfee;i="6500,9779,10462"; a="276564373" X-IronPort-AV: E=Sophos;i="5.93,296,1654585200"; d="scan'208";a="276564373" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 02:21:20 -0700 X-IronPort-AV: E=Sophos;i="5.93,296,1654585200"; d="scan'208";a="676096363" Received: from dmatouse-mobl.ger.corp.intel.com ([10.251.223.53]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Sep 2022 02:21:13 -0700 Date: Wed, 7 Sep 2022 12:21:06 +0300 (EEST) From: =?ISO-8859-15?Q?Ilpo_J=E4rvinen?= To: Sergiu Moga cc: lee@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, claudiu.beznea@microchip.com, richard.genoud@gmail.com, radu_nicolae.pirea@upb.ro, Greg Kroah-Hartman , broonie@kernel.org, mturquette@baylibre.com, sboyd@kernel.org, Jiri Slaby , admin@hifiphile.com, kavyasree.kotagiri@microchip.com, tudor.ambarus@microchip.com, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, LKML , linux-spi@vger.kernel.org, linux-serial , linux-clk@vger.kernel.org Subject: Re: [PATCH v2 08/13] tty: serial: atmel: Define GCLK as USART baudrate source clock In-Reply-To: <20220906135511.144725-9-sergiu.moga@microchip.com> Message-ID: <5d3e3a73-8b13-fb23-a32c-565046ec3c27@linux.intel.com> References: <20220906135511.144725-1-sergiu.moga@microchip.com> <20220906135511.144725-9-sergiu.moga@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, 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 Tue, 6 Sep 2022, Sergiu Moga wrote: > Define the bit that represents the choice of having GCLK as a baudrate > source clock inside the USCLKS bitmask of the Mode Register of > USART IP's. > > Signed-off-by: Sergiu Moga > --- > > > v1 -> v2: > - Nothing, this patch was not here before > > > > drivers/tty/serial/atmel_serial.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/drivers/tty/serial/atmel_serial.h b/drivers/tty/serial/atmel_serial.h > index 0d8a0f9cc5c3..70d0611e56fd 100644 > --- a/drivers/tty/serial/atmel_serial.h > +++ b/drivers/tty/serial/atmel_serial.h > @@ -49,6 +49,7 @@ > #define ATMEL_US_USCLKS GENMASK(5, 4) /* Clock Selection */ > #define ATMEL_US_USCLKS_MCK (0 << 4) > #define ATMEL_US_USCLKS_MCK_DIV8 (1 << 4) > +#define ATMEL_US_USCLKS_GCLK (2 << 4) This would be FIELD_PREP(ATMEL_US_USCLKS, 2) from linux/bitfield.h. They should all be converted to use FIELD_PREP(), IMHO (in a separate patch). > #define ATMEL_US_USCLKS_SCK (3 << 4) > #define ATMEL_US_CHRL GENMASK(7, 6) /* Character Length */ > #define ATMEL_US_CHRL_5 (0 << 6) > -- i.