Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1496447rwo; Wed, 2 Aug 2023 15:22:16 -0700 (PDT) X-Google-Smtp-Source: APBJJlFeULAMZg/tnteLEW26j00ByztnPRZADB4lFKnIxlHlXVO1pjamTYPHRv7Zt7AaSLE1yVyY X-Received: by 2002:a05:6a00:16c2:b0:687:570:5021 with SMTP id l2-20020a056a0016c200b0068705705021mr19489684pfc.15.1691014935854; Wed, 02 Aug 2023 15:22:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691014935; cv=none; d=google.com; s=arc-20160816; b=zFLYU2opUwXzHOGgarGyvDM7g3dss23eKcE73XHi405X0KYXoPhrJ/1dK8eGF+6TjH is3pDQ3Ey27aXisM8iXVwp2JgjF/0p6kdJay7GbZfOgIlyqw/zlwmkttAS+4q4yZU32K qddaiOm75Ug7OseJp8uqaz2yzCR/l6rSFRm2jnWqWa/bCkG/b/hgwhXvwbMtycxF27iO xTdWB9dnx/u6E7EHG0sHiaIBQFANRCMVWVHR9bzDswR27NkEG+Y7BNqPHcElIXeEQLDp lX8CPCS71Ei6K4Db4xzBSOWp1bSV8BCzgE6pQoBSCIK2cDamnSDP9FYjmFCET37cKnms T5hQ== 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=mniTcL/NFn49qfS/kBtUr5ATHu1WpiR2yzbE2w8RQi4=; fh=9GUFr22eb9sKjacR5dXQPDVJ8UhE3RMGzVa1k+kB1nI=; b=u+5vhrlEGPuhIRi0nBuEnsvrEhldb+Ez1UAeV2zst2MJRrMmKzR7ls60NnBlyhESVv dtKkRF8ahsnFfDlWrx66i59ZA2VAO4vpK0MqJtNsx/GVYvGfJnzEV6NZVp/IgqWGXCt7 wmSRxOu1M59Y2Aq8S37goy23g5qfohRZpyhgZB4tQHN4fLXJ5oy5LJ7xxkFwBX/o+3fK ATxKeAh/UPBDl+hhq1m+0p3MIjF8WRazhpnJHYHuhxh+L3khjWYKQGk+k+ogHdxEIEUz 5z34XMWjQOKclgH1UeLLt+ao9yGuitRrZEjaZWQ3GbCPhkNHQlx/YLmIGq8DnwFRbyps KSnw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b="AvMbZ/RK"; 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 o4-20020a056a0015c400b006874c2f0a36si4406541pfu.156.2023.08.02.15.22.00; Wed, 02 Aug 2023 15:22:15 -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="AvMbZ/RK"; 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 S233516AbjHBVqR (ORCPT + 99 others); Wed, 2 Aug 2023 17:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232776AbjHBVqB (ORCPT ); Wed, 2 Aug 2023 17:46:01 -0400 Received: from mgamail.intel.com (unknown [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8521930EF; Wed, 2 Aug 2023 14:45:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1691012723; x=1722548723; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=MF0JI6IJD9FJEJNY9LMIWv3VjBsDKGG4DVNWrUEzWtE=; b=AvMbZ/RKyxZB9MwgcGHn0Y+63gfUUnkelEboRU0UMwAvONG4Y3+168su qmKZLJBttUJtrI2W3k8NRoLDmAZxIEJRJmNEGcivGIgDAAwfecH/bbs1G wPC5p2qH6cPz9lWfKnMfPY0DptlDuO334fY/LdKrOxNX4qWcZUuP4txeb 2kuwQW9IwyvItdbfTEgXaatnZF8QcT7ZEPY1PfH1iaHEn2SzLj29QNeyh tIpucDcVyP28919SvlU2phHoPbkp+pcWDnX4f3QR5KwMJfC9BbiA0/UxT ZNzr9OFwmxbRl9y5qwJi5XEXm11Gw9GVUFIkkPn1frfMom4VPgClRunnB w==; X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="349304400" X-IronPort-AV: E=Sophos;i="6.01,250,1684825200"; d="scan'208";a="349304400" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2023 14:44:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10790"; a="819388386" X-IronPort-AV: E=Sophos;i="6.01,250,1684825200"; d="scan'208";a="819388386" Received: from smile.fi.intel.com ([10.237.72.54]) by FMSMGA003.fm.intel.com with ESMTP; 02 Aug 2023 14:44:36 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1qRJdy-00HKzs-1m; Thu, 03 Aug 2023 00:44:34 +0300 Date: Thu, 3 Aug 2023 00:44:34 +0300 From: Andy Shevchenko To: Greg Kroah-Hartman Cc: Tony Lindgren , Jiri Slaby , 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] serial: core: Fix serial_base_match() after fixing controller port name Message-ID: References: <20230802114846.21899-1-tony@atomide.com> <2023080224-nutrient-regress-c95e@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2023080224-nutrient-regress-c95e@gregkh> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, Aug 02, 2023 at 03:48:26PM +0200, Greg Kroah-Hartman wrote: > On Wed, Aug 02, 2023 at 02:48:43PM +0300, Tony Lindgren wrote: > > While fixing DEVNAME to be more usable, I broke serial_base_match() as > > the ctrl and port prefix for device seemed unnecessary. > > > > Let's fix the issue by checking against dev->type and drv->name. ... > > + !strncmp(SERIAL_BASE_CTRL_NAME, drv->name, 4)) > > maybe: > !strncmp(SERIAL_BASE_CTRL_NAME, drv->name, strlen(SERIAL_BASE_CTRL_NAME)) > > as "4" is a magic number :) str_has_prefix() hides that. -- With Best Regards, Andy Shevchenko