From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 66358C433F5 for ; Wed, 29 Sep 2021 07:39:45 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 405AC613D1 for ; Wed, 29 Sep 2021 07:39:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243109AbhI2HlZ (ORCPT ); Wed, 29 Sep 2021 03:41:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:42666 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244657AbhI2HlY (ORCPT ); Wed, 29 Sep 2021 03:41:24 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 78191613C8; Wed, 29 Sep 2021 07:39:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1632901184; bh=7dRu7YsEfukSf7PESkloedYqIhpiZA3O3u/vv59OaqU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qAn/WpIuAheoyfGlkGJPpvqEn7y9MTH4TFBANF6G+HnbR/dxV1x5h9POi+A87v6Om SgNfoSLeE10FtJA8pOI+yKkLujnLvteRn654YfBoVD5qk14oMLPSwhr/5g6zU4NTKl fCSGLVwF2oTmiGYNm2xsSr+jOQXEmgfqhsNbrmXA= Date: Wed, 29 Sep 2021 09:39:41 +0200 From: Greg Kroah-Hartman To: Avri Altman Cc: Mauro Carvalho Chehab , Linux Doc Mailing List , Jonathan Corbet , "Martin K. Petersen" , Adrian Hunter , Bean Huo , Can Guo , Daejun Park , Lukas Bulwahn , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 16/17] ABI: sysfs-driver-ufs: Add another What for platform drivers Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Wed, Sep 29, 2021 at 07:23:32AM +0000, Avri Altman wrote: > > On Wed, Sep 29, 2021 at 06:32:40AM +0000, Avri Altman wrote: > > > > The current what expressions: > > > > What: /sys/bus/platform/drivers/ufshcd/*/... > > > > > > > > Doesn't actually match what (some?) platform drivers actually > > > > export. For instance, drivers/scsi/ufs/ufs-hisi.c actually creates > > > > the sysfs struct for ufshcd inside this directory: > > > > > > > > /sys/devices/platform/soc/ff3c0000.ufs > > > > > > > > Which has those aliases: > > > > > > > > /sys/devices/virtual/devlink/platform:fff35000.crg_ctrl-- > > > > platform:ff3c0000.ufs/consumer/ > > > > /sys/bus/platform/drivers/ufshcd-hisi/ff3c0000.ufs/ > > > > /sys/bus/platform/devices/soc/ff3c0000.ufs/ > > > > /sys/bus/platform/devices/ff3c0000.ufs/ > > > > > > > > So, add another What: for such files that will match the device ufs > > > > entries, e. g.: > > > > > > > > What: /sys/bus/platform/devices/*.ufs/ > > > On some platforms the suffix is .ufshc So Maybe use: > > > /sys/bus/platform/devices/*.ufs*/ > > > > That's confusing. How about describing why "ufshc" is used in another > > entry? You all must have picked the new name for some reason to > > differentiate, right? > It's a platform thing. Better let the platform guys answer that. What plaform people?