Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1921739rwo; Thu, 3 Aug 2023 01:44:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlEMWDIQiiXqIv8qGfNFW3ofGTCNx/XFfryUccjnhNOvNL8oNI39q9ysEDt9j1SfwgwqbceT X-Received: by 2002:a17:907:b0c:b0:997:d627:263a with SMTP id h12-20020a1709070b0c00b00997d627263amr6669501ejl.67.1691052284875; Thu, 03 Aug 2023 01:44:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691052284; cv=none; d=google.com; s=arc-20160816; b=GB0/yULr3v5gTsaVIvPROeMnHFetpfck4eUwj8fzMp56pqYcHqDai6vfq9IEYITWDT 9Iu/kJ/27TXE8Fxyb+JVCCxbgZ/J8e9fESRNMi0kp4bI0fF3VOB+rFJN5arEv8fzCLp8 h+UZrTbxkeZMfXOvgoxbzzGjc7HGIeuop8MTR3KqcqBfKUS14zeIjiOP6KL0bsoieo3Q Tv8V42fGgVSnQO2+FuJvR6PaT/eRjierRAVegd43uW7SWj7Z/p/Efpz3LNzLTcJWtrlP GObfx357Ncb3d3Rt1B+pn9YgqVPBuVW5UjmHt5et64oLycVrANC2zV92RPmkq6oo6NY4 Y60Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=FTuqiVvX/e086h1RvnuokTYAOrZih3WNPYcEcW1Xbj4=; fh=IoZfEkzZyABNTsUD0pSZNofMhfGvgK+rmQCkYX1I2/o=; b=MsSIbrCvTE7AfKtla5/ivTN4SQkBiduSNnBNON0Nc6A+Nm/0Ak9CWPddxAE4on7TaZ uQTjZCXdpzLxtYFPNJZZBu6PImiZ4GWF3K02owAFOImeJI0jM/az4LHx/SQkNn2obenK vMsul1WncZ36BS/jUxqs/OfOEZrc87uuBkwnANdjyqm/1mIcEiC060c9o/e6RGnXttxn hIFjyVosectnQ6yA4ASjFvd5TyOxVVLPrjgy7omgb5IHSn2bUrCT63iZfk9MwAJ+201r f/cOb99/rD9krIj1Sh4ePmfi6+6nCOMOqfJanw9jm7RShDchqkuBEVvRytY9PavU1cNn qYIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=X7D8YZ4l; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk20-20020a170907767400b0099b921da6a0si11523001ejc.282.2023.08.03.01.44.20; Thu, 03 Aug 2023 01:44:44 -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=@linuxfoundation.org header.s=korg header.b=X7D8YZ4l; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234305AbjHCIBi (ORCPT + 99 others); Thu, 3 Aug 2023 04:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234240AbjHCIAa (ORCPT ); Thu, 3 Aug 2023 04:00:30 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35E4546A2; Thu, 3 Aug 2023 00:50:07 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9519661C28; Thu, 3 Aug 2023 07:50:06 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76960C433C7; Thu, 3 Aug 2023 07:50:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1691049006; bh=TwMah1P/QSs3KjgOLUcqE01UhQrbw1JK1xFtsSHEwdI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=X7D8YZ4lBRAxDbDf6B/DGXuio8UfUUfaAKHNKkvO2QPOuOqJykURVFA7GOuTGIN+l uVTZ/efUIYl1UAmim6cBB8Bb10jMmxNPYRx/b+7BJZRvx3cHSfcauu7GZKouOZ0mCc pC+VaT8AnNmNZYFNv0rHAGqRv4qMB/P3by+xi3cc= Date: Thu, 3 Aug 2023 09:50:03 +0200 From: Greg Kroah-Hartman To: Tony Lindgren Cc: Jiri Slaby , Andy Shevchenko , Andy Shevchenko , Dhruva Gole , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , John Ogness , Johan Hovold , Sebastian Andrzej Siewior , Vignesh Raghavendra , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, kernel test robot Subject: Re: [PATCH v2 1/1] serial: core: Fix serial_base_match() after fixing controller port name Message-ID: <2023080351-chaplain-headgear-bcbb@gregkh> References: <20230803071034.25571-1-tony@atomide.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230803071034.25571-1-tony@atomide.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,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 Thu, Aug 03, 2023 at 10:10:32AM +0300, Tony Lindgren wrote: > While fixing DEVNAME to be more usable, I broke serial_base_match() as the > ctrl and port prefix for device names seemed unnecessary. > > The prefixes are still needed by serial_base_match() to probe the serial > base controller port, and serial tx is now broken. > > Let's fix the issue by checking against dev->type and drv->name instead > of the prefixes that are no longer in the DEVNAME. > > Fixes: 1ef2c2df1199 ("serial: core: Fix serial core controller port name to show controller id") > Reported-by: kernel test robot > Closes: https://lore.kernel.org/oe-lkp/202308021529.35b3ad6c-oliver.sang@intel.com > Signed-off-by: Tony Lindgren > --- > > Changes since v1: > - Leave out magic numbers and use str_has_prefix() as suggested by Andy > and Greg > > - Improve patch description and add a link for Closes tag as suggested > by Jiri > > - Check the name against device_type name since we have it and leave > out the changes to try to define names in the header because of the > issues noted by Jiri > > - Leave out Tested-by from Mark and Anders as the patch changed Thanks for this, now queued up. greg k-h