Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp165095lqp; Tue, 11 Jun 2024 19:24:16 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVbwCZrujaOJbJJNHBdmPMM2uFlmoDHwmE8ANytU2Dh9z7Q/7SaAFqv0G5B83VYB/1xoxq9ZR9X2C8kDoGh/kjZC+MRMW+pebuchp92yA== X-Google-Smtp-Source: AGHT+IG3r/5zbCubSWnic3Fk4BC+DrsGfujDXsN4lJy82Ju6anEhCo/WJgdyMRo+kY4kbVoys130 X-Received: by 2002:a05:622a:287:b0:441:580c:8e93 with SMTP id d75a77b69052e-4415acaba7cmr3458211cf.67.1718159056393; Tue, 11 Jun 2024 19:24:16 -0700 (PDT) Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-44153be622asi22441341cf.356.2024.06.11.19.24.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 19:24:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-210821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@aspeedtech.com header.s=selector2 header.b=Lb7Qi2LV; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-210821-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-210821-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=aspeedtech.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 059E61C23168 for ; Wed, 12 Jun 2024 02:24:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3C5E68F72; Wed, 12 Jun 2024 02:24:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=aspeedtech.com header.i=@aspeedtech.com header.b="Lb7Qi2LV" Received: from APC01-TYZ-obe.outbound.protection.outlook.com (mail-tyzapc01on2098.outbound.protection.outlook.com [40.107.117.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7D621AD5D for ; Wed, 12 Jun 2024 02:24:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.117.98 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718159049; cv=fail; b=jD+FSUwqlePI4kz8Q6LAB30qHqcwgkryUAChcDI96RscVjU1DsiPHR4NAKejIa/r/M6AQrBpKbNcIlnspwA7gmZt/2E1OjM+W/LHC6kvc3BUqQDnVM9HYX/v4/rcxG6ruNbcJsBTgdnGFqzjk9hXOffIB461qpPxlYPhFV/NsJU= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718159049; c=relaxed/simple; bh=kSZpW1B8tsWsXdUkfA/zU7TYeIsAtmYUMEh/STEoCuY=; h=From:To:Subject:Date:Message-ID:References:In-Reply-To: Content-Type:MIME-Version; b=YiIMairPQQxNexhTaTVXgq2Szy3iwFxtIpwfnhu/Iv5mbyJ71PnBMsGdgMFRBorGcHWIs/NqXLlWfn2Gwqvds6i6EDKbsep/I6wg/3CSGqpnaZYzZjUi2RBpB7Z81dY30fea4hNKA7GNoaEjzD3ExWEBO0JBoaS22WtkMrkl0Ig= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com; spf=pass smtp.mailfrom=aspeedtech.com; dkim=pass (2048-bit key) header.d=aspeedtech.com header.i=@aspeedtech.com header.b=Lb7Qi2LV; arc=fail smtp.client-ip=40.107.117.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=aspeedtech.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=aspeedtech.com ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YQ2dqEXBAaQNQmTIy1TAVaw1r2ibo5Sm82GXkunKNk7fefKN1gguIfxa/4kHPpUT2jteHYf9BFNX4rGP+PTB6riUzWtCK9JOrgKrU93aA1sQFJ14UXKCN4+TWR7cESTIWusRidpfuhuO4ibTNb6B/4EykEJLA1N7yOkT2RA7Lodny2wt/BfEnkQWwrsEiEe4ugWdYuJi8vIsOyUSUADPOa8ZlazVROjn1W1uctfINg+U7Bpsg0FREli9GM+WxUyf10Zk1Snsf2lkLeZ+g3DW0fHEfykDWDObtQ+01ISeLdBa1n9rU8bNzQzkOj+WAFb0R/HfCoKWW5s4ERTO9GZYWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kSZpW1B8tsWsXdUkfA/zU7TYeIsAtmYUMEh/STEoCuY=; b=MyY6JQ44QDBoCQndfcUMqHX9u1pTKmCzbLtJhY4MqjII1Y2wcjt4u/CLsBnIP0MaPhgZ6pjcHnq+RfOn2M7qWFx8FZL0cSe5lfe8nJPdTFEFCgODQ4marUo+9fWG1GUqF/CvkZKnpTbo57qcLYUIrOCpQXkhwLvKyfPSaXO8elcTVphTvip/3G1xd0p8WXaTaMbGntHdYO2uO9CRBfHPoDIMzPIxCS/mtk+9gQrWXbZAZN8d/+ThaCEH+i1hD/VHYBpsuUbCVfZdQJVe9z9RP2hLHc6rsAqtPGgUUquOLIhA8fVWBrsDKYQzqKrQfoGd1IKW1gOpGN0ZU6C4UXH4mA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=aspeedtech.com; dmarc=pass action=none header.from=aspeedtech.com; dkim=pass header.d=aspeedtech.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aspeedtech.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kSZpW1B8tsWsXdUkfA/zU7TYeIsAtmYUMEh/STEoCuY=; b=Lb7Qi2LVfM6YhDdkck6myth3V7cu91Yo5BX/bgeQCtdM5Dql88h5MULJU+XnSpZ0XmMMXBjPUbvy+FsH37ARUcBmctYPSRbpLhuxjN10pFb1W4xtuXhWk3H6FF7OMRU4zmtgJloQYbM1YoeFBd/ONluXU/3P+gVAkG0dMw65ihjmbPdF82BXiN4TKbE8U3fgDSIxtoGnGSrL0YFTjs+Q68aOtkGX5/Gvlg1NCfaKNn1WCYxJ/Zf35mwNRiRH9plp9SbziLVqcmccs1jBL9NAzwnQfbau40H8iVUfHlFdYrKdP9N7byKyHlpNiC2wpr0B5PMliK8KUdJLHniFYQdjng== Received: from OSQPR06MB7252.apcprd06.prod.outlook.com (2603:1096:604:29c::6) by JH0PR06MB7180.apcprd06.prod.outlook.com (2603:1096:990:98::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.36; Wed, 12 Jun 2024 02:23:59 +0000 Received: from OSQPR06MB7252.apcprd06.prod.outlook.com ([fe80::814e:819a:7d52:7448]) by OSQPR06MB7252.apcprd06.prod.outlook.com ([fe80::814e:819a:7d52:7448%4]) with mapi id 15.20.7633.021; Wed, 12 Jun 2024 02:23:59 +0000 From: Billy Tsai To: Andrew Jeffery , "Winiarska, Iwona" , "linux-aspeed@lists.ozlabs.org" , "linux-arm-kernel@lists.infradead.org" , "openbmc@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] peci: aspeed: Clear clock_divider value before setting it Thread-Topic: [PATCH] peci: aspeed: Clear clock_divider value before setting it Thread-Index: AQHakM4L//12gtiKPUW945Iv0Rt4T7FtIAOAgADqhICAAKNdgIBVDrrp Date: Wed, 12 Jun 2024 02:23:59 +0000 Message-ID: References: <20240417134849.5793-1-iwona.winiarska@intel.com> <7b0ef5c90138e8c1d1829de249a480709170141b.camel@codeconstruct.com.au> <7520ac6ef7afae66f9b1636e5806ff2bfd93584d.camel@intel.com> <1583360debaee14a988e4019cf30250f6eb4d8da.camel@codeconstruct.com.au> In-Reply-To: <1583360debaee14a988e4019cf30250f6eb4d8da.camel@codeconstruct.com.au> Accept-Language: en-US, zh-TW Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=aspeedtech.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: OSQPR06MB7252:EE_|JH0PR06MB7180:EE_ x-ms-office365-filtering-correlation-id: d207d272-95e7-425d-4aab-08dc8a86b7a5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230032|376006|366008|1800799016|38070700010; x-microsoft-antispam-message-info: =?iso-8859-1?Q?eOEO6EpedtWbcZS5z/EJ2ObItR/JSoWi9xFC2mEjd/aYBOa00Xx4DGKEt8?= =?iso-8859-1?Q?/KLhHWTKX6wRiP0AIMHP3FK03IDUvJmKYtENaMCenqDeHLIjENSTID532Y?= =?iso-8859-1?Q?rnHHqZMmyrMtJzmf3UtMc4xCK5lIl4VqK478TFN7CCUkVG27y0F9t3F4I/?= =?iso-8859-1?Q?M77+cbs/uopMfaf2vntn04LO0aq/2pMJ+LENVOFpF8s4LySlXiFK2Vrwbq?= =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ZUs6wmlGenlhvdr8QuP754u2M?= =?iso-8859-1?Q?c3TRU67F21qAAEQgZN1Zaz/OAXZGoQo7PIO54w/2onI6MVEx95Xdr4fC1u?= =?iso-8859-1?Q?B05MB8Y7B7RGIjWnN7kWhvBAn0ayTHsL49ICODYwrsz42q9KpR2aySAgru?= =?iso-8859-1?Q?wY4lkLeJFVLJ4tmAIVPFXEp5Fq4ULJS5xPqByVR8fBnS287wii8Hj+a1Gb?= =?iso-8859-1?Q?jJRiMZaSRZHWG4TREeoRhIz39uJsfTeff285nysA0KstWMjGgPRoohCjb3?= =?iso-8859-1?Q?d5cPcX3V/Is0iNYT4Lk+Y5d3myVfEHNBkjhoNHAqh99GpO2vxR3JI=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:OSQPR06MB7252.apcprd06.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230032)(376006)(366008)(1800799016)(38070700010);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?Q?YgEil8CGREQR2dNh9pmwnNmastM3zWRjrln+UB+y0s9dV+E0B4dFDZ7vjP?= =?iso-8859-1?Q?PPCWVdnHzJ8oKTq77WCmBaigRke+exmjoqcX+vFjsEdWxQIog1Van/1p9r?= =?iso-8859-1?Q?CVFG03Hkovcg1Yfpk4sy5T37tDiBvoXpLHICpDjBLi3LmS/MkIvNR+Fmzp?= =?iso-8859-1?Q?15bTgtX4+XICBFj0ICawzyskdgeOwp7ksIUhFZKlYLeuN/19CUMkqFCsp7?= =?iso-8859-1?Q?NwI8yyS856a3jE/oDsBrZJ1PfZ81BZieBmDSZjKkasfWH2KYitqaHiGfms?= =?iso-8859-1?Q?4e2//h1k8Q0YeLonmP6pMlKZ7azD9NOlMRYojnlFSbqgjvwucUGtoQ6dq+?= =?iso-8859-1?Q?swlAu05limPeL3q+tQAuaMta369gCmeu0e1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-1?Q?AS/j4SyLu+RqtkLaDKvDjpB5KPvZOZQlNDLC12mBOKrxjvIH11GC5okUeJ?= =?iso-8859-1?Q?6L2Icbagg3BiihIUU94nvYa5gn839N/RaWC67HxMV54XJ/k1qc+/Qbt8bJ?= =?iso-8859-1?Q?7/Rsgm2B6ed+M/CuvCrWCX0mibKylNiIp8ZFQgujVDWHE1XPNZtDi2dY8V?= =?iso-8859-1?Q?L9PFCJTPQSESdRaERTFRtbll9UKWNyPuiKNEfkREadbn9teT7K3PomUaC5?= =?iso-8859-1?Q?r+vX/5RXmgSfdRFjqsup5IaMlrDflRyjDyQe1EwTOH4/a6aLgxJMxsukFJ?= =?iso-8859-1?Q?esRBALT3QwgjGTiUxo5n0iNtnPY8/lWFaMOm6R2gOkYvuXcvz25MjUZESo?= =?iso-8859-1?Q?5lf/ockg1XbDQ5CwTcxEBc7xFOAwJXTNsN?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-OriginatorOrg: aspeedtech.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: OSQPR06MB7252.apcprd06.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d207d272-95e7-425d-4aab-08dc8a86b7a5 X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jun 2024 02:23:59.0883 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43d4aa98-e35b-4575-8939-080e90d5a249 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: LzUqivfz0a3/a2bxN6iB0Di0QlKOEQJVpoi8D4VHgCUyOGQmm+xwo/TckriKsrtDSyn5k648319JVhAdqQzAOgsRGodr12nRL0LCydUHaDM= X-MS-Exchange-Transport-CrossTenantHeadersStamped: JH0PR06MB7180 > On Thu, 2024-04-18 at 13:41 +0000, Winiarska, Iwona wrote:=0A= > > On Thu, 2024-04-18 at 09:11 +0930, Andrew Jeffery wrote:=0A= > > > Hi Iwona,=0A= > > >=0A= > > > On Wed, 2024-04-17 at 15:48 +0200, Iwona Winiarska wrote:=0A= > > > > PECI clock divider is programmed on 10:8 bits of PECI Control regis= ter.=0A= > > > > Before setting a new value, clear bits read from hardware.=0A= > > > >=0A= > > > > Signed-off-by: Iwona Winiarska =0A= > > >=0A= > > > I think it would be best to add a Fixes: tag and Cc: stable in=0A= > > > accordance with the stable tree rules. Are you happy to do so?=0A= > >=0A= > > Hi!=0A= > >=0A= > > Technically, the initial value of this register should be 0, but I've a= dded the=0A= > > clear just to be on the safe side and to not have to rely on that.=0A= =0A= > Yeah, it could cause havoc with an unbind/bind sequence if people are=0A= > messing with the clocks in between.=0A= =0A= > > I don't think we're ever programming invalid values in the real-world s= cenarios,=0A= > > and because of that - I don't think this is stable material.=0A= =0A= > Right, I don't expect people are doing the above in environments where=0A= > stability is a concern.=0A= =0A= Reviewed-by: Billy Tsai =0A= =0A= Billy=