Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1407626pxj; Fri, 21 May 2021 13:31:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAxBvAW6bmYLv4bekldiX1/YVt8TeUAHhB1ZuSUhwO+bakXJ1Jk1Jg2xq9DKl5oyhUKD9r X-Received: by 2002:a17:906:7d7:: with SMTP id m23mr11762422ejc.331.1621629110874; Fri, 21 May 2021 13:31:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621629110; cv=none; d=google.com; s=arc-20160816; b=tTujPzTUV2OpaWHjOM/Xpd2CF6leOrYBD1PblzFBae/z186cr/tCEmcKo+x6qShUcm lf1I8B7YD7RLctbGU/elXf7B0HaoMG2PxDYz1mxq91IRbZp7yqUc3NM0j0lQBaTFW2NF Cv6BY6Y804gmWotcbu2JBAO5QPqBNIPySpLhdr7KhCY1UneBBIKv1ZVRG1mGSK8rOPP9 mlvjYjCnz3UE+GYztfR9iay+8A3+D/Tzw5VcjTkgGt54Rasf01of0hWwz2g7CjIyePC+ HtnyEkf4yAs8H6NogTTcS1CNLO0BWdc1krndyovQjLJYxe1mcjIYCOkJ7RrhZbB/kMxc YDQg== 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=9qqklBL1pV/uGMuMhxz06LFFIZJTpNzxypN7sq77VnM=; b=h9+RHVTK+Vz8GgkGJSh36rxA4JYLokU4+V6vtVXzL1nq6dfy0FDDT37jYxa4+SPT+U ySTmRXdH1LCPUwoUn6Fl9AlR0cmrRSYJd4db6Kzximcr/qWk+iyQRIMxpk9fp0p1vZMM MkOEF9PLi+piXNr5QlESIFmtUg92rPc6SZdmPX5IQ1zcC4uQqLeFuZJ2TmKUYzAOz6Gj GgRvrbj4+sSwjP03lbfhOiDFMHd7x55iuZVjUiTNlpSViqzGTxZmrv+eUAO0btBPvYxL O+p7k0gYivRCTUz6lCNeOm6q/kfPTtKowvNvZtPQsth2ozoututUnwhgzdQ1L4d0lZF1 RpUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="nk8p/uRV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x10si6254950eji.476.2021.05.21.13.31.27; Fri, 21 May 2021 13:31:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="nk8p/uRV"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229629AbhEUULm (ORCPT + 99 others); Fri, 21 May 2021 16:11:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:49388 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229547AbhEUULl (ORCPT ); Fri, 21 May 2021 16:11:41 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AAC936101B; Fri, 21 May 2021 20:10:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1621627818; bh=XA1ABq8YonEMJwPvBO1DQSpN/DaawZg01skDnn4XKy0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nk8p/uRVoQkyXFgDNR3qCjnQE3Bc3RDtc44yobAR7eEX26P3DvPkcprq7rX6f9sSz 9dmXDru2OE3+EFy8xhMU8Q4q6SPqn+CpFGE7RuBE9tjbDg53+shoN/sNU7g/n5T7j/ tpUiBSQV6ZZwXOerVMQULr9rIlbBmwl685ScmC90= Date: Fri, 21 May 2021 22:10:15 +0200 From: Greg Kroah-Hartman To: Rajat Jain Cc: "Rafael J. Wysocki" , Bjorn Helgaas , Alan Stern , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-usb@vger.kernel.org, helgaas@kernel.org, Oliver Neukum , David Laight , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , rajatxjain@gmail.com, jsbarnes@google.com, dtor@google.com Subject: Re: [PATCH v4 1/2] driver core: Move the "removable" attribute from USB to core Message-ID: References: <20210513232701.411773-1-rajatja@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210513232701.411773-1-rajatja@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 13, 2021 at 04:27:00PM -0700, Rajat Jain wrote: > Move the "removable" attribute from USB to core in order to allow it to be > supported by other subsystem / buses. Individual buses that want to support > this attribute can populate the removable property of the device while > enumerating it with the 3 possible values - > - "unknown" > - "fixed" > - "removable" > Leaving the field unchanged (i.e. "not supported") would mean that the > attribute would not show up in sysfs for that device. The UAPI (location, > symantics etc) for the attribute remains unchanged. > > Signed-off-by: Rajat Jain > --- > v4: - instead of devicce_type->supports_removable, add 1 more value in > device_removable_enum > - documentation update. > - Remove "Acked-by" and "Reviewed-by" tags from previous versions. > v3: - Minor commit log / comments updated. > - use sysfs_emit() > - Rename local variable name (state -> loc) > - change supports_removable flag from bool to bitfield. > v2: Add documentation This looks good to me, I have no further objection to it at all, nice cleanups. I can take this in my driver-core tree, so that other busses can use it (and can create a tag to pull from if needed), or I can also take the PCI patch (patch 2/2 here), if Bjorn gives his reviewed-by: for it. Are there other busses besides PCI that you want to enable this soon (i.e. before 5.14-rc1)? thanks, greg k-h